Example of Defining Set Attribute Value Rules for Custom Attributes

This topic explains how to define a survivorship rule of the type Set Attribute Value to select the smallest value for a specific attribute. This rule has a single condition where it picks a record that has the smallest value for the specified custom attribute.

The following table contains the details of a use case for a set attribute value rule to select the smallest value for a specific custom attribute as the survivor. In this case the example attribute name is CustomField1_c.

Record Number

Party ID

CustomField1_c Attribute Value

Party Name

Survivor

Record 1

11

123

Oracle Corp

Yes

Record 2

12

1456

Oracle USA Corp

No

Record 3

13

239940

Oracle

No

In this case, there are three records with CustomField1_c custom attribute. The value 123 is picked up as the survivor value for the CustomField1_c custom attribute because it's the smallest value for that attribute.

The following figure displays the Define Survivorship Rules: Select Attribute Value page with the IF and THEN rules condition values to create the set attribute value rule to pick the smallest value for the CustomField1_c custom attribute as the survivor. The details of the conditions are as follows:IF condition: If (for each case where) {org is a OrganizationDVO and org.CustomField1_c isn't null } and there is no case where {another org is a OrganizationDVO and another org.CustomField1_c isn't null and org.PartyId isn't another org.PartyId and org.CustomField1_c.length() more than another org.CustomField1_c.length()}THEN condition: Then call setAttribute("CustomField1_c", org.PartyId)
Define Survivorship Rules: Select Attribute Value page with the IF and THEN rules condition values for creating the set attribute value rule to pick the smallest value for the CustomField1_c custom attribute as the survivor