Hi,
I have a use case where I need to perform some validation upon creating or editing an employee record that has a particular role. However, it seems the role condition is simply not working. To illustrate the situation, I've created a minimal workflow and done some tests as follows:
Test 1 (client-side)
I added a show message action to fire based on the role condition. However, when I edit an employee record where this condition in met, the message is not shown:
Test 2 (server-side)
I added a show error message action on the before submit hook but again, no error is shown and I can save employee records matching this condition
As per the workflow configuration, it is set to fire on all events/triggers as shown below so there shouldn't be an issue on that front. The workflow is also configured to execute as admin which again shouldn't be an issue.
Question: Am I missing something obvious here or is this a bug? Why can't I filter actions by roles assigned to the user being edited?
Thanks
PS: There's also the "User Role" field available as a condition. However, that refers to the role of the user executing the workflow which is not what I'm interested in. I want to set up a condition based on the role assigned to the employee being edited.