Support Article
pxForceCaseClose is not closing last subcase
SA-30905
Summary
The user is using pxForceCaseClose activity to close the case and selected 'closeAllSubcases' option in the parameter.
The user then observed that pxForceCaseClose calls an activity pzGetDescendants which finds all the subcases and creates a page list DescendantsPage. And, pzGetDescendent gets called recursively till we reach last level.In this activity the page list has all subcases but the last subcase gets lost from the page list when recursion ends and execution comes back to pxForceCaseClose activity.
After calling pzGetDescendants activity , pxForceCaseClose calls pzUpdateAndDeleteAssignments activity. As the last subcase case status is not getting updated to 'Resolved-%' from the pagelist and last subcase is not getting closed.
Error Messages
There is no error message in logs or in tracer.
Steps to Reproduce
- Create a Case-Subcase structure. Create few cases.
- Create an activity to resolve the orders forcefully. Open the case on TempWorkPage. Call pxForceCaseClose activity on this page to close the case and all its subcases.
- Last subcase does not get closed.
Root Cause
The user deleted the open assignments when the status is Resolved and customised UpdateStatus activity.
Resolution
Suggested to change UpdateStatus activity accordingly such that pzUpdateAndDeleteAssignments activity will delete the open assignments.
Published December 3, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.