Adding a validator to transitions

Like conditions, transitions, by default, do not have any validators associated. This means transitions are completed as soon as they are executed. You can add validators to transitions to make sure that executions are only allowed to be completed when certain criteria are met. One good use case of validators is when a transition has a workflow screen to capture user input, and you need to validate the inputs, such as date format.

Validators take place during a transition execution.

Perform the following steps to add a validator to a transition:

  1. Select the transition you want to add validators to.
  2. Click on the Validators link.
  3. Click on the Add validator link. This will bring you to the Add Validator To Transition page, which lists all the available validators you can add.
  4. Select the validator you want to add.
  5. Click on the Add button to add the validator.
  6. Depending on the validator, you may be presented with the Add Parameters To Validator page where you can specify configuration options for the validator. For example, the Permissions validator will ask you to select the permission to validate against.

Similar to conditions, when there are multiple validators added to a transition, they form a validator group. Unlike conditions, you can only use a logical AND for the group. This means that in order to complete a transition, every validator added to the transition must pass its validation criteria. Transitions cannot selectively pass validations using a logical OR.

The following screenshot shows a validator being placed on the transition, validating if the user has entered a value for the Resolution Details field:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset