Break
Break is a built-in control tool in viaSocket used to immediately stop the execution of the entire workflow. When a Break step runs, no further steps—across any path—are executed. It is useful for terminating flows early based on specific conditions such as invalid data, blocked users, or business rule violations.
How to Use It
Break is only available as an action step inside a Multiple Paths block. It will appear as an in-built tool when you're adding a step within any of the conditional paths.
Example Use Cases
Validation Failure: If a required input is missing or invalid, use Break to stop the flow before unnecessary actions are taken.
Security Enforcement: If a user is flagged or blacklisted, terminate the flow to prevent further processing.
Business Logic: Stop the flow if an order or request doesn’t meet key business rules.