Question

1
Replies
50
Views
Narendra Potnuru (NarenP_Infosys)
Infosys Pty Ltd
Principal Consultant
Infosys Pty Ltd
AU
NarenP_Infosys Member since 2011 8 posts
Infosys Pty Ltd
Posted: February 16, 2020
Last activity: February 17, 2020
Posted: 16 Feb 2020 17:52 EST
Last activity: 17 Feb 2020 16:52 EST
Closed

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 Enterprise Application Development Dev/Designer Studio Education Lead System Architect
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.