How to update SLA goal and deadline time dynamically

Hi All,

Our business wants to be able to update the SLA goal and dealine time.

They want to change the SLA days/Hours any time they need to do it so the goal and deadline time is recaulculated according to these changes.

We have thought to create a data type and delegate it to the business users so they can update the SLA days/hours as soon as these changes are done in data type, Next time an assignment is created the SLA goal and deadline time should be recalculated according to the valued updated in data type.

We had thought about creating a data transform that recalculate the date property for goal and deadline time that it is used in the SLA rule, and add the data transform jus before the assignment is created but this approach requires a lot of effort as we have to go through all the case types and make sure we add the data transform before all the assignments shapes in flows so the recalculation is performed with the current data in data type before the assignement is created.

We wonder whether there could be an extension point or pega ootb rule during assignment creation where the SLA date property recalculation used in SLA could be updated just once instead of implementing the data transform approach which is not maintenable and costly.

Regards,

Israel

Hi,

In Assign- class, you can extend, NewDefaults activity to implement this logic. Please be mindful that this activity gets called for all new assignments, so you will have to specifically check for your intended work object class(using pxRefObjectClass property on the assignment) and implement your SLA logic by reading from your datatype.

Thanks PremKanth for your response.

We have also thought about extending NewDefaults activity but forgot to mention one important point, the SLA in the data type will refer to different tasks or assignments. I mean we need to know the pxTaskLabel of the assignment that is aboutcto be created in order to retrieve its SLA days/hours from data type. For example: In data type there will be different records for different type of tasks such as “Create Email”, “Document Action”, “Create Order”, etc.. Each tipology task can correspond to 1 to N assignments. Therefore by the time the NewDefaults activity is executed we need to know the assignment name or pxTaskLabel of the assignment in order to retrieve the porper SLA data from data type. Do we have the pxTaskLabel by the time the NewDefaults activity is running? I need to do a POC to check it out.