I have a requirement where OperatorA logs in and submits a case then the case will be routed to a WB and OperatorB access this WB and picks this case. Now when OperatorB selects Approve this case should be resolved and if operatorB rejects it this case should be routed back to operatorA.
Here what I wanted to know is "how to find the operatorA so that when OperatorB rejects case, the case will be automatically routed back to OperatorA"
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
pxUpdateOperator property of the pyWorkPage holds the operatorID of the last operator who updated the case. That can be used or else, pxRequestor.pxUserIdentifier will hold the current operator, this value can be read and saved in a property during first assignment and later used.
Technically, what you asked can be handled by storing the Operator ID into a property before sending the case to the Approval Work basket.
So, When Operator B who gets the case from Approval work basket rejects the case, the case can be sent to Operator A's worklist by looking up that property.
However, I do not feel it is a good practise to implement this rejection routing in the manner you mentioned for an enterprise application. If Operator B rejects the case/assignment, then route the case to the Workbasket that Operator A or many other operators have access to. So, even if Operator A is not available, any other operator who have access to the Workbasket can work on this case by accessing 'Get next work'.
One more thing, this question is posted in wrong forum. This forum discuss topics with respect to upgrade.