I have a nested conditional transform that evaluates the organization attribute across multiple levels. The last conditional references an identityAttribute (aliasAttribute) in its negativeCondition.
When trying to reference this attribute, the transformation throws an error:
Error rendering template: $aliasAttr
Example:
{
"name": "Example Nested Conditional Transform",
"type": "conditional",
"attributes": {
"expression": "$organization eq ORG1",
"positiveCondition": "RESULT1",
"negativeCondition": "$condLevel2",
"organization": {
"attributes": {
"name": "organization"
},
"type": "identityAttribute"
},
"condLevel2": {
"type": "conditional",
"attributes": {
"expression": "$organization eq ORG2",
"positiveCondition": "RESULT1",
"negativeCondition": "$condLevel3",
"organization": {
"attributes": {
"name": "organization"
},
"type": "identityAttribute"
},
"condLevel3": {
"type": "conditional",
"attributes": {
"expression": "$organization eq ORG3",
"positiveCondition": "RESULT1",
"negativeCondition": "$aliasAttr",
"organization": {
"attributes": {
"name": "organization"
},
"type": "identityAttribute"
},
"aliasAttr": {
"type": "identityAttribute",
"attributes": {
"name": "aliasAttribute"
}
}
}
}
}
}
},
"internal": false
}
-
Level 1:
$organization eq ORG1→ positiveCondition ="RESULT1", negativeCondition =$condLevel2 -
Level 2:
$organization eq ORG2→ positiveCondition ="RESULT1", negativeCondition =$condLevel3 -
Level 3:
$organization eq ORG3→ positiveCondition ="RESULT1", negativeCondition =$aliasAttr
I’m not sure how to reference an identity attribute in negativeCondition for nested conditionals. Any advice?