Extend entity and Gosu class for future-date policy changes

Complete the step Define the field as syncable on the account contact role before you perform this step.

In certain circumstances, a policy may have a change to the contact name that takes effect at a future date. This change will be applied the account contact at that future date. For more information, see Revisioning contact information in policies.

Because of future-dated changes, you must extend the PendingAccountContactRoleUpdate entity. The PendingEntityUpdate entities are necessary to update the account level fields when PolicyCenter changes those fields on the policy in the future.

Extend entity Gosu class

Procedure

  1. Navigate to configuration > config > Extensions > Entity.
  2. Right-click Entity and select New > Entity Extension.
  3. Enter PendingAccountContactRoleUpdate and click OK.
  4. In the extension file, add a column with the following values:

    Name

    Value

    name

    AuditLicenseNumber_Ext

    type

    mediumtext

    desc

    The audit license number that needs to be updated on the AccountContactRole at a future date.

  5. Add another column with the following values:

    Name

    Value

    name

    AuditLicenseNumberIsNull_Ext

    type

    bit

    default

    false

    desc

    True if the AuditLicenseNumber_Ext field will be set to null.

  6. In gw.account.PendingAccountContactRoleUpdateAdapter.gs, add code to the applyUpdate method that copies these two properties.

What to do next

Add get and set methods to the policy contact role