Validation Rules and Entity Types
If you define a validation rule, Guidewire
recommends that you define it in a rule set declared for a specific entity
type. For example, define it in a rule set that declares Policy, User, or one of the other business
entities. Although it is possible to access other business entities within
that rule (other than the declared type), only
call the reject method
on the declared entity in the rule set.
Studio does not detect violations of this guideline. Thus, during validation, it is possible that some traversal of the objects to be validated can reset that entity's previous result. If this traversal is before the rule engine executes the entity’s own rules, PolicyCenter would lose this particular reject.
