Whitelisting an entity method in the rule condition builder
To whitelist an entity method is to make that method available for use in the Rule Condition builder in the Business Rules editor. In the default implementation class of the IBizRulesPlugin plugin, Guidewire provides an example of a business rule whitelisted method.
The following code sample illustrates how to whitelist an entity method.
override property get WhiteListedMethods(): Map<IMethodReference, String> {
return {
Object#toString() -> "converts instance to readable text",
PolicyContextDefinitionLibrary#hasGoodDriverDiscount(PolicyDriver) ->
"determines whether a driver qualifies for GoodDriverDiscount"
}
}
