Survivorship groups
Learn about changing the default survivorship strategy using survivorship groups.
{
"URI":"configuration/entityTypes/Reltio.System.Individual/attributes/FirstName",
"survivorshipStrategy":"LUD"
}
default=true
is treated as a parent for all other non-default survivorship groups of the current entity type.{
"default":true,
"mapping":[
{
"attribute":"configuration/entityTypes/Reltio.System.Individual/attributes/MiddleName",
"survivorshipStrategy":"LUD"
}
]
}
Add a new survivorship group
POST {TenantURL}/configuration/entityTypes/{entityTypeName}/survivorshipGroups
Examples
- Create a new survivorship group and override the survivorship strategy of the
MiddleName
attribute to LUD. The group is set as a default group (value istrue
).POST {TenantURL}/configuration/entityTypes/{entityTypeName }/survivorshipGroups{ "default":true, "mapping":[ { "attribute":"configuration/entityTypes/Reltio.System.Individual/attributes/MiddleName", "survivorshipStrategy":"LUD" } ] }
- Create a new survivorship group and override the survivorship strategy of the
FirstName
attribute toSRC_SYS
andsourceUriOrder
for the group. The Fallback strategies section means that if there are multiple OV values for this attribute, the system will try to re-calculate the OV (among values already marked as OV) to get only one.POST{ TenantURL }/configuration/entityTypes/{ entityTypeName }/survivorshipGroups{ "sourcesUriOrder":[ "configuration/sources/TWITTER", "configuration/sources/FB" ], "mapping":[ { "attribute":"configuration/entityTypes/Individual/attributes/FirstName", "survivorshipStrategy":"SRC_SYS", "sourcesUriOrder":[ "configuration/sources/FB", "configuration/sources/TWITTER" ], "fallbackStrategies":[ "LUD", "MinValue" ] } ], "default":"true" }
Update a survivorship group
Use the following request to update a survivorship group that is already present in a configuration:
PUT {TenantURL}/configuration/entityTypes/{entityTypeName}/survivorshipGroups/{groupShortUri}
Examples
- Update the
{groupShortUri}
survivorship group URI and that overrides the survivorship strategy of theMiddleName
attribute to LUD. The group isn’t set as a default group (value isfalse
). The survivorship strategies are taken from attribute definitions in the Reference attribute configuration.PUT {TenantURL}/configuration/entityTypes/{entityTypeName }/survivorshipGroups/{groupShortUri}{ "default":false, "mapping":[ { "attribute":"configuration/entityTypes/Reltio.System.Individual/attributes/MiddleName", "survivorshipStrategy":"LUD" } ] }
- Update the
{groupShortUri}
survivorship group URI and that overrides the survivorship strategy of theFirstName
attribute toSRC_SYS
and setssourceUriOrder
for the group.PUT {TenantURL}/configuration/entityTypes/{entityTypeName}/survivorshipGroups/{groupShortUri} { "sourcesUriOrder": [ "configuration/sources/TWITTER", "configuration/sources/FB" ], "mapping": [ { "attribute": "configuration/entityTypes/Individual/attributes/FirstName", "survivorshipStrategy": "SRC_SYS", "sourcesUriOrder": [ "configuration/sources/FB", "configuration/sources/TWITTER" ] } ], "default": "true" }
Note: When the default survivorship group is changed, to get the correct search results for OV values the tenant must be reindexed to a separate index. To initiate a Reindex job and create a separate index using theenableSeparateIndexing
flag, see Reindex Data Task.
Delete a survivorship group
DELETE {TenantURL}/configuration/entityTypes/{entityTypeName}/survivorshipGroups/{groupShortUri}
Examples
- Delete
{TenantURL}/configuration/entityTypes/HCP/survivorshipGroups/GroupB
. The default value for this group is set tofalse
, and it can be deleted. Upon sending the request, you see a message that says successful operation along with the 200 response code. - Delete
{TenantURL}/configuration/entityTypes/HCP/survivorshipGroups/GroupA
. The default value for the group is set totrue
, and it can’t be deleted. Upon sending the request, you see a message that says User roles can't be set to default survivorship group along with the 400 response code. - Delete
{TenantURL}/configuration/entityTypes/HCP/survivorshipGroups/GroupC
, which does not exist. Upon sending the request, you see a message that says No survivorship Group found for GroupC along with a 400 response code.
Filters in survivorship group mapping
With the Complex OV rule type, you can define the survivorship strategy for a nested attribute based conditionally on values of a subattribute. This is accomplished using the optional "filter" property for a survivorship group mapping. Thus, a survivorship strategy, which is defined in the survivorshipStrategy
property of the mapping, will be applied only for attributes that match the filter criteria. In this way, several survivorship strategies can be used to treat different subattribute types. The resulting winners for the nested attribute are the aggregation of winners emerging from each strategy.
Survivorship group mapping example 1
Here, the developer states that for all identifiers where the identifier type is NPI
, then the survivorship strategy must be MinValue
. However, for all identifiers where the identifier type is ME
, then the survivorship strategy must be OldestValue
. Lastly, use the default "LUD" strategy for all other types.
{
"default":true,
"mapping":[
{
"attribute":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/ID",
"survivorshipStrategy":"MinValue",
"filter":{
"equals":[
{
"URI":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/Type",
"value":"NPI"
}
]
}
},
{
"attribute":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/ID",
"survivorshipStrategy":"OldestValue",
"filter":{
"equals":[
{
"URI":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/Type",
"value":"ME"
}
]
}
}
]
}
Survivorship group mapping example 2
For Identifiers of type ME
there must be one OV with MinValue
of "ID". For identifiers of type NPI
, select the OldestValue
. For all others use SRC_SYS
.
{
"default":true,
"mapping":[
{
"attribute":"configuration/entityTypes/HCP/attributes/Identifiers",
"survivorshipStrategy":"MinValue",
"comparisonAttributeUri":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/ID",
"filter":{
"equals":[
{
"URI":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/Type",
"value":"ME"
}
]
}
},
{
"attribute":"configuration/entityTypes/HCP/attributes/Identifiers",
"survivorshipStrategy":"OldestValue",
"filter":{
"equals":[
{
"URI":"configuration/entityTypes/HCP/attributes/Identifiers/attributes/Type",
"value":"NPI"
}
]
}
},
{
"attribute":"configuration/entityTypes/HCP/attributes/Identifiers",
"survivorshipStrategy":"SRC_SYS"
}
]
}
Survivorship group mapping example 3
Use the OldestValue
survivorship strategy for the FirstName
attribute for all HCPs from the states of "NY" or "TX" and use Aggregation
for all others.
{
"default":true,
"mapping" ;:[
{
"attribute":"configuration/entityTypes/HCP/attributes/FirstName",
"survivorshipStrategy":"OldestValue",
"filter":{
"equals":[
{
"URI":"configuration/entityTypes/HCP/attributes/Address/attributes/State",
"value":"NY"
}
]
}
},
{
"attribute":"configuration/entityTypes/HCP/attributes/FirstName",
"survivorshipStrategy":"OldestValue",
"filter":{
"equals":[
{
"URI":"configuration/entityTypes/HCP/attributes/Address/attributes/State",
"value":"TX"
}
]
}
},
{
"attribute":"configuration/entityTypes/HCP/attributes/FirstName",
"survivorshipStrategy":"Aggregation"
}
]
}
Survivorship group mapping example 4
Use the OldestValue
survivorship strategy for the FirstName
attribute for all HCPs from the states of "NY" or "TX" states (single set) and use Aggregation
for all others.
{
"default": true,
"mapping": [
{
"attribute": "configuration/entityTypes/HCP/attributes/FirstName",
"survivorshipStrategy": "OldestValue",
"filter": {
"equals": [
{
"uri": "configuration/entityTypes/HCP/attributes/Address/attributes/State",
"value": "NY"
},
{
"uri": "configuration/entityTypes/HCP/attributes/Address/attributes/State",
"value": "TX"
}
]
}
},
{
"attribute": "configuration/entityTypes/HCP/attributes/FirstName",
"survivorshipStrategy": "Aggregation"
}
]
}