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

Tab is not getting closed after persisting a temp WO

SA-34195

Summary



A tab does not close because of a persistant, temporary work object.

Error Messages



Not Applicable

Steps to Reproduce

  1. Create a new case type from Case explorer in the application.
  2. In the pyStartCase flow of the case check “temporary object” checkbox.
  3. Have a Stage configured in Case designer along with a flow.
  4. In CPM Account Manager portal,configure a link or button with create work as action on click event. Provide the new case type class name and Flow name in Action tab (pyStartCase here).
  5. After launching the CPM Account Manager portal. Clicking on link/button.,New case item opens in a new tab in the portal.
  6. The first stage runs and a flow action appears on screen in that new tab.
  7. Click Submit.
  8. Try closing the tab by clicking on close button.
  9. Tab does not get closed.


Root Cause



Incorrect implementation at user end for handling of Temporary Work Objects.

Resolution



Perform the following local-change:
  1. In the flow, before Persist Case smart shape , add a utility shape and call the CPMClearTemporaryFields activity rule.
  2. Do 'Save As' of CPMClearTemporaryFields activity rule into the class (class in which the flow is present) and also do 'Save As' of PrevTempId property into the same class.
This activity CPMClearTemporaryFields helps in Clearing the traces of data created by temporary state of the current interaction.

Published March 1, 2017 - Updated December 2, 2021

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?

Want to help us improve this content?

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