Support Article

Wait shape in child case does not wait for second time

SA-27769

Summary



There are two cases in the application Parent and child. Child case or process has a wait shape which waits for the parent case to reach a certain status, this works fine when it reaches the first time.

When the child case and parent case jumps back to an earlier stage and reaches the wait shape again, the child case does not wait for a second time and it automatically resumes and progresses the flow. 

Error Messages



Not Applicable


Steps to Reproduce



1. Create a parent case that can loop back to the first assignment. 
2. Create a childcase that has a wait shape which waits for the parent case to reach a certain status. 
3. Run the flow. The child case waits accordingly. 
4. Jump back to the first assignment of the parent case and child case and run the flow. The child case does not wait for the parent to reach the expected status.

Root Cause



The use case is working as per design. If a child case is waiting for parent case to reach a certain status say "Pending", Pega checks the parent case history to check if it had reached the status before.

If the parent case did reach the Pending status earlier, then the wait ends and the flow continues. So as per design, child case will wait for first time because parent case never reached "Pending" status.

​ But when we bring Parent case and child case back to first stage then child case does not wait for parent to reach "Pending" status again. It will just check history of parent case. This is a limitation in product. 

Resolution



An enhancement request, FDBK-16601, has been created for consideration by Pega Product Management. 

Published September 9, 2016 - Updated September 20, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.