Define revisioned field as syncable on account location
Before you begin
About this task
Add the new field to the gw.account.AccountLocationToPolicyLocationSyncedField.gs class. Define the new field as revisioned and syncable on the account.
The AccountLocationToPolicyLocationSyncedField
constructor assumes that the field name is appended by Internal. If the field name is
appended by Internal,
copy one of the existing the variable definitions and modify it for the
new field. For example, you can copy and modify AddressLine1:
public static final var AddressLine1 : AccountLocationToPolicyLocationSyncedField<String>
= new AccountLocationToPolicyLocationSyncedField<String>("AddressLine1")
If the field name is appended with Internal and an extension, Internal_Ext for example, copy one of the
existing the variable definitions and modify it for the new field. Then add a second parameter for the name of the
field on the policy location. You must also define a constructor with two arguments for the
accountEntityFieldName method.
The instructions describe how to define the field if it is appended by Internal_Ext.
To define the revisioned field appended with Internal_Ext:
Procedure
- In Studio, open gw.account.AccountLocationToPolicyLocationSyncedField.gs.
-
Define a constructor for
accountEntityFieldNamewith two arguments:construct(accountEntityFieldNameArg : String, policyEntityFieldNameArg : String) { super(accountEntityFieldNameArg, policyEntityFieldNameArg) } -
Add the
FloodPlainfield to the AccountLocationToPolicyLocationSyncedField class:class AccountLocationToPolicyLocationSyncedField<T> extends AbstractAccountSyncedFieldImpl<PolicyLocation, T> { ... public static final var FloodPlain : AccountLocationToPolicyLocationSyncedField<String> = new AccountLocationToPolicyLocationSyncedField<String>("FloodPlain", "FloodPlainInternal_Ext") ...
