Do the following in parallel flow logic
Summarize
Summary of Do the Following in Parallel Flow Logic
The Do the Following in Parallel flow logic enables you to execute actions and subflows in separate paths simultaneously within a single flow. This feature allows for efficient task management, as multiple actions can progress independently, even if some actions are delayed.
Show less
Key Features
- Parallel Execution: Actions and subflows run concurrently in separate paths, enhancing workflow efficiency.
- Single Thread Context: Although paths are parallel, they operate within a single thread, meaning they do not run in multiple threads and are processed sequentially by the system.
- No Field Inputs: This flow logic does not require field inputs; instead, it allows you to create paths using a plus ( ) icon.
- Path Outputs: While the flow logic itself does not produce outputs, actions and subflows within each path can generate outputs that remain accessible only within their respective paths until the flow completes.
Key Outcomes
With this flow logic, you can effectively create and manage tasks in parallel upon events such as a new change request. Each task can be assigned to different groups and utilize data from the triggering event, like the change request number.
To ensure optimal performance, avoid data dependencies between paths, as the order of execution can vary. Additionally, sharing data across paths is not supported to prevent conflicts in data processing.
Run actions and subflows in separate paths within an isolated flow logic block.
With this flow logic, you can run actions and subflows in separate paths. If any action within the Do the following in parallel flow logic block must wait, other actions run until all paths within the block finish processing.
Inputs
Do the following in parallel flow logic does not have field inputs. Instead, it displays a plus () icon that enables you to create a path with actions or subflows.
The actions and subflows in each path run until all tasks within the flow logic block have completed.
Outputs
This flow logic has no outputs, but actions and subflows in each path may have outputs. While the flow is running, outputs from a path are only accessible to other actions in the same path. After the Do the following in parallel flow logic completes, its final outputs are accessible to the rest of the flow.
Create two tasks in parallel when a change request is created
In this example, a flow triggers when a new change request is created. Using Do the following in Parallel, two tasks are created in separate paths and are assigned to different groups. The flow uses the Number field data pill from the triggering change request to display the number in the short description for the task record.
Execution details
- The header shows the state, start time, and runtime for the flow logic.
- The Configuration Details section shows the state, start time, and runtime for each path in the flow logic block.
General guidelines
- Avoid creating data dependencies between paths
- Since a flow can run paths in any order, avoid creating data dependencies between separate paths. For example, do not have one path that creates a record and another path that updates the same record. The update record path may run before the create record path.
- Do not share data between paths
- Workflow Studio prevents you from dragging data pills between paths because the system cannot determine which path will finish first to supply the output value.