Custom Balance Transfer Date
This section contains sample code for the custom balance transfer date.
import com.workbrain2.ta.publ.api.entitlements.BalanceTransferCustomDateScriptable
import com.workbrain2.ta.publ.api.rules.RCContext
import com.workbrain2.ta.publ.api.rules.TARulesPublicServiceAccess
import com.workbrain2.ta.publ.api.rules.ctx.EmployeeCtxPublService
class CustomBalanceTransferCustomDate extends BalanceTransferCustomDateScriptable{
EmployeeCtxPublService employeeCtxPublService = TARulesPublicServiceAccess.getEmployeeCtxService()
@Override
public Date evaluateDate(RCContext context) {
return employeeCtxPublService.getEmployeeTerminationDate
(context,employeeCtxPublService.getCurrentWorkDate(context))
}
}