Fields Comparator Validator

Compares the value of set fields and validates it before executing the transition.

To add 'Fields Comparator Validator' to a transition:

  1. Click Edit for the workflow that has the transition you wish to add the validator on.

  2. In the Workflow Designer, select the transition.

  3. Click on Validator in the properties panel.

  4. Click on Add validator.

  5. Select Fields Comparator Validator from the list of validators.

  6. Click on Add to add the validator on the transition.

  7. 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