Overview
This node routes the workflow execution based on the 'action' property of the incoming data. It directs the flow into one of four outputs: Approve, Reject, Return, or NoOp, depending on the user's previous task response. This is useful in scenarios where different processing paths are needed based on user decisions, such as approval workflows, rejection handling, or returning tasks for revision.
Use Case Examples
- In an approval process, if a user approves a request, the workflow continues down the 'Approve' path.
- If a user rejects a request, the workflow follows the 'Reject' path to handle rejection logic.
- If a user returns a task for further review, the workflow routes to the 'Return' path.
- If none of these actions match, the workflow proceeds via the 'NoOp' path.
Output
JSON
Approve- Data routed when action is 'Approve'Reject- Data routed when action is 'Reject'Return- Data routed when action is 'Return'NoOp- Data routed when action does not match any of the above
Troubleshooting
- Ensure the incoming data contains a valid 'action' property; otherwise, the node will route data to the 'NoOp' output.
- If the 'action' property value is misspelled or unexpected, the data will not be routed to the intended output.