Index a directory resource against a global subprocess to be used during run time
Before you begin
Note: If the workflow contains multiple global subprocesses, the index operation will return
only the first instance that it finds.
Procedure
- In the navigator, click .
- In the resource list, select the workflow that you want to work with. If no workflow exists, create a new workflow.
- In the Displays panel, click .
- Click the Workflow Editor tab.
- From the workflow configuration panel, click Edit next to Local Variables, and then click Add.
-
From the Type drop-down menu, select a variable type.
Tip:
- If you want to write to the local variable, from the Type field, select Object.
- If you want to read the value of the local variable, from the Type field, select a data type, and then in the Initial Value field, set a value.
-
Insert the Global Subprocess you want to work with.
Note: You must have preconfigured global subprocesses available in your activities toolbox.
- From the workflow, double-click a process step.
- Drag an Index activity to the appropriate drop point.
-
On the activity configuration panel, select Bind from the
drop-down arrow next to the Collection field.
The Select Variable dialog box appears.
- From the Select Variable dialog box, under Workflow properties, select Subprocesses, and then click OK.
- In the Index Type field, click the drop-down arrow and select DirectoryResource.
- In the Index field, click the ellipsis button to select the Global Subprocess that you added in Step 5.
-
To read the results of the Index activity:
- Drag a Write activity to a drop point after the Index activity.
- Click the ellipsis button to select the variable that you want to read from the Index activity result, and then click OK.
- In the Value field, from the drop-down arrow, select Bind.
- From the Select Variable dialog box, select the local variable you added in Step 3 that you want to write to.
-
To write to the results of the Index activity:
- Click Save.