For more information, please refer to this announcement explaining best practices for getting answers to questions.
Termination Approval based on Length of Service
Summary:
We require to setup the Termination/Resignation approval based on Total Length of the service of the employee considering the employee might have global transfers or country transfers. We try to use the Enterprise Hire Date and Enterprise Seniority Date and the approval went into error "Attribute is null"
Placed the condition below the condition we try to use.
Duration.days between(Task.payload.Worker's Current Assignment.result.Enterprise Seniority Date.toGregorianCalendar(),Task.payload.Termination Date.toGregorianCalendar())
Error:
While we use
Duration.days between(Task.payload.Worker's Current Assignment.result.Work Relationship Start Date.toGregorianCalendar(),Task.payload.Termination Date.toGregorianCalendar())