LCS - time of day for terminations

The customer is wanting the termination to not process until the end of day. Workflows are not implemented, we are handling the LCS based on their HR data changing, the end date.

If someone puts in their two week notice and the end date within HR is changed several days prior to their termination date, my assumption is that the transforms “requiresPeriodicRefresh” being set to true will evaluate it at the end of the day as the end date wasn’t modified. The transform would see that they are terminated and change their lifecycle state, etc.

If someone in HR changes their term date on the date they are terminated, my assumption is that the aggregations happening prior to the end of day will see the modification, the transform will calculate the change and the termination will happen at the time of the aggregation, which may disable their account, causing the possibility to have to have their account enabled for them to continue to work until the end of the work day.

Is this working as expected? If we always want a termination to happen at the end of the day, I’m guessing a customer with a workflow could schedule the LCS to evaluate only at a given time of day.

thoughts?

Under such circumstances you can use a dateCompare transform inside the transform that calculates the LCS.

Set the firstDate as endDate from HR source, and secondDate as “now-xh/m”
value of x needs to be determined based on difference between GMT and your client’s time zone and close of business hour.

Say your client is in EST (ie GMT-5) and COB is @5pm, and endDate of an employee is 2024-02-10 (yyyy-MM-dd), then secondDate would be “now-22h/m” so that on 10th Feb @ 5pm EST (10pm GMT), firstDate in the transform would be less than secondDate. You can set the positive and negative conditions to match your requirement on how you want to use the output of this dateCompare transform in the calculation of LCS (considering there will be other factors that define the LCS)

PS. Make sure you use dateTransform to convert each date to the right format required in dateCompare detailed in this link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.