Hi Folks,
We have an entity named "Substance" configured in our L3. We also have a bi-directional relation configured named "SubstanceToSubstance" with only one attribute (Relation Type) in it.
The Substance entity has a reference attribute within which we are calling this Relation Type to be displayed.
The problem we have is that from child entity perspective the Relation Type value should something and from parent entity perspective the Reltio Type value should be something else.
For Example :-
1) Entity 1 - Sodium Chloride Monohydrate
2) Entity 2 - Sodium Chloride
3) Relation 1 - Entity 1(Start) and Entity 2(End) are related and the Relation Type value is Monohydrate to Parent
From Entity 1's perspective the Relation value is Monohydrate to Parent which is as per requirement.
But from Entity 2's perspective also the Relation value is Monohydrate to Parent, however we want it to be Parent to Monohydrate.
But since we are referencing the relation attribute it always remains the same.
Could you suggest a way to achieve the above functionality that would involve minimal effort/changes? Please note that we don't want to go the LCA or an event driven process route.
We are trying to achieve the above stated requirement via label pattern in the directional context. Sample Code below from Reltio Doc, but it doesn't seem to be working.
{
"URI": "configuration/relationTypes/Parent",
"label": "Parent",
"name": "Parent",
"implicit": false,
"direction": "directed",
"typeColor": "#AA3A44",
"startObject": {
"objectTypeURI": "configuration/entityTypes/Individual",
"directionalContext": [
{
"rule": [
{
"attribute": "configuration/entityTypes/Individual/attributes/Gender",
"type": "condition",
"condition": "=",
"value": "Female"
}
],
"labelPattern": "mother"
},
{
"rule": [
{
"attribute": "configuration/entityTypes/Individual/attributes/Gender",
"type": "condition",
"condition": "=",
"value": "Male"
}
],
"labelPattern": "father"
},
{
"labelPattern": "parent"
}
]
},
"endObject": {
"objectTypeURI": "configuration/entityTypes/Individual",
"directionalContext": [
{
"labelPattern": "child"
}
]
}
}
------------------------------
Aditya
------------------------------