Switch case
This node enables you to evaluate an input value against multiple predefined cases and route the flow to the corresponding output port based on the matching case.
Example:
Or for a more intuitive example:
In this example the node will evaluates the name of the input file and determines the relevant department based on predefined cases. Depending on the department identified in the file name, the workflow routes to the corresponding output port:
Port 0 (Accounting): If the file name contains "Accounting," the flow is routed to the Accounting output port.
Port 1 (Human Resources): If the file name contains "Human_Resources," the flow is routed to the Human Resources output port.
Port 2 (Development): If the file name does not match "Accounting" or "Human_Resources," it defaults to the Development output port.
Last updated