Validate property values, which are typically provided by users, to ensure that a case
contains relevant data before it enters the stage.
-
In the Explorer panel of Dev Studio, click Case types, and then click the
case type that you want to open.
-
On the Data model tab, click
Validations.
-
Hover over the cell that corresponds to the row of the property to validate and the
column of the stage for which you want to perform validation.
-
Add validation for the stage:
- If the stage does not have any validation criteria, click Add entry
validation..
- If the stage has validation added, click Add another
validation.
-
In the Message field, enter the text to display when the
validation criteria is met at run time.
-
From the Field list, select the property to validate.
-
From the Comparator list, select a comparator.
-
If applicable,
in
the Value field, enter a value to compare with the user
input.
-
Add
an
“AND”
operator to use another property in the expression:
-
Click the Plus icon next to the property after which you
want to add the AND operator.
-
Select AND.
-
From the Field list, select the property to validate.
-
From the Comparator list, select a comparator.
-
In the Value field, enter a value to compare with the user
input, if applicable.
- Optional:
Add
multiple
“AND”
operators to include multiple properties in the expression.
If all properties meet the defined criteria, the condition passes. If the
defined criteria meets the specified conditions at run time, validation is triggered,
causing the defined message to be displayed for the associated property at run
time.
-
Add an
“OR”
operator to use another property in the condition:
-
Click the Plus icon next to the property after which you
want to insert the OR operator.
-
Select OR.
-
From the Field list, select the property to validate.
-
From the Comparator list, select a comparator.
-
In the Value field, enter a value to compare with the user
input, if applicable.
- Optional:
Add
multiple
“AND”
operators to include multiple properties in the expression.
- Optional:
Add
an
“OR”
operator to start a new expression.
If either property meets the defined criteria, the condition
passes.
-
In the Validate upon entering list, select the stages for which
you want to perform the validation that you defined.
-
Click Submit.
-
Click Save.
The system creates a validate rule for the stage if the stage has
no validation added and modifies the validate rule if the stage has validation added. You can
open the rule when you click Life cycle on the
Workflow tab, click the stage name, and click
Validation. The validate rule is updated in the Set entry
validation field.