Skip to content

workflow.fan_out

Operation: workflow.fan_out
Category: workflow
Tags: fan-out, parallel, dynamic

Explode an array into N parallel dynamic branches

Type: Native (built-in)
Timeout: 300s
Retries: 3 (ExponentialWithJitter)

NameTypeRequiredDefaultDescription
itemsJSONYesArray of items to fan out
NameTypeDescription
itemsJSONArray passed through for branch spawning
countNumberNumber of items
import { WorkflowBuilder } from "@fabric-platform/sdk";
const workflow = new WorkflowBuilder("my-workflow")
.node("workflow-fan-out", "transform", (n) =>
n.config({
operation: "workflow.fan_out",
// ... node-specific config
})
)
.build();
{
"key": "fan-out-segments",
"operation": "workflow.fan_out",
"config": { "branch_kind": "process-segment" },
"inputs": [{ "name": "items", "path": "$context.segments" }],
"outputs": [{ "name": "count", "path": "$context.segment_count" }]
}

Cause: The items input is null or not bound — fan_out needs an array to split

Fix: Bind items to a context path containing a JSON array from an upstream node