Question
IKOR
AU
Last activity: 17 Feb 2020 16:52 EST
AddTime() is not considering the calendar instance when it is getting executed through batch requestor context
Hi there,
We have a situation in our project where AddTime() is not considering the calendar instance when the logic is getting executed in the background (batch requestor).
Background
We have recently automated the business process and as a part of it application specific SLA needs to get computed as a part of background process (Using SLAs to proceed from the assignments)
Workflow is determining the Goal, deadline and Passed Deadline dynamically based on the business logic
Here is the logic used to determine the agreements
@(Pega-RULES:BusinessCalendar).addTime(.CaseSLAStartDateTime,0,Param.HoursToAdd,Param.MinutesToAdd,Param.WaitDateTime,true,Param.Calendar)
As a agreement calculation, application needs to consider the calendar for computation, but unfortunately that is not the case. (Computation is happening in the batch requestor context)
Nevertheless, if the functionality is being executed in the requestor context, function is returning the correct value
Would appreciate, if you any can assist me in addressing the issue
Cheers,
Naren