Hi Team,
I’ve already applied some the transforms to fields like fullName(firstName.lastName transform), lastName(), email(validate email transform)
etc.
Now, I want to set empty values to this fields firstName, lastName, email
if PROV-EMP(temporary employees)
user(s) are set to terminate today. I wrote a transform like below.
{
"attributes": {
"EMAIL": {
"attributes": {
"attributeName": "EMAIL",
"sourceName": "Oracle ERP"
},
"type": "accountAttribute"
},
"WORKER_TYPE": {
"attributes": {
"attributeName": "WORKER_TYPE",
"sourceName": "Oracle ERP"
},
"type": "accountAttribute"
},
"MATCH_DATE": {
"attributes": {
"firstDate": {
"attributes": {
"values": [
{
"attributes": {
"input": {
"attributes": {
"sourceName": "Oracle ERP",
"attributeName": "LATEST_HIREDT"
},
"type": "accountAttribute"
},
"inputFormat": "ddMMyyyy",
"outputFormat": "PEOPLE_SOFT"
},
"type": "dateFormat"
},
{
"attributes": {
"input": "31121999",
"inputFormat": "ddMMyyyy",
"outputFormat": "PEOPLE_SOFT"
},
"type": "dateFormat"
}
]
},
"type": "firstValid"
},
"secondDate": {
"attributes": {
"input": {
"attributes": {
"expression": "now",
"roundUp": true
},
"type": "dateMath"
},
"inputFormat": "ddMMyyyy",
"outputFormat": "PEOPLE_SOFT"
},
"type": "dateFormat"
},
"expression": "$firstDate eq $secondDate",
"positiveCondition": "Matched",
"negativeCondition": "Not Matched"
},
"type": "conditional"
},
"value": "#if($WORKER_TYPE.equalsIgnoreCase('EMP-PROV') && $MATCH_DATE.equalsIgnoreCase('Matched'))#else$EMAIL#end"
},
"type": "static",
"id": "Flush data on term date"
}
Since, I already used some transforms how can I set empty values to such large set of fields? firstName, lastName, email, empNo etc? Any thoughts?