Skip to main content
Logic

Parallel Fan-out

logic_parallel

Execute multiple branches concurrently and join results.

Inputs1
Outputs1
Settings3
Field AccessJMESPath
Examples2

About this Node

Fans out an array extracted via JMESPath and executes an embedded sub-workflow concurrently once per element. Each parallel child receives a copy of the parent state plus the current element bound under `loop_var_name`, and all child final states are collected in order into `output_key` as a JSON array.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Single downstream continuation after all fan-out iterations complete

How this Node Reads Data

Input Access Field Example Description
Input Array Path JMESPath path orders.items JMESPath expression resolving to a list/array in the incoming workflow state.

State Keys Written (Outputs)

Key Pattern Type Role Description
{output_key} array<object> Primary Ordered list containing the final state dictionary returned by each concurrent child execution.

Tips & Best Practices

  • Parallel Fan-out has a single input port (`0`) and a single output port (`1`)—fan-out happens internally via the configured sub-workflow.
  • If `path` resolves to `null` or an empty array, the node completes immediately with an empty list `[]`.

Commonly Paired With