Flow Toggle (3 Outputs) icon

Flow Toggle (3 Outputs)

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

Flow Toggle (3 Outputs)

AI-generated

Overview

This node, named 'Flow Toggle (3 Outputs)', allows manual routing of workflow data to one of three outputs based on a simple toggle selection. It is useful in scenarios where you want to control the flow of data dynamically within a workflow, such as directing data to different processing branches or environments (e.g., production, testing, development). 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, Output 2, or Output 3) the data should be sent to.
Options Additional settings to control node behavior.

Output

JSON

  • json
    • _signal - An empty signal indicator when no input data is present and 'Pass Empty Signal' is enabled.
    • _timestamp - Timestamp of the empty signal or routing event.
    • _flowToggle
      * routedTo - Label of the output to which data was routed, included if 'Add Routing Info' is enabled.
      * output - Output number (1, 2, or 3) to which data was routed, included if 'Add Routing Info' is enabled.
      * timestamp - Timestamp when the routing occurred, included if 'Add Routing Info' is enabled.

Troubleshooting

  • If no input data is provided and 'Pass Empty Signal' is disabled, the node will output no data. Enable 'Pass Empty Signal' to ensure downstream nodes receive a signal.
  • Ensure the 'Route To' property is correctly set to one of the three outputs; otherwise, data may not be routed as expected.
  • If custom labels are used, verify they are set correctly to avoid confusion in routing information.

Discussion