Parallel Fan-out
Execute multiple branches concurrently and join results.
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
inPort 0Inbound execution flowoutPort 1Single downstream continuation after all fan-out iterations completeHow 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
Settings Parameters (3)
Configuration schema synchronized with the workflow catalog
| Field | Type | Default | Allowed Options | Description |
|---|---|---|---|---|
path |
string |
"" |
— | Context path to the input array (JMESPath syntax) |
loop_var_name |
string |
item |
— | Variable name for current item in loop |
output_key |
string |
results |
— | State key to store output array results |
Batch Document Summarization
Extract a list of uploaded files from Dataset Read and summarize every file in parallel.
Node Configuration
{
"Id": "logic_parallel_1",
"Type": "logic_parallel",
"Config": {
"path": "dataset_files",
"loop_var_name": "document_ref",
"output_key": "summaries"
}
}Sample Input State
{
"dataset_files": [
{ "filename": "q1.pdf" },
{ "filename": "q2.pdf" }
]
}Expected Output State
{
"summaries": [
{ "summary": "Q1 grew 14%..." },
{ "summary": "Q2 grew 19%..." }
]
}Tip: Inside the child workflow, reference the current element via `{{document_ref}}` (matching `loop_var_name`).
Parallel API Enrichment per Customer
Fan out over a nested array `payload.customers` and collect enriched records into `enriched_customers`.
Node Configuration
{
"Id": "logic_parallel_1",
"Type": "logic_parallel",
"Config": {
"path": "payload.customers",
"loop_var_name": "customer",
"output_key": "enriched_customers"
}
}Sample Input State
{
"payload": { "customers": ["C-1", "C-2", "C-3"] }
}Expected Output State
{
"enriched_customers": [ { "id": "C-1" }, { "id": "C-2" }, { "id": "C-3" } ]
}