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:
- The entity must implement the
Validatabledelegate. 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"/>
- 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.
NewEntityExt, then you need to
create a rule set to hold your validation rules and
name it:NewEntityExtValidationRules
See also
- For information on how to create an entity that
implements the
Validatabledelegate, see <delegate> elements and related data object types. - For information on creating new rules sets, see Working with rules. See especially the section entitled “To create a new rule set”.
