Add policy line package and configuration class

About this task

Every new policy line that you add to PolicyCenter must have its own package containing a Configuration Gosu class. The Configuration class must extend the PolicyLineConfiguration class. In the lines of business supplied in the PolicyCenter base configuration, the line-specific classes override two properties: RateRoutineConfig and AllowedCurrencies.

Procedure

  1. In the Studio Project window, navigate to configuration > gsrc > gw.
  2. Right-click lob and select New > Package. In the New Package dialog box, enter the package name. The package name must be a lower-case duplicate of the code specified in Register the new line of business. For the Golf Cart example, enter go.
    Studio creates a new package named gw.lob.go.
  3. In the Studio Project window, navigate to an existing Configuration class file. For example, navigate in configuration > gsrc to the gw.lob.gl package.
    To simplify creating a new Configuration class, copy an existing class from another line of business and make the necessary changes to the code.
  4. Right-click the Configuration class file. For example, right-click GLConfiguration. Then select Copy.
  5. Navigate back to your new policy line package. For Golf Cart, navigate in configuration > gsrc to the gw.lob package, and then right-click go. Then select Paste.
  6. In the New Name field of the Copy Class dialog box, change the name of the class. Remove the upper-case package name from the source line of business and replace it with the upper-case package name of the new line of business. For example, if you copied the GLConfiguration class, change the name to GOConfiguration for Golf Cart.
  7. Verify that the Destination package is correct. For Golf Cart, the destination package is gw.lob.go. When you click OK, Studio creates and opens the new class file.
  8. Within the GOConfiguration class, make any changes to the RateRoutineConfig property as follows:
    • If you are using Guidewire Rating Management, change the RateRoutineConfig property to return an appropriate RateRoutineConfig class. Examine another line for guidance on implementing the class. For example, examine PAConfiguration and PARateRoutineConfig and define similar code to implement rating in your new line.
    • If you are using the system table rating plugin, gw.plugin.policyperiod.impl.SysTableRatingPlugin or a third- party rating solution, set the property to return null.
  9. Within the GOConfiguration class, null and change the AllowedCurrencies property to specify the unlocalized typecode for the policy line.
    Note: PolicyCenter will not start if it finds a policy line without a corresponding lineConfiguration class within the policy line package.