Question

Service level Agreement(SLA) picks the default calendar for business days functionalities

Service level Agreement(SLA) picks the default calendar for business days functionalities though pyCalendar value is set on the pyWorkPage.

we are using @isBusinessDay function with USDefault calendar(Created by ourselves). The same works fine when tested locally.

Version used : Pega 8.2.1

Could someone please help us on this?

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

November 27, 2019 - 7:25am

Hello, 

SLA at WorkObject level or Assignment level? Maybe you should set the calendar on newAssignPage as well?

Pega
November 29, 2019 - 3:41am

Hello,

Could you try to add java step in the activity where your are using @isBusinessDay function. Add the below code,

com.pega.pegarules.priv.businessCalendar.CalendarUtility.removeCalendarCache(String) ;

November 30, 2019 - 9:20pm
Response to sharr8

When i use the above line of code in my Java step, I get the below error. Could you please help resolve it?

Java at step: 1 line: 1
Cannot make a static reference to the non-static method removeCalendarCache(String) from the type CalendarUtility

Compile failed.

Pega
November 29, 2019 - 8:38am

Hi,

You can try setting the pyCalendar property in the work modal. Basically, the SLA checks whether calendar is defined for the WO. If not, them it will use the default calendar.

Thanks,