What after throw exception

I’ve workflow process, and I have the following actions [Approve , Review , Reject]

in some cases I want the user to click Review not to click Approve, and it depends on special cases, Now if the user clicked “Approve” I do the following

frappe.throw(“You have to click Review”)

The problem is here, after closing this message the actions list disappeared :frowning:

Any help?

@mostafa, if you are in the client-side, use the validate to check the workflow condition, and dont raise a exception, just change the global variable validated to false! It will block the user, and dont will crash the UI!