The canvas
When you create a new decision, you start with a blank canvas. Build your decision by adding nodes and connecting them. Data flows left to right through your graph:- Input node — Where data enters your decision (required)
- Processing nodes — Decision tables, expressions, functions, switches
- Output node — Optional; without one, results come from all endpoint nodes
Adding nodes
Drag nodes from the palette onto the canvas:- Drag a node from node palette
- Drop it on the canvas
- Connect it to other nodes by dragging from output ports to input ports
Node types
| Node | Purpose | Use when |
|---|---|---|
| Decision Table | Spreadsheet-style conditional logic | You have multiple rules with conditions and outcomes |
| Expression | Transform and calculate data | You need to compute values or reshape data |
| Function | Custom JavaScript logic | You need complex calculations or external calls |
| Switch | Route data to different paths | Different inputs need different processing |
Switch node
Use switch nodes to control the flow of your decision graph. Each branch has a condition — data flows down the first branch that matches. First hit (default) — Executes only the first matching branch: Collect — Executes all matching branches and combines results:Connecting nodes
Click and drag from a node’s output port (right side) to another node’s input port (left side). The connection shows data flow direction. Nodes can have multiple incoming connections — data from all sources merges before processing. Nodes can also have multiple outgoing connections — the same output goes to all connected nodes.How data merges
When multiple nodes connect to a single node, their outputs are merged into one object. Later connections overwrite earlier ones if they have the same field names.outputPath to namespace each node’s output (see Patterns).
Data flow
When you evaluate a decision:- Input data enters through the Input node
- Each connected node processes the data in sequence
- Results pass through connections to downstream nodes
- Results return from all endpoint nodes (or the Output node if you have one)
Organizing your graph
For complex decisions:- Arrange left to right — Keep the flow direction consistent
- Group related logic — Place similar operations near each other
- Use meaningful names — Click on node’s name to rename it
Keyboard shortcuts
| Shortcut | Action |
|---|---|
Delete | Remove selected node |
Cmd/Ctrl + C | Copy selected |
Cmd/Ctrl + V | Paste |