Hello all,
It would be very nice to have an action that could cancel and exit the current workflow, just as it does when some workflow action failed.
This would be very useful in many cases.
For instance, we usually have to set up some verifications before doing an action.
If a user want to rent a flat, we could first check if he has confirmed is email, then if he has a profile picture, if we have his address, if he registered a payment method, and so on…
If one of these check fails, we could want to perform a specific action, such as showing a popup, but not execute the following steps of the workflow (or we would have multiple popups for each fail).
And since these verifications are critical, we do not want to duplicate them to handle all possible cases, but only have one global workflow.
Being able to cancel a workflow on some conditional, and even raise an error as some actions do, would enable that
Also, it seems not clear to me which action and which specific cases might top a running workflow. For instance, if I modify a thing to set one field to the first item of a search result, and the search returns an empty list, does it stop the workflow ? THere are many other cases like this, and the documentation does not seem to mention especially which case can cancel a workflow.