Can some one explain how Work Status and Assignment Status changes with each other and in which OOTB activity we can find setting of Assignment status in general.
How to track assignment status with respect to work object status.
Also where can we see this assignment status apart from newAsssignmenPage.
Because I had an situation where we are not setting asssignmnet status (newAssignPage.pyAssignmentStatus) explicitly but some times it is getting set same as work status and some time it is staying in its old value.
I found the root cause as in general whenever an assignmnet is submitted manually from UI CompleteAssignmnet activity is getting called and the assignment is being removed from the assignmnet table. but when a ticket is being raised and moving the work object from that assignment, the work object is moved but still the assignmnet related remaining at the assignmnets table it is not removed or even the status is not changed.
So can some one confirm this is expected when we use tickets that we should explicitly delete or update the status of assignment in the assignments table?
I hope, the ticket can be raised via the ootb activity setTicket. which can be run via a flow action post processing or through an utility shape.
As and when the control moves out of the assignment, in the flow, it deletes the assignment entry from the pc_assign_worklist or pc_assign_workbasket, and when the ticket got set, it moves to that particular point in the flow, where ticket has been configured (note that ticket can be configured on multiple shapes, such as utility,assignment etc). If it is configured on an assignment, then new entry will be made into the pc_assign_worklist table.