Conditions and validators
Conditions and validators allow you to add certain requirements on workflow transitions to make sure that your request can be transitioned only if these requirements are met. Insight introduces conditions and validators that are related to object attributes (for example, you'd allow a change request for a server only if it's not in production).
To view available conditions and validators:
- Open a workflow that you'd like to add the conditions or validators to.
- Select a transition. Conditions and validators are added to a transition rather than a workflow step.
- Select Conditions or Validators, then select Add.
- Select Insight Condition or Insight Validator.
- Select one of the available options. Learn more about them in the table below.
Here are the Insight conditions or validators that you can use:
|Validate on object attributes|
Allows to transition a request only if the related object's attributes meet this condition/validator's criteria. For example:
You'd build your queries here using IQL - Insight Query Language.
|Run a Groovy script|
Allows you to run a groovy script within the conditions/validator, which can be useful when you need some specific requirements met.
For more info about Groovy scripts and examples, see Groovy scripts.