Question
Pegasystems Inc.
US
Last activity: 3 Nov 2015 0:37 EST
How to dynamically Set Stage SLA?
We have a requirement where we need to set Case, Stage and Assignment level SLAs at runtime based on the inputs from the user. So that a case or stage could have different SLA at run-time. I found many discussions on Case and Assignment for this, and already implemented a pattern for Case level using pySLAName and DefineSLATimes activity.
But is there a way to do similar thing for Stage? any OOTB activity/flow that I can use at runtime.
Regards,
-
Like (0)
Ravi Ramineni -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Hi Tariq,
The stage SLAs use the flow rule pzInternalStageFlow. Would you be able to spin off this flow when entering the stage and pass in the SLAName parameter?
Regards,
Carissa
Pegasystems Inc.
US
Hi Carissa,
Is this flow "pzInternalStageFlow" automatically been called at the time of stage initialization? or we need to explicitly call it.
Pegasystems Inc.
US
Hi Tariq,
You can check the data on the Clipboard to see if it is already in your pxFlow pages. I ran a quick test using the Flow-New method in an activity to add it when I entered the stage since I had not specified a stage SLA previously.
Pegasystems Inc.
US
Hi Carissa,
It looks like it will be called whenever there is an SLA associated with the stage. Or I can call it during the first step of Stage. But this will require me to have changes across all stages.
Is there other flow/activity, which I can use or modify, to get this done across the stages at one place. I am planning to specify a decision table, which can decide the SLA name by passing stage name.
Rules Cube Inc.
CA
HI Tariq Jawed
You can use pyAdjustSLA or pyAdjustSLATimes local action to set the Sla by taking input from the user dynamically.
I Hope it will solve your purpose.
Thanks
Regards
Venkatesh G
-
Rohan Zutshi
Pegasystems Inc.
US
Hi Venkatesh,
Basically I need some activity or flow, which can silently run instead of prompting user through flow action. But even if we use the above flow actions, will it change the SLA for stage or not? looks like they work on assignment level SLAs.
Rules Cube Inc.
CA
HI Tariq,
In that case you need to explicitly change the pxDeadlineTime and pxGoalTime in your activity by using date function addToDate. Either you can use pyAdjustCaseSLA flow action.
Share your thoughts.
Thanks
Venkatesh G
Rules Cube Inc.
CA
Hi Tariq,
Small correction, the flow action for the Case sla is ChangeWorkSLA not pyAdjustCaseSLA.
Thanks
Venkatesh G