Branch node
The Branch node is a two-way split. Each input row is evaluated against a single predicate and routed to the then port if the predicate is truthy or the else port if it's falsy. It's the "if row matches, go here; otherwise go there" shape.
When to use
- The routing decision is binary (matches vs doesn't match).
- Router's N-way switch is overkill for two branches.
- You want the resulting canvas to read like an
if / elseblock.
Ports
| Port | Direction | Kind | Notes |
|---|---|---|---|
in | in | data | Rows to evaluate. |
then | out | data | Rows where the predicate is truthy. |
else | out | data | Rows where the predicate is falsy. |
error | out | control | Fires when the predicate throws. |
notify | out | control | Notification policy port. |
Configuration
- Predicate. Either a Filter-style rules group (structured) or a raw expression.
Runtime behaviour
- Per-row evaluation. The predicate runs via
evalTransformExpr. - Predicate errors route the row to
error.