I would suggest specifying routing information on the assignment shape on the flow rule to specify who's list the assignment should go to. Try right-clicking the assignment shape and choose "properties". Do you see fields there for specifying routing ? Some versions of Pega had a specific routing ticket shape you could attach to assignment shapes for this purpose as well. /Eric
From your discussion I think you want to finish the assignment from another user other than the current one, I think first you need to assign this assignment (which is similar to routing but not modifying the Flow)to the user2 (use pxTransferssignment OOTB activity)then you can call the finish assignment similar to your old code.
Issue is we want to Finish the Assignment by some other user (which the end user will input), rather than the current operator Id, for Automated Testing.
Reassigning the work object to different user by using the activity pxTransferssignment or, Reassign is working fine.
But then, when we call FinishAssignment the work object is getting completed by the current developer's operator Id. (ie. Finish Assignment is completing the asssignment keeping the performer as the current user/developer.)
So, its not working.
Any idea if in Finish Assignment we can specify the operator with whom we want to perform the work/assignment ?