I want to update the work status after get next work but the problem is that Assign-.MoveToWorklistfinal activity initiates the commit operation during get next work. So I have to do the update status and commit it in to DB either in the Flow Action Pre-Activity or PerformDefault activity. Please suggest if you have any other approaches.
Thanks for the reply. But here the problem is that just to update the status I have to commit the changes separately and again take the lock of the work object so that user can perform. Pega has not given any option to save the change in a single transaction as the main activity Assign-.MoveToWorklist i s final.
GetNextWork only moves an assignment from workbasket to worklist. Why do you need to update the Status of entire work object at the moment of when one of the many assignments associated to the work object reassigned to an operator? Why not update the work status after performing a flow action?