Cost data in the rate routine plugin

The rate routine plugin contains methods that set up cost data wrappers for the rate routine to use. These wrappers are used to define which properties on the cost appear when you select an instruction or operand in a rate routine step. The plugin must implement the getCostDataWrapperType and makeCostDataWrapper methods. In the built-in implementation, the rate routine plugin simply transfers processing to line-of-business configuration classes, if they exist.

The makeCostDataWrapper method returns a cost data wrapper for the given cost data. The wrappers in the sample implementation are:

  • CalcRoutineCostData
  • CalcRoutineCostDataWithAmountOverride
  • CalcRoutineCostDataWithPremiumCap
  • CalcRoutineCostDataWithTermOverride

These wrappers are in the gw.rating.flow.domain package.