Include the parameter in the rating engine code
About this task
For each rate routine associated with the new parameter’s parameter set, you must add the new parameter to the map. The parameter map is in the rating engine class in Studio.
Procedure
-
In Studio, open the rating engine class for the line of business that uses this parameter. For example, open PARatingEngine.gs if this parameter is for the personal auto line. The PARatingEngine class is in the
gw.lob.pa.ratingpackage. -
Modify the executeCalcRoutine method call for each rate routine associated with a parameter set that includes this parameter.
The following example assumes that you added a parameter to the PIP NJ Parameter Set parameter set. The rate routine with the
pa_pip_nj_basic_rrcode uses this parameter set.The code that executes this rate routine is:
RateBook.executeCalcRoutine("pa_pip_nj_basic_rr", :costData = data, :worksheetContainer = data, rateRoutineParameterMap)The
rateRoutineParameterMapargument is a map defined as:var rateRoutineParameterMap : Map<CalcRoutineParamName, Object> = {TC_POLICYLINE ->_line, TC_VEHICLE ->vehicle, TC_PAPIPNJ ->cov}In the map, the
Objectmust be compatible with the type for the parameter set being used by the executing rate routine. You specify the type in the Type column on the tab in the PolicyCenter user interface.In the map, the
Objectmust be compatible with the type for the parameter set being used by the executing rate routine. You specify the type in the Type column on the Parameter Sets → Parameters tab in the PolicyCenter user interface. -
In the
rateRoutineParameterMapvariable, add a map entry for your new parameter. - Start or restart PolicyCenter to view your changes.
