Add new underwriter rule context definition

Procedure

  1. Open Guidewire Studio.
  2. In the Studio Project window, navigate to configuration > gsrc > gw > bizrules > provisioning > contexts.
    1. In the contexts package, create a class that extends the GenericUWRuleContextDefinition class.
    2. In a similar manner to the existing symbol definitions, edit the class constructor:
      – For each new context symbol, call the addSymbol method for that symbol.

      – If this is to be an iterable rule context definition, call exactly one addIterativeSymbol method.

    3. Define the applicability of the new rule context definition to the PolicyCenter policy lines in function appliesToPolicyLines.
  3. In the Studio Project window, navigate to configuration > config > Extensions > Typelist.
    1. Create a RuleContextDefinitionKey typelist extension, if one does not exist.
    2. Add a typecode to this typelist for the rule context definition that you created in the previous step.
  4. In the Studio Project window, navigate to configuration > gsrc > gw > plugin > bizrules.impl.
    1. Open the implementation class for the IBizRulesPlugin plugin.
    2. Add an entry to the class constructor for the new rule context definition. Use an existing entry as an example.
  5. In the Studio Project window, navigate to configuration > gsrc > gw > bizrules > provisioning > triggeringpoints.
    1. Open class UnderwriterEvaluatorTriggeringPoint.
    2. In function supportedContexts, add an entry for the typecode that you added to the RuleContextDefinitionKey typelist. Use an existing entry as an example.
  6. Restart the application server for these changes to become effective.
  7. Open Guidewire PolicyCenter and navigate to Administration > Business Settings > Business Rules > Underwriting Rules.
    1. Create a new Underwriter rule.
    2. Verify that the new context symbol shows in the Context drop-down of the rule editor.
    3. Experiment with the different policy lines that show in the Applies To section of the rule editor.