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

Case is moving to Review Harness when saving the case

SA-23418

Summary



On creation of case, and then immediately clicking on “Save” or “Submit”, the case moves to review harness, while the users expected case to be in same harness.
If user close the case after creation, and then click on “Save” or “Submit”  after re-opening, it moves to perform harness and not review harness.

 

Error Messages



Not Applicable.


Steps to Reproduce



1.On click on a button configure Run Activity, which creates a new WorkObject (WO) and Launch Harness.
2.In Launch Harness in Use Page option set the page name as the page(created in activity) where WO details are present.
3.Add custom harness in the Harness Name option.
4.In the new Harness a button in added with "on click Save action".
5.Run the case and click on Save button.

Root Cause



A software use or operation error :-

On Click of OOTB "Save" action, functionality looks for actionsection and pyActionArea id, if present does saveandcontinue else does saveandclose.

While creating a custom harness user has used own section rules(OOTB pyCaseActionArea is not included) due to which at run time actionsection and pyActionArea are coming as null and it goes to SaveandClose action and open Review harness, which is expected behavior with this configuration.
But while re-opening the same WO it opens in perform harness(set at flow assignment level) not in custom harness.

In perform harness pyCaseActionArea section is included due to which on click of save it stays in same harness.

Resolution



Perform the following local-change:
  1. Add a dummy section with freeform Layout and ID of the layout is set as "pyActionArea".
  2. In the layout add a label control with label value as "<script> var actionSection = '<%= (tools.findPage("myParamPage") != null) ? tools.findPage("myParamPage").getString("SectionName") : "" %>'; </script>".
  3. Included section rule(with case details and button) used in harness in the dummy section.
  4. Add this dummy section rule in main harness and remove other section from harness.
     
Suggest Edit

Published May 23, 2016 - 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