Validation of rule on button submit should not start the process when evaluated to be false

We have a requirement where a rule has to be evaluated which has to happen at a button click and we have 3 buttons which needs this rule to be evaluated wrapped in a cardlayout.

Now the do we have any mechanism to evaluate the rule when any button is clicked and throw a error message when rule is not evaluated as true. Please note that all the buttons have processes in them and we should not execute the process when the rule is false.

Thanks in advance!!!

  Discussion posts and replies are publicly visible