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
- In the Studio Project window, navigate to .
-
Right-click
loband select . 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 namedgw.lob.go. -
In the Studio Project window,
navigate to an existing Configuration class file. For
example, navigate in
to the
gw.lob.glpackage.To simplify creating a new Configuration class, copy an existing class from another line of business and make the necessary changes to the code. -
Right-click the Configuration class file. For
example, right-click
GLConfiguration. Then select Copy. -
Navigate back to your new policy line package. For
Golf Cart, navigate in
to the
gw.lobpackage, and then right-clickgo. Then select Paste. - 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.
-
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. -
Within the GOConfiguration class, make any changes to the
RateRoutineConfigproperty as follows:- If you are using Guidewire Rating Management, change the
RateRoutineConfigproperty to return an appropriate RateRoutineConfig class. Examine another line for guidance on implementing the class. For example, examinePAConfigurationandPARateRoutineConfigand define similar code to implement rating in your new line. - If you are using the system table rating plugin,
gw.plugin.policyperiod.impl.SysTableRatingPluginor a third- party rating solution, set the property to return null.
- If you are using Guidewire Rating Management, change the
-
Within the GOConfiguration class, null and change the
AllowedCurrenciesproperty 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.
