Parallele
Executes multiple branches in parallel and waits for their join. Configurable with a join strategy (wait all, first, N of M).
Common parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
joinStrategy | choice (settled, all, any, race) | Yes | No | Join strategy determining when the block continues after parallel execution. (Default: "settled") |
branches | array | Yes | No | List of parallel branches. Each branch has an id, label, and enabled flag. |
maxConcurrency | number | No | No | Maximum number of branches running simultaneously. Empty = all in parallel. (min 1, max 10) |
timeout | number | No | No | Maximum execution time per branch in milliseconds before timeout. (min 5000, max 300000) |
outputVariable | text | No | No | Output variable name containing the results of all branches with their status and duration. (Default: "parallelResult") |
Parameters by join strategy
settled — All (settled)
Waits for all branches to finish, success or failure. Errors are included in the result.
all — All
Waits for all branches to succeed. Fails if any branch fails.
any — Any
Completes as soon as one branch succeeds. Other branches are cancelled.
race — Race
Returns the first result, success or failure. Useful for fallback patterns.
Output
Output variable : parallelResults
{
"results": []
}
Example
Run two searches in parallel.
Input :
{}
Output :
{"results": [{"branchId": "branch-1", "data": {}}, {"branchId": "branch-2", "data": {}}]}
Tip
{{parallelResults.results}} contains an array with each branch result. Maximum concurrency is configurable (default 5).