Contents

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). error is reserved when the failure mode is Route to error output.
  • default_case - if true, adds a default output for unmatched keys

Inputs:

  • key - value to match against cases
  • value - 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

  • keyRequired
  • valueRequired

Outputs

  • case_1
  • case_2

Configuration

FieldTypeRequiredDescription
casesarray<string>NoList of case values to match against the key input. error is reserved when the failure mode is Route to error output.
default_casestringNoIf set, adds a 'default' output for unmatched keys
base_configrecordNoShared 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).