Validations in Pega
Validations in Pega
To validate a property or a page is to check its value against certain rules, an d add a message to the page if validation fails. An invalid page (a page that ha s any associated messages) usually cannot be stored into the database. There are three levels of page and property validations namely, Mode validation, property validation and object validation. Mode validation is automatic and always in force. It prevents setting single val ue to a page property or value of a page mode into a string list property. Dictionary Validation takes care of preventing user inputting of XYZ to integer pr operty -20 to date property. The propertys maximum length, values entered in table edit tab, qualifiers are also tested. Dictionary validation also get performed w hen Rule-Edit-Input, Rule-Edit-Validate are applied to the property. Object Validation uses Obj-Validate method to call Rule-Edit-Validate for furthe r testing of properties. Object validation is not automatic and should be explic itly implemented in the application. The following are the validation rules covered in this section. 1. Rule-Edit-Input 2. Rule-Edit-Validate 3. Rule-Obj-Validate 4. Rule-Message 5. Rule-Declare-Constraints 6. Property-Validate 7. Page-Validate