Try this hope it helps
Note: Update sourceName and attributeName
{
"id": "",
"name": "End Date Notification Transform",
"type": "static",
"attributes": {
"requiresPeriodicRefresh": "true",
"inactivestate": {
"attributes": {
"firstDate": {
"type": "dateFormat",
"attributes": {
"input": {
"type": "accountAttribute",
"attributes": {
"sourceName": "<Test-Employee>",
"attributeName": "<end_date>"
}
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
}
},
"secondDate": {
"type": "dateFormat",
"attributes": {
"input": {
"type": "dateMath",
"roundUp": true,
"attributes": {
"expression": "now+7d"
}
},
"inputFormat": "yyyy-MM-dd'T'HH:mm",
"outputFormat": "ISO8601"
}
},
"operator": "lte",
"positiveCondition": "yes",
"negativeCondition": "no"
},
"type": "dateCompare"
},
"value": "#if($inactivestate=='yes')true#{else}false#end"
},
"internal": false
}