Add new underwriter rule context definition
Procedure
- Open Guidewire Studio.
-
In the Studio Project window, navigate to .
-
In the
contextspackage, create a class that extends the GenericUWRuleContextDefinition class. -
In a similar manner to the existing symbol definitions, edit the class
constructor:
– For each new context symbol, call the
addSymbolmethod for that symbol.– If this is to be an iterable rule context definition, call exactly one
addIterativeSymbolmethod. -
Define the applicability of the new rule context definition to the PolicyCenter
policy lines in function
appliesToPolicyLines.
-
In the
-
In the Studio Project window, navigate to .
-
Create a
RuleContextDefinitionKeytypelist extension, if one does not exist. - Add a typecode to this typelist for the rule context definition that you created in the previous step.
-
Create a
-
In the Studio Project window, navigate to .
-
Open the implementation class for the
IBizRulesPluginplugin. - Add an entry to the class constructor for the new rule context definition. Use an existing entry as an example.
-
Open the implementation class for the
-
In the Studio Project window, navigate to .
-
Open class
UnderwriterEvaluatorTriggeringPoint. -
In function
supportedContexts, add an entry for the typecode that you added to theRuleContextDefinitionKeytypelist. Use an existing entry as an example.
-
Open class
- Restart the application server for these changes to become effective.
-
Open Guidewire PolicyCenter and navigate to .
- Create a new Underwriter rule.
-
Verify that the new context symbol shows in the
Contextdrop-down of the rule editor. -
Experiment with the different policy lines that show in the
Applies Tosection of the rule editor.
