Excluding contact fields from being saved in the ClaimCenter database

You can use the ContactMapper method withPersist to specify that a contact field not be saved in the ClaimCenter database. This feature enables ClaimCenter to receive the field from ContactManager and display it the ClaimCenter user interface, but not save the field. By default, all contact fields in ContactMapper are saved, or persisted.

Important: Setting a field to not persist means that you want the ClaimCenter user to be able to see the value of the field but not change it. Do not enable editing for the field in screens like ContactDetails.pcf, and do not send the field back to ContactManager.

To set a field to not persist, use the withPersist method and set its parameter to false. You must also use withMappingDirection(TO_BEAN) to map the field only from ContactManager to ClaimCenter. Additionally, use withAffectsSync(false) to exclude the field from being included in the synchronization check. Otherwise, the contact would always be out of sync. For example:

arrayMapping(Contact#ContactManagerOnlyField)
  .withMappingDirection(TO_BEAN)
  .withAffectsSync(false)
  .withPersist(false),