Using Variables in a Copy Operation
Select a FROM Type and then complete the Copy operation by making other appropriate selections. Add, edit, copy, delete, and reorganize Copy operations and scripts for the selected Assign activity.
Within the Process Variables view, you can create and edit Copy operations for a current Assign or create a new Assign automatically.
You can create a Copy operation by using a variable's context menu or by dragging and dropping a variable part to another variable part.
Select a FROM Type and then complete the Copy operation by making other appropriate selections. Add, edit, copy, delete, and reorganize Copy operations and scripts for the selected Assign activity.
For more information, see:
- •Creating a Copy Operation Using a Context Menu
- •Creating a Copy Operation Using Drag and Drop
- •Selecting a Copy Operation to Edit
Creating a Copy Operation Using a Context Menu
Tip: Use this procedure to create any type of Copy operation. For a quicker way to create a variable-to-variable Copy operation, see Creating a Copy Operation Using Drag and Drop.
- 1. Do one of the following:
- - Select an assign activity from the Process Editor canvas, if you want to add a Copy operation to it. The Copy is added after any current Copy operations.
- - Go to Step 2 if you want to create a new assign activity automatically.
- 2. In the Process Variables list, open a variable for either the From or To clause of the Copy operation.
- 3. Right-mouse click and select Copy > From to create the From clause or Copy > To to create the To clause.
- 4. In the Copy Operations dialog, complete the remaining clause, and click OK.
In the Process Editor canvas and Outline view, the current or new assign activity is selected.
Creating a Copy Operation Using Drag and Drop
You can create the following types of Copy operations by dragging and dropping:
From Variable [Part] To Variable [Part]
From Variable Property To Variable Property
For details, see Assign.
To create a Copy operation by drag and drop:
- 1. Do one of the following:
- - Select an assign activity from the Process Editor canvas, if you want to add a Copy operation to it. The Copy is added after any current Copy operations.
- - Go to Step 2 if you want to create a new assign activity automatically in the currently selected Scope.
- 2. In the Process Variables list, open the two variables for the From and To clauses of the Copy operation.
- 3. Drag the variable, part, or property of the From variable to the appropriate variable, part, or property of the To variable.
Tip: Before you release the mouse button, you can view the Copy specification in the Process Developer status bar.
After you release the mouse button, Process Developer shows the results by highlighting the parts in use. Also, the From part icon has an outward arrow and the To part icon has an inward arrow, as shown.
In the Process Editor canvas and Outline view, the current or new Assign activity is selected.
Selecting a Copy Operation to Edit
You can edit a Copy operation by selecting Copy > Edit from a variable's right mouse menu.
If a variable has multiple Copy operations, the Copy Operations dialog opens so that you can select an operation to edit.