Creating externally managed underwriting rules in Gosu code
In PolicyCenter, provides a user interface to define underwriting rules. However, if your underwriting rule does not fit within the Underwriting Rules framework, you can implement the underwriting rule in Gosu code. These rules are externally managed rules, which have their rule condition defined outside business rules, often in Gosu code. This topic describes how to create an externally managed rule in Gosu code.
Use an externally managed rule if:
- The rule is too complex to write within the Underwriting Rules framework.
- Your underwriting rule has outcomes that are more complex than just adding an underwriting issue. For example, create an underwriting issue and an activity or contingency.
Underwriting issues can be raised by the Rule Condition in the Underwriting Rules user interface, or by an externally managed rule. Underwriting rules conditions written using the underwriting Rule screen can be viewed by authorized users in PolicyCenter. These rule conditions can be edited, enabled, and disabled, and can be efficiently moved between PolicyCenter instances. Externally managed underwriting rule conditions written in Gosu are not accessible in the user interface, however the fields associated with the underwriting issue type are. However Gosu code can handle more complex rules and, in some cases, improve system performance. In both cases, PolicyCenter creates UWRule and UWIssueType entities. These entities have foreign keys to each other.
This topic describes how to write Gosu code that defines the rule condition that raises underwriting issues.
See also
