Posted: 22 Jan 2019 0:17 EST Last activity: 27 Jan 2019 23:41 EST
Need to perform asynchronous refresh of workbasket
I have a requirement where on doing an attachment to a case in workbasket x, the workbasket y should perform a auto refresh and shows up the case in y workbasket asynchronously. I am on pega 7.3.0 version. Please shoot with possible approaches.
I am assuming that you have a stage - Stg1 - with a step - Stp1 - where, the flow has one assignment routing the case to WB-X based on a FORK which check if the case has any attachment. Have a local action on the Assignment shape that allows the user to attach a file to the case. Once the file is attached, in the post processing, you can call the "pxRestartStage" activity which will re-run the stage and allow the case to get into WB-Y as the FORK would have set TRUE as the case is having an attachment.
I have assumed that the user is allowed to attach only one file to the case and such an attach file action can happen only when the case is on the assignment routing the case to WB-X.
if the requirement is as simple as refreshing a section on the screen which shows you the list/ count of cases in a WB, can you make use of the Refresh condition on the section? The refresh condition can check for any changes to the number of cases in the WB.