Step 1: Provide a Replicator Extension Implementation

The first step is to provide a new implementation that implements the relevant replication extension interface for the evidence type and maps the custom data back to the legacy table. The code snippet below demonstrates a custom implementation for PDCPhoneNumberReplicatorExtender. It simply assigns the value of the dynamic evidence attribute to the phoneProvider struct attribute. This information will then be inserted along with the other dynamic evidence attributes via the default implementation for PDCPhoneNumberReplicatorExtender.

public class SampleReplicatorExtenderImpl
  implements PDCPhoneNumberReplicatorExtender {

  public void assignDynamicEvidenceToExtendedDetails(
    DynamicEvidenceDataDetails dynamicEvidenceDataDetails,
    ParticipantPhoneDetails details)
    throws AppException, InformationalException {

    details.phoneProvider =
    dynamicEvidenceDataDetails.getAttribute("phoneProvider").getValue();
  }
}