Example of Defining Set Master Record Rules for Parties with Custom Attributes
- Pick master that has a specified custom attribute. In this case the custom attribute is Testfieldone_c.
- Pick master that has the highest Party ID.
Record Number |
Party ID |
Testfieldone_c |
Master |
---|---|---|---|
Record 1 |
11 |
Test |
No |
Record 2 |
12 |
Test |
Yes |
Record 3 |
13 |
None |
No |
Record 4 |
14 |
None |
No |
In this case, there are two records with the custom attribute Testfieldone_c. Therefore, the record with highest party ID is picked as the master record.
The following figure displays Define Survivorship Rules: Select Master Record page with the IF and THEN rules condition values to create the set master record rule to pick the record with specified attributes as the master. The details of the conditions are as follows:
IF condition: If masterPartyId is the maximum of master.PartyId where {master is a HZ_PERSON_FactType.PersonDVO and master.Testfielddone_c isn't null}
THEN condition: Then Assert new Result (name:"masterId", value:masterPartyId)Define Survivorship Rules: Select Master Record This image depicts defining survivorship.