Selector
selector · Nodes · Control
Selects one value from configured alternatives.
Routes data to different outputs based on a key value (switch/case pattern).
Config:
cases- array of case values (creates one output per case).erroris reserved when the failure mode is Route to error output.default_case- if true, adds adefaultoutput for unmatched keys
Inputs:
key- value to match against casesvalue- data to route
Behavior: The matching output receives value; every other output ends its branch, so nothing downstream of it runs. Keys are stringified for comparison.
Example:
Cases: ["pending", "approved", "rejected"]
Key: "approved" → approved output receives value, the other branches end
Inputs
keyRequiredvalueRequired
Outputs
case_1case_2
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
cases | array<string> | No | List of case values to match against the key input. error is reserved when the failure mode is Route to error output. |
default_case | string | No | If set, adds a 'default' output for unmatched keys |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |