Skip to main content
LogicDynamic Ports

Sub-Workflow

sub_workflow

Run a nested sub-workflow graph.

Inputs1
Outputs1+
Settings0
Field AccessPort Map
Examples2

About this Node

Invokes another published workflow or reusable workspace component as an isolated child execution. Input and output ports are dynamically generated from the child workflow's declared `Inputs` and `Outputs` lists, allowing clean modular composition and reuse across diagrams.

Ports & Branches

Inputs (1)
inputPort 0Default input port (or dynamic ports declared in Inputs)
Outputs (1) · Dynamic
outputPort 1Default output port (or dynamic ports declared in Outputs)

How this Node Reads Data

Input Access Field Example Description
Dynamic Input Ports Port Map — Inputs: ["customer_id", "invoice_pdf"] Each declared entry in `Inputs` spawns a dedicated input port (`0..M-1`) and maps matching scoped state keys into the child workflow's initial input.

State Keys Written (Outputs)

Key Pattern Type Role Description
<declared child Outputs> object Primary Merges the child workflow's completed output state back into the parent workflow state, exposed via dynamic output ports (`M..M+N-1`).

Tips & Best Practices

  • Recursive sub-workflow chains are automatically guarded against infinite loops via depth and visited-workflow tracking.
  • Use explicit Data Wires when the parent's state key name differs from the child Sub-Workflow's declared input key.

Commonly Paired With