Case is moving to Review Harness when saving the case
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.
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.
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.
Perform the following local-change:
- Add a dummy section with freeform Layout and ID of the layout is set as "pyActionArea".
- In the layout add a label control with label value as "<script> var actionSection = '<%= (tools.findPage("myParamPage") != null) ? tools.findPage("myParamPage").getString("SectionName") : "" %>'; </script>".
- Included section rule(with case details and button) used in harness in the dummy section.
- Add this dummy section rule in main harness and remove other section from harness.
0% found this useful