Skip to main content

Parallele

Executes multiple branches in parallel and waits for their join. Configurable with a join strategy (wait all, first, N of M).

Common parameters

ParameterTypeRequiredVariableDescription
joinStrategychoice (settled, all, any, race)YesNoJoin strategy determining when the block continues after parallel execution. (Default: "settled")
branchesarrayYesNoList of parallel branches. Each branch has an id, label, and enabled flag.
maxConcurrencynumberNoNoMaximum number of branches running simultaneously. Empty = all in parallel. (min 1, max 10)
timeoutnumberNoNoMaximum execution time per branch in milliseconds before timeout. (min 5000, max 300000)
outputVariabletextNoNoOutput 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).