Fields Comparator Validator
Compares the value of set fields and validates it before executing the transition.
To add 'Fields Comparator Validator' to a transition:
Click Edit for the workflow that has the transition you wish to add the validator on.
In the Workflow Designer, select the transition.
Click on Validator in the properties panel.
Click on
Add
validator
.Select
Fields Comparator Validator
from the list of validators.Click on
Add
to add the validator on the transition.Fill the form shown below and press 'Add' button.
Fields
Comparator Type (Required) – Here you can select how the fields will be compared, as number, string, timestamp or complex (class type)
Field – The field with the value that will be used to compare
Operator – The type of operator that will be used for the comparison, equals, different, greater than or less than.
Field to Compare – The field that will be checked to have the same value as the one selected previously
Default Message – Set here the message you want to display o users when this validation fails