Use Run in Parallel to start two or more paths at the same time. Steps within each path run sequentially, and the workflow continues after the container only when every path has completed successfully.
Step Library: Flow Control > Branching & Conditions
When to use this step
Use this step when you want to:
- perform independent work concurrently;
- reduce the total duration of paths that would otherwise run one after another;
- keep child-step outputs isolated to the path that created them.
Common examples include:
- notifying stakeholders while updating related records;
- requesting independent checks from several teams; or
- running unrelated preparation activities together to reduce the total waiting time.
Use Branch by Condition or Branch by Value instead when only one path should run. Use Group Steps when every child step should run in one sequential path.
Before you begin
This step does not require a connection or special permissions.
Child steps keep their own prerequisites, permissions, provider effects, and limits. Before running paths concurrently, make sure that their operations are independent or that concurrent access to shared workflow variables and external resources is safe.
Configure the step
- Add Run in Parallel from Flow Control > Branching & Conditions.
- Select the step to open its configuration panel.
- Optional: Enter a descriptive Step Label.
- Enter a non-empty Label for each path.
- Select Add path to add paths as needed. A Run in Parallel step must contain between
2and10paths. - Add the child steps that each path should execute.
- Reorder or remove paths as needed.
- Save or publish the workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Step Label | No | Fixed Text, up to 80 characters | Always | Optional name for the step. The default is empty, and the Designer displays Run in Parallel. |
| Paths | Yes |
2 to 10 ordered paths |
Always | Defines the concurrently executed paths. The default configuration contains Path 1 and Path 2. Add path is unavailable at 10 paths, and a path cannot be removed when only 2 remain. Reordering a path retains its label and child steps. |
| Label | Yes | Non-empty fixed Text | For each path | Identifies the path in the Designer. Variables are not accepted. The two default labels are Path 1 and Path 2; newly added paths use the next Path number. Whitespace-only labels are invalid. Deleting a path that contains child steps requires confirmation and also deletes those steps. |
There are no conditional settings.
Data and outputs
Workflow variable effects
This step does not directly modify workflow variables.
Child steps in every path share the workflow variables. A change takes effect when the child step completes successfully and remains available to later work and to steps following Run in Parallel. If the workflow suspends, the current values are stored in the suspension snapshot and restored on resume. Because paths run concurrently, another path observes a changed value only if the write happens before that path evaluates the variable.
If child steps in different paths write to the same workflow variable, the last write wins and Flowifier records a conflict warning. Do not rely on a particular final value when the write order can vary.
Step outputs
This step does not expose step outputs.
Outputs from a step before Run in Parallel are available to child steps in every path. An output created by a child step is available only to later child steps in the same path. It is not available to sibling paths or to steps following Run in Parallel, and it leaves scope when the container completes.
Runtime behavior
Execution and completion
When execution reaches Run in Parallel, Flowifier starts every path without waiting for another path to finish. Enabled child steps within each path run once and sequentially in their configured order. An empty path completes immediately.
There is no guaranteed execution or completion order between paths. The step completes successfully only after every path completes successfully. The workflow then continues with the next step after the container.
Run in Parallel does not call an external provider and has no external side effects of its own.
Branches and child steps
The step contains between 2 and 10 paths, and every path runs. It does not select a path or use a fallback path.
Each path has an isolated previous-step output scope. Child steps can use outputs from steps before Run in Parallel and from earlier child steps in their own path, but they cannot use outputs created in a sibling path. Workflow variables are shared across all paths and retain changes after the container completes.
Child steps keep their own external side effects. Completed changes are not rolled back if another path later fails, is cancelled, ends, or terminates the workflow.
Failure, retry and resume behavior
Run in Parallel does not automatically retry failed child steps.
If a child step fails, the path stops and the failure propagates to Run in Parallel and the workflow instance. Other paths have already started and can finish before the failure is propagated. Steps following the container do not run.
If one or more child steps suspend the workflow, Run in Parallel is suspended with them. When the workflow resumes, only the suspended paths resume from their suspended child steps. Paths that already completed are not run again.
If a suspended instance is manually cancelled, it does not resume and steps following the container do not run. A child cancellation or Terminate Workflow result propagates through Run in Parallel. End Workflow ends the workflow gracefully after already-started sibling paths settle. In each case, steps following the container do not run.
Restarting or manually re-running a failed workflow starts the paths again. Child steps that create external side effects can therefore repeat those effects unless the child operation or workflow design prevents duplicates.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
The step contains fewer than 2 or more than 10 paths |
Validation reports that Run in Parallel requires between 2 and 10 paths, and the workflow cannot be published. | Add or remove paths until the step contains between 2 and 10. |
| A path Label is empty or contains only whitespace | The field shows Enter a path label, the Problems list contains one corresponding error, and the workflow cannot be published. | Enter a non-empty fixed label for every path. |
| A path containing child steps is deleted | The Designer asks for confirmation. Confirming deletes the path and all of its child steps. | Review the listed step count before confirming, or move required child steps to another path first. |
| A child step fails | The path stops, Run in Parallel and the instance fault, and following workflow steps do not run. Other started paths may still finish. | Inspect the failed child step under Instance Activities, correct its input or configuration, and start a new instance when it is safe to retry. |
| Different paths write to the same workflow variable | The most recent write replaces the earlier value, and Flowifier records a conflict warning. The final value can depend on runtime timing. | Use separate variables, or redesign the paths so that only one path writes the shared variable. |
| A child step creates an external side effect before another path fails | The completed external effect is not rolled back. Starting another instance can repeat it. | Check the provider result before restarting, and use idempotent child operations or unique test resources when duplicates would be harmful. |
The path-count limit is specific to this step. Child steps retain their own validation, provider, and platform limits.
Example
Calculate and log concurrently
Goal: Perform a calculation while a separate path records that processing started.
Configuration:
-
Step Label:
Prepare data and audit - First path Label:
Calculate- First child: Calculate Value, configured to add
1and1 - Second child: Log to Instance Log, configured to include Calculate Value > Result
- First child: Calculate Value, configured to add
- Second path Label:
Audit- Child: Log to Instance Log, configured with
Processing started
- Child: Log to Instance Log, configured with
Result: Both paths start without waiting for each other. The calculation output is available to the following log step in the Calculate path but not to the Audit path. The order of the two log entries is not guaranteed. After both paths finish, the workflow continues with the next step, and the calculation output is no longer available.
Related information
- Branch by Condition — run one of two paths based on conditions.
- Branch by Value — run one matching path based on a Text or Number value.
- Group Steps — run child steps sequentially in one container.
- End Workflow — finish the workflow gracefully from a child path.
- Terminate Workflow — stop the workflow with a terminal result from a child path.
Comments
0 comments
Please sign in to leave a comment.