Skip to main content
LogicDynamic Ports

Router

logic_switch

Route to one of N branches based on a field value.

Inputs1
Outputs2+
Settings2
Field AccessJMESPath
Examples2

About this Node

Routes workflow execution to one of multiple named branch ports based on the string value returned by a JMESPath expression (`path`). Each configured entry in `cases` creates a dynamic output port, and a permanent `default` fallback port handles any unmatched or missing value while bypassing all unchosen branches.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (2) · Dynamic
casePort 1Dynamic output ports matching configured case values (1..N)
defaultFallback branch when no configured case matches

How this Node Reads Data

Input Access Field Example Description
Routing Expression Path JMESPath path triage.department JMESPath query evaluated against the node's incoming state; the resolved value is converted to a string and matched against `cases`.

State Keys Written (Outputs)

Key Pattern Type Role Description
<scoped state passthrough> object Primary Activates exactly one matching branch port (or `default`) and forwards scoped state downstream while bypassing all other branches.

Tips & Best Practices

  • Matching is exact string equality after converting the JMESPath result to text.
  • Dynamic branch ports adapt automatically to the workflow's Flow Direction (LTR, RTL, TTB, BTT).

Commonly Paired With