Triggering Validation rules on custom entities

It is possible to create validation rules for custom entities, meaning those entities that you create yourself and that are not part of the base Guidewire PolicyCenter configuration.

For an entity to trigger a validation rule:

  1. The entity must implement the Validatable delegate. This entity must be a root entity, not a subtype of an entity. In short, any extension entity that you create that you want to trigger a validation rule must implement the following code:
    • <implementsEntity name="Validatable"/>
  2. A validation rule must exist in the Validation rule set category that conforms to the following naming convention:
    • <custom_entity_name>ValidationRules

To summarize, a validation rule must exist in a validation rule set that reflects the custom entity’s name and ends with ValdiationRules. In other words, you must create a rule set with the same name as the extension entity and add the word ValidationRules to it as a suffix. You then place your rules in this rule set.

For example, if you create an extension entity named NewEntityExt, then you need to create a rule set to hold your validation rules and name it:
  • NewEntityExtValidationRules

See also