There’s a flaw in my LCS logic somewhere but I can’t find where. I have a transform determining what LCS Identities go into, but for some reason it’s dumping 27 active Identities (they are active in our HR system I mean) in the terminated LCS. Can someone help? This transform was initially written by SailPoint Advisory Services but I’ve made some changes here and there.
{
"id": "e4a012e2-32f7-4659-8162-446a9118f5f8",
"name": " - LifeCycleState",
"type": "static",
"attributes": {
"disableAD": {
"type": "upper",
"attributes": {
"input": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"attributeName": "companyUDF.DISABLE AD",
"sourceName": "UKG Pro (HR)"
}
},
{
"type": "static",
"attributes": {
"value": "NONE"
}
}
]
}
}
}
},
"employeeStatus": {
"type": "accountAttribute",
"attributes": {
"attributeName": "employeeStatus",
"sourceName": "UKG Pro (HR)"
}
},
"hireDate": {
"type": "dateFormat",
"attributes": {
"inputFormat": "M/d/yyyy hh:mm:ss a",
"outputFormat": "yyyy-MM-dd",
"input": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"attributeName": "hireDate",
"sourceName": "UKG Pro (HR)"
}
},
{
"type": "static",
"attributes": {
"value": "1/1/1900 12:00:00 AM"
}
}
]
}
}
}
},
"termReason": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"attributeName": "employmentDetails.termReason",
"sourceName": "UKG Pro (HR)"
}
},
{
"type": "static",
"attributes": {
"value": "NONE"
}
}
]
}
},
"today": {
"type": "dateMath",
"attributes": {
"expression": "now/d",
"outputFormat": "yyyy-MM-dd"
}
},
"termDatePlus180": {
"type": "dateMath",
"attributes": {
"expression": "+180d/d",
"outputFormat": "yyyy-MM-dd",
"input": {
"type": "dateFormat",
"attributes": {
"inputFormat": "M/d/yyyy hh:mm:ss a",
"outputFormat": "ISO8601",
"input": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"attributeName": "terminationDate",
"sourceName": "UKG Pro (HR)"
}
},
{
"type": "static",
"attributes": {
"value": "1/1/2099 12:00:00 AM"
}
}
]
}
}
}
}
}
},
"value": "#if(($disableAD == 'ACQUISITION' or $disableAD == 'DOGWOOD' or $disableAD == 'SUNSET') and $employeeStatus != 'T')merger#elseif($employeeStatus == 'A' and $hireDate.compareTo($today) > 0)prehire#elseif(($employeeStatus == 'A') or ($employeeStatus == 'T' and ($termReason == '555' or $termReason == 'TRO')))active#elseif($employeeStatus == 'L')leaveOfAbsence#elseif($employeeStatus == 'T' and $today.compareTo($termDatePlus180) >= 0)delete#elseif($employeeStatus == 'T' and ($termReason != '555' or $termReason != 'TRO'))terminated#end"
},
"internal": false
}
