Flow Toggle (4 Outputs) icon

Flow Toggle (4 Outputs)

Manually route workflow data to one of 4 outputs with a simple toggle

Flow Toggle (4 Outputs)

AI-generated

Overview

This node, named Flow Toggle (4 Outputs), allows manual routing of workflow data to one of four outputs based on a simple toggle selection. It is useful in scenarios where you want to direct data flow conditionally within a workflow, such as sending data to different processing branches or environments (e.g., production, testing, development, staging). For example, you can use it to route incoming data to a specific output for further processing or testing without changing the workflow structure.

Use Case Examples

  1. Routing incoming data to Output 1 for production processing.
  2. Sending test data to Output 2 for validation.
  3. Directing development data to Output 3 for debugging.

Properties

Name Meaning
Route To Select which output (Output 1 to Output 4) the input data should be sent to.
Options Additional settings to control the node's behavior.

Output

JSON

  • json
    • _signal - An optional signal property indicating an empty signal when no input data is present and passEmptySignal is enabled.
    • _timestamp - Timestamp of when the signal or data was routed.
    • _flowToggle
      * routedTo - The label of the output to which the data was routed, included if Add Routing Info is enabled.
      * output - The output number (1 to 4) to which the data was routed, included if Add Routing Info is enabled.
      * timestamp - Timestamp of when the routing information was added, included if Add Routing Info is enabled.

Troubleshooting

  • If no input data is provided and 'Pass Empty Signal' is disabled, the node will output nothing. Enable this option if you want to trigger downstream nodes without input data.
  • Ensure the 'Route To' property is set correctly to avoid data being sent to an unintended output.
  • If 'Add Routing Info' is enabled, the output data will include additional metadata; ensure downstream nodes can handle this extra information.

Discussion