We’re trying to do a transform to calculate the life cycle of the identities but when we need to compare dates and the date of the identity is null (which is required for some identities) it returns an error. We’ve detected that the error must be in the declaration of the variables or inside the velocity argument.
We believe that the problem is a variable this uses dateCompare:
"quarantineGreater6M": {
"type": "dateCompare",
"attributes": {
"firstDate": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "dateMath",
"attributes": {
"expression": "+6M",
"roundUp": true,
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"sourceName": "Source",
"attributeName": "endDate"
},
"type": "accountAttribute"
}
]
},
"type": "firstValid"
},
"inputFormat": "dd/MM/yyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
}
},
{
"type": "dateMath",
"attributes": {
"expression": "+6M",
"roundUp": true,
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"sourceName": "Source",
"attributeName": "endDate"
},
"type": "accountAttribute"
}
]
},
"type": "firstValid"
},
"inputFormat": "dd/MM/yyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
}
},
"null"
]
}
},
"secondDate": {
"type": "dateMath",
"attributes": {
"expression": "now",
"roundUp": true
}
},
"operator": "lte",
"positiveCondition": "true",
"negativeCondition": "false"
}
},