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

  1. 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.rating package.
  2. 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_rr code 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 rateRoutineParameterMap argument is a map defined as:

    var rateRoutineParameterMap : Map<CalcRoutineParamName, Object> =
              {TC_POLICYLINE ->_line,
               TC_VEHICLE    ->vehicle,
               TC_PAPIPNJ    ->cov}

    In the map, the Object must 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 map, the Object must 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.

  3. In the rateRoutineParameterMap variable, add a map entry for your new parameter.
  4. Start or restart PolicyCenter to view your changes.