Validation in PolicyCenter
PolicyCenter has several types of validation:
- Field validation – Is part of the PCF rendering framework and uses regular expressions to ensure that entry is valid. For example, field validation checks that a phone number is in the correct format.
- Class-based – You can invoke Gosu class-based validation from PCF files, job processes, wizard steps, workflow steps, integration plugins, and from any Gosu code. The validation class checks that certain conditions are met. The class can raise errors or warnings that includes the validation level at which it failed. For example, after entering vehicles on a Personal Auto policy in the submission wizard, your class-based validation code can check that the policy has at least one driver. If not, the code raises an error at a particular validation level.
- Rules-based – On a database commit, for example when you click Next in wizard, PolicyCenter calls the validation rules on each validatable object in the bundle. The rules check that certain conditions are met on the object. If the conditions are met, the bundle can be saved. Otherwise, the rule raises a validation error or warning that includes the validation level at which it failed.
