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
-
In Studio, navigate to the
gw.contactpackage. -
Right-click
contactand select . -
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
Before you begin
Procedure
-
In Studio, open
gw.policylocation.PolicyAuditContact_ExtEnhancement.gsx. -
Underneath the package statement, add:
uses gw.account.AccountContactRoleToPolicyContactRoleSyncedField -
In the enhancement, insert
getand set methods forAuditLicenseNumber:/** * 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) }
