How do validators work
I have a validator which returns ERROR but still the work item is saved.
I have enabled Attribute Validation in Pre conditions, but still I am able to save the workitem with ERROR validation result.
"You need to configure this Validation precondition with your validator."
I do not see any configuration options for Attribute Validation precondition.
Please help.
Accepted answer
Unless you get more specific in your question, please read https://jazz.net/library/article/1093 Lab 4 and 5 for how to configure the operational behavior (pre-condition) for validators.
Comments
We discussed this and one thing to notice is that operational behavior is, other than permissions, not cumulative. If multiple roles have operational behavior configured, the first matching configuration for the first role in the order of the roles is executed.
If several roles are configured e.g. Developer, Team Lead, Everyone, and they are configured differently, the behavior with a user with one of these roles in the context will be different.
If behavior should be performed for multiple roles, you have to add the desired behavior to all those roles, otherwise it will not be executed. The operational behavior for the role Everyone is not always performed for all users, especially if operational behavior for other roles is configured.
See: https://jazz.net/library/article/292 for how this works.