Add get and set methods to the policy contact role

Complete the step Extend entity and Gosu class for future-date policy changes before you perform this step.

Since you created a new PolicyAuditContact_Ext contact role, you must first create an enhancement.

Add get and set methods for syncable fields to gw.contact.PolicyAuditContact_ExtEnhancement. The get and set methods access the AccountContactRoleToPolicyContactRoleSyncedField class. In the following illustration, the circled number 5 shows the get and set methods on the PolicyAuditContact_ExtEnhancement class.



Create new enhancement for contact role

Procedure

  1. In Studio, navigate to the gw.contact package.
  2. Right-click contact and select New > Gosu Enhancement.
  3. In the New Gosu Enhancement dialog, enter “PolicyAuditContact_ExtEnhancementment” in Name and “PolicyAuditContact_Ext” in Enhanced type, and click OK.
    Studio creates gw.contact.PolicyAuditContact_ExtEnhancement.gsx.

What to do next

Add get and set methods to the policy location

Add get and set methods to the policy location

Before you begin

Create new enhancement for contact role.

Procedure

  1. In Studio, open gw.policylocation.PolicyAuditContact_ExtEnhancement.gsx.
  2. Underneath the package statement, add:
    uses gw.account.AccountContactRoleToPolicyContactRoleSyncedField
  3. In the enhancement, insert get and set methods for AuditLicenseNumber:
    /**
       * Shared and revisioned AuditLicenseNumber.
       */
      property get AuditLicenseNumber() : String {
        return AccountContactRoleToPolicyContactRoleSyncedField.AuditLicenseNumber.getValue(this)
      }
    
       /**
       * Shared and revisioned AuditLicenseNumber.
       */
      property set AuditLicenseNumber(arg : String) {
        AccountContactRoleToPolicyContactRoleSyncedField.AuditLicenseNumber.setValue(this, arg)
      }

What to do next

Add revisioned field to PolicyCenter user interface