Excluding certain assignments from GetNextWork (Customizing GetNextWork)
GetNextWork operates on a WB which has all pending approval assignments . But for a particular operator GetNextWork ( button ) should only return assignments worked by operators other than the current operator. (This is needed to prevent self approval of work . To give context , I am implementing buddy approval feature to CR case in Revision Manager Portal of Pega marketing which is nothing but normal case management under the hood)
Has anyone attempted this or a similar customisation to getNextWork ? Where should the customization go
Updating the decision tree GetNextWorkCriteria should work.
Build a when rule, which determines whether this assignment is created by you or not. If the when returns false then this assignment can be worked on. Add this when to decision tree and check for false.
To check whether the assignment is created by you , you can check the pxCreateOperator property value on assignment page i.e. primary page for this decision tree.