Portal Community

Nodes with Multiple Output Ports

NodeOutput PortsRouting Logic
if-conditiontrue, falseExpression result: truthy → true, falsy → false
switchOne per case + optional defaultValue match: first matching case wins
filtermatch, no-matchCondition truthy → match, falsy → no-match
loopbody (per iteration), done (after loop)body fires N times; done fires once when complete
try-catchtry, catch, finallytry on success; catch on error; finally always
form / approval / chatDecision-specific (submitted/approved/rejected/timeout)Routes based on human response
parallel-forkConfigurable named branchesAll branches activate simultaneously (parallel)

Fan-Out from Main Output

Even simple nodes with a single main output port support fan-out: you can connect the same output port to multiple downstream nodes. All connected downstream nodes execute in parallel when the output port fires.

// Example: send email AND write to database simultaneously
httpRequest.output → sendEmail.input
httpRequest.output → databaseInsert.input
// Both execute after httpRequest completes

switch Node Configuration

The switch node's output ports are dynamic — each case you define in the config creates one port. Configure cases in the right panel:

  1. Set the Value Expression (e.g., $json.priority)
  2. Add cases: Low, Medium, High (each creates a port with that key)
  3. Optionally enable a Default port for unmatched values
  4. Connect each output port to the appropriate downstream handler
Exclusive vs Parallel Named output ports on decision nodes (if-condition, switch, approval) are exclusive — only one fires per execution. Fan-out from a single output port is parallel — all connected nodes fire. Understand this distinction to avoid unexpected parallel execution when connecting the same port to multiple targets.