Hello Marvin, can you try the following:
{
"name": "Testing Transform",
"type": "static",
"attributes": {
"isTermed": {
"attributes": {
"negativeCondition": "no",
"positiveCondition": "yes",
"firstDate": "now",
"secondDate": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "CONTRACT_END_DATE",
"sourceName": "Workday HCM"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "12/31/2099"
},
"type": "static"
}
],
"ignoreErrors": "true"
},
"type": "firstValid"
},
"inputFormat": "MM/dd/yyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"operator": "gt"
},
"type": "dateCompare"
},
"loaStart": {
"attributes": {
"negativeCondition": "no",
"positiveCondition": "yes",
"firstDate": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "LOA_START",
"sourceName": "Workday HCM"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "12/31/2099"
},
"type": "static"
}
],
"ignoreErrors": "true"
},
"type": "firstValid"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"secondDate": "now",
"operator": "lt"
},
"type": "dateCompare"
},
"loaEnd": {
"attributes": {
"negativeCondition": "no",
"positiveCondition": "yes",
"firstDate": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "LOA_END",
"sourceName": "Workday HCM"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "12/31/2099"
},
"type": "static"
}
],
"ignoreErrors": "true"
},
"type": "firstValid"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"secondDate": "now",
"operator": "lt"
},
"type": "dateCompare"
},
"isNewEmployee": {
"attributes": {
"negativeCondition": "no",
"positiveCondition": "yes",
"firstDate": "now",
"secondDate": {
"type": "dateMath",
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "HIREDATE",
"sourceName": "Workday HCM"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "12/31/2099"
},
"type": "static"
}
],
"ignoreErrors": "true"
},
"type": "firstValid"
},
"inputFormat": "MM/dd/yyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"expression": "-7d/d",
"roundUp": "false"
}
},
"operator": "gte"
},
"type": "dateCompare"
},
"status": {
"attributes": {
"value": "active"
},
"type": "static"
},
"value": {
"type": "expression",
"attributes": {
"value": "#if($loaStart == 'yes')loa#elseif($loaEnd == 'yes')loa#elseif($isTermed == 'yes')deprovisioning#elseif($isNewEmployee == 'yes')newEmployee#else$status#end"
}
}
},
"internal": false
}
Regards, Pablo