EnVau
EnVau2mo ago

How to Stop Workflow Execution Based on Boolean Value in Request Body

Hey Community! I'm looking for the simplest way to stop a workflow if a boolean in the request body is set to false. Is there a module or any method to terminate the workflow right at this point so no further nodes are executed?
4 Replies
AI Support
AI Support2mo ago
AI Support Bot Information
<@607647473506451456> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2mo ago
AI Response
I couldn't find a specific module or method to directly terminate a workflow based on a boolean condition from the request body in the primary nodes or FAQ resources available. To implement such functionality, you might consider using a conditional logic node that evaluates the boolean value. If the boolean is true, the workflow continues; if false, it redirects to a flow that doesn't execute further actions. You typically handle this using conditional or branch nodes, which act based on the dynamically evaluated conditions. If you need further assistance, I would recommend reaching out through in-app support for more detailed guidance specific to your setup.
BuildShip AI Support
EnVau
EnVauOP2mo ago
But if I do it with the branch node, I still have the else path that leads to the next node?
No description
Zorro
Zorro2mo ago
Hi! Normally you can just add a return which will stop the workflow execution