My flow should create the parent case and go on to create the child case as well. (The child gets created in a spin off flow just after the routing of the parent - The routing of the is currently done with a utility shape with 'ReassignToWorkbasket') . I want route both of these to a common workbasket.
But having an assignment just before the spin off flow shape is not working as it not entering the spin off sub-process flow shape at all. So I used a utility with a 'ReassignToWorkbasket'. With this set up, everything is working fine. I can even see the AssignTo parameter being set and pxRouteTo property also being set. But I cant see any values in pc_assign_Workbasket table (linked to Assign-Workbasket class).
I can just see one entry with its .pxInsName as '!' and its .pzInsKey as ASSIGN-WORKBASKET ! and .pxObjClass as ASSIGN-WORKBASKET
In the later versions of Pega 7, the RecalculateAndSave activity is not triggered until the first assignment shape in the flow. This is when the pzInsKey will be saved. It sounds like this may be why you do not see the pyID since you are calling the activity in a utility prior to the first assignment. It seems to me that you should be able to use the router on the assignment shapes in the parent and child flows to route to the desired workbasket. Maybe someone else will have more feedback since it seems I still do not fully understand the use case.