How do I create an autocomplete rule to set a default final close date for employees with terminated employment?
Here's an example of an autocomplete rule that defaults the final close date to a static date. This default date is valid for all employees with terminated employment, across the enterprise.

Here's an example of an autocomplete rule that defaults the final close date to a dynamic date. This default date is derived based on the employment termination date + n days.
An
HcmParam global function isn’t available to directly get the
termination date. So, you need to derive the termination date in the rule through
the following logic:- Get all the
hrAssignRowvariables for the given payroll assignment. - For each
hrAssignRowvariable, check if the row is inactive. - If it's inactive, find the row related to the
actionCodevariable. - If the
actionCodevariable is EMPL_TERMINATE, derive the value of theterminationDatevariable ashrAssignRow.EfectiveStartDate -1.
