Completed subflow values in scripts
-
- UpdatedAug 3, 2023
- 1 minute read
- Vancouver
- Workflow
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
The Parallel Flow Launcher activity exposes additional variables you can use in scripts.
Variable | Description |
---|---|
coordinator | The WorkflowCoordinator used when running the subflows. You can use this variable in the Finished script to perform any final operations. Additionally, you can use the WorkflowCoordinator in a later workflow activity by passing the activity name or sys_id to the WorkflowCoordinator.load('<Activity>') function. For example, to load the WorkflowCoordinator object from a Parallel Flow Launcher activity called Launch Subflows, enter var coord = WorkflowCoordinator.load('Launch Subflows'); in a later activity. |
flow | The subflow launched by the activity that completed most recently. You can use this
variable in the Flow complete script to perform any post-processing
operations on each subflow. To get a complete subflow from a coordinator object, use
var flow = coord.getFlow(I); where I is the numeric index of the subflow
based on the order it was launched. These values are available from the completed
subflow:
|