Parallel Run Workflow v.2
- Task type:
parallelrunworkflow_v2
Description
The "Parallel Run Workflow v.2" task enables orchestrated execution of multiple workflows (up to 20 instances) with the option to choose between parallel or sequential execution, managing simultaneously configurations, input parameters, and advanced error handling for each individual process.
Configuration Parameters
- Execution Mode:
- Parallel: Launches all enabled workflows at the same instant.
- Sequential: Executes workflows one by one, respecting the order of indices (1, 2, 3...).
- In case of unexpected outcomes:
- Consider the task failed: If selected, the main task will assume the
Failedstate if an instance does not return the expected outcome. - Stop execution immediately: If selected, the task will immediately block other running instances in case of an error in one of them.
Instance Configuration
The task allows configuring up to 20 independent instances.
- Instance Selector: Increment the numeric field to move from one instance to another (e.g., from 1 to 2).
- Enable Instance: Toggle to activate or skip execution of the current slot.
- Target Workflow: Menu (dropdown) where you can select a workflow to launch.
- Expected Outcome: The state the child workflow must return to be considered valid (
Success,Warning,Failed, orAny). - Override Parameters: Grid to map incoming parameters to the child workflow.
Notes
You can navigate forward and backward between instances (e.g., return to instance 2 after configuring instance 5) to correct or modify parameters; the system maintains the state of each configuration.
Output Parameters
- result: Overall status of the execution.
- resultJSON: JSON detail of the results.
- resultJSONtarget: JSON string containing the entire execution report of child workflows (including results of each internal task). This output parameter is useful for obtaining information on child workflow executions: data can be extracted directly using tasks with JSONPath queries.
- executionLog: Log of operations performed by the various instances.
- exitStatus: Numeric exit code of the task. (
0indicates success).
Example resultJSON Structure
{
"run_info": {
"status": "Completed",
"run_result": "Success"
},
"output_parameters": {
"exitStatus": "0"
}
}