Hi All,
I am trying to calculate lifecycle state using transform but even though transform is created by during user’s lifecycle state calculation it is giving below error.
Any help is much appreciated.
Transform:
{
"name": "LifeCycle State Transform V1",
"type": "static",
"attributes": {
"assignmentStatus": {
"attributes": {
"sourceName": "CenterPoint Dev1",
"attributeName": "ASSIGNMENT_STATUS"
},
"type": "accountAttribute"
},
"reasonCode": {
"attributes": {
"sourceName": "CenterPoint Dev1",
"attributeName": "ReasonCode"
},
"type": "accountAttribute"
},
"adID": {
"attributes": {
"sourceName": "CenterPoint Dev1",
"attributeName": "AD_ID"
},
"type": "accountAttribute"
},
"value": "#if($assignmentStatus && $assignmentStatus=='ACTIVE' && $adID)active#elseif($assignmentStatus && $assignmentStatus=='ACTIVE' && $reasonCode &&($reasonCode=='INACTIVE_PAYROLL' || $reasonCode=='NO_PAYROLL'))leaveofabsence#elseif($assignmentStatus && $assignmentStatus=='ACTIVE')newhire#elseif($assignmentStatus && $assignmentStatus=='INACTIVE')inactive#{else}unknown#end"
}
}
Error:
com.sailpoint.seaspray.template.TemplateException: Error rendering template: #if($assignmentStatus && $assignmentStatus=='ACTIVE' && $adID)active#elseif($assignmentStatus && $assignmentStatus=='ACTIVE' && $reasonCode &&($reasonCode=='INACTIVE_PAYROLL' || $reasonCode=='NO_PAYROLL'))leaveofabsence#elseif($assignmentStatus && $assignmentStatus=='ACTIVE')newhire#elseif($assignmentStatus && $assignmentStatus=='INACTIVE')inactive#{else}unknown#end
Thanks