Duration.Days between function is not Working in Bpm worklist
Summary:
I am currently working on a requirement where we need to calculate the length of service for an employee, which will be used as part of the Resignation Approval process.
We attempted to use the following function to calculate the duration between the Work Relationship Start Date and the Effective Start Date
Duration.days between(Task.payload.Worker's Proposed Assignment.result.Work Relationship Start Date.toGregorianCalendar(),Task.payload.Worker's Proposed Assignment.result.Effective Start Date.toGregorianCalendar())
but it is not calculating duration
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):