Question

1
Replies
35
Views
Naren_Incessant Member since 2011 8 posts
Incessant Technologies
Posted: 7 months ago
Last activity: 7 months ago

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

Pega Platform 8.1 Low-Code App Development Dev/Designer Studio Education Lead System Architect
Share this page LinkedIn