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

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

  1. Create a Case-Subcase structure. Create few cases.
  2. 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.
  3. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

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