Validations
The purpose of validation is to check the property values, to be expected, before we actually process it.
How Many Types of Validations
Two Types
1. Client Side Validation 2. Server side validation.
Client Side Validation: - The Validation happens on Browser, at HTML or Java Script level.
Server Side Validation:- Validation happened at the server side, that means, when an action is
performed, request will go to application server, and then then response will be received from server.
What are the rules that pega provides Validations:
Pega Provides two types of rules
1. Validate 2. Edit Validate.
Understanding Validate Rule
It is an instance of class Rule-Obj-Validate.
It can be created under Process Category.
This is how a validate rule form looks like
If validation fails, we can display an error message back to property.
It can be called from
1. Flow action (Under Validation Tab)
2. Activity using the method Obj-Validate
3. Validate rule
When we call validate rule from a flow action, it gets executed on click of Submit Button.
When Validate rule is called in flow action, If validation fails, case will not move to next step instead it
will be on same screen
This is Server Side Validation.
Using an Obj Validate we can validate multiple properties.
Open the validate rule and click on any condition
Here we can see the check box “Continue Validation”. is by default selected.
Letsun check this for one or two conditions
Un check 1, 2 and 3 condition
.
Continue Validation when we un check it acts like a break point.
Validation happens up to first break point. After this is fixed, then validation will proceed to next
break point and so on….