Walk-through → Step 3: Designing the Component Process
To complete the process, you define the actual plugin steps. In addition to the Start and Finish steps, which are part of every process, a process must have at least one additional step. The steps are defined using the process editor. You define the steps by dropping them onto the design area and arranging them in the order they are to be executed.
To define the helloWorld process steps:
The steps are listed on the Tools tab. Take a moment to expand the listings and review the available steps. Many commonly used plugin steps are available in the default installation.
Figure 1. Adding a Step to the Process
The Item Properties tab is displayed when the mouse-pointer is released over the design space.
This tab displays all configurable parameters associated with the selected step.
For this exercise, we can achieve our goal by entering data into a single field, Directory Offset. Recall that the goal for this ambitious deployment is to move the source files in the base directory to another location. As you might guess, several methods for accomplishing this are available. Pointing the Directory Offset field to the target location is one of the simplest.
If the field is left blank, the process will use the working directory defined earlier. Entering the path overrides the previous value and will cause the source files to be moved, or deployed, to the entered location when the process runs. The default value would copy, or download, the files to agent_directory\work\component_name_directory.
A step's position in the workflow is defined by dragging connection arrows to/from it. The arrows define the direction of the workflow.
Move the cursor over the Start step to display the connection tool, as shown in the following illustration. Each step has a connection tool, which is used to connect it to other steps.
Figure 2. Connection Tool
Grab the connection tool and drag it over the Download Artifacts step then release it. A connection arrow connects the two steps. The arrow indicates the direction of process flow, from the originating step to the destination step.
Figure 3. Finished Connection
Figure 4. Completed Process
Once the process steps are defined, the final task is to define an application that uses the component and the component process you just created.
Copyright © 2011–2017 Serena Software, Inc. All rights reserved.