Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Flow waits for subcase to be completed

SA-11507

Summary



You have a parent case. In the first step it creates a sub case and waits until the sub case completes. The next immediate step in the process after the wait is completed is to create a new sub case. This can occur up to three more times. The flow does not proceed although all the child cases are resolved, it still displays the below message.


This process is waiting for all sub cases to reach status Resolved-Completed

Steps to Reproduce



1. Log in as one user.
2. Create a parent case with 3 or more steps.
3. Configure all the steps so they create sub cases, and after creating sub cases they wait.
4. Run the parent case and go to the first step.
5. Log out of the current user and back in with another user who can resolve the sub cases.
6. Open the parent case or the created sub case and process the sub case.
7. Observe that the parent case does not proceed to the next sub case creation even though the dependent sub case status has changed to Resolved-Completed.

Root Cause



The root cause of this problem is a defect in Pegasystems code.

This occurs because the pyCaseManagementDefault work party rule is invoked when creating the subcase. The Owner work party uses the CurrentOperator data transform. When the process is called by an agent (as the wait process does) then the current operator is "System". Since "System" is a special operator who is not available to have work assigned, it goes to broken queue.

Resolution



This issue is resolved through the following local-change: 

One option would be to modify the data transform (CurrentOperator).You can update this to use a When condition and set it to a specific value only when the current operator is "System".
Suggest Edit

Published July 13, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us