how to reassign cases from WorkBasket to Worklist of an operator who worked most recently

how to reassign cases from WorkBasket to Worklist of an operator who worked most recently

@Smruthi

Hi,

Follow below Steps:

Open each Assignment through Obj-browse.
Then open each assignment (assign-worlist) and then copy that open page to newAssignment OOTB clipbord page,
Get the pzinskey of the workcase from the assignment page (corresponding WO pzinsky from assignment).
Open the Workcase from the key (get from step 3) let the steppage is “tempworkcase”
Then call the “Reassign “ OOTB activity from “tempworkcase” steppage .
The obj-save of workcase ( call obj-save in tempworkcase” steppage).
7. iterate setp 2-6 for each assignment in worklist.

Hi @Smruthi ,

Reassigning cases from a WorkBasket to the Worklist of the operator who worked on them most recently involves identifying the last operator who interacted with the case and then routing the case to their Worklist. In Pega, this can be done using an activity or a data transform to set the appropriate properties for routing.

Here’s a step-by-step guide to achieving this:

Identify the Last Operator

First, you need to identify the last operator who worked on the case. Pega stores this information in the pxUpdateOperator property on the work item (case). This property holds the ID of the operator who last updated the case.

Create an Activity for Reassignment

To reassign the case, create a custom activity `ReassignToLastOperator that will:

  • Retrieve the pxUpdateOperator value from the work item.

  • Set this operator as the new assignee for the case.

Configure the Steps:

-Step 1: Retrieve Last Operator

  • Use the Property-Set method to set a local variable or parameter to the value of pxUpdateOperator.

  • For example, use .pxUpdateOperator as the source and a parameter like param.LastOperator as the target.

-Step 2: Reassign the Case

  • Use the Reassign ootb activity to reassign the case.

  • In the Reassign method parameters, set the destination to the LastOperator.

Step 3 :Save and Test the Activity:

  • Save your activity and test it with a sample case to ensure it works as expected.

Regards,

Mohd Qizer Uddin