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

Skipping Confirmation Harness in CPM

SA-5116

Summary



The requirement is to skip the Confirmation harness after performing the last assignment in Service Request and that tab should be automatically closed with showing the Confirm Harness.The same thing should happen to case also. However, close the work object if no assignment s being performed is not working.

Error Messages



N/A


Steps to Reproduce



NA


Root Cause



The rootcause of the problem is with the Work- • AutoClose section in PegaAppCA. Please find below the localchange solution.

Resolution



Requirement is achieved via below local change:
1. Save-As the Work-.AutoClose section into custom ruleset and replace its contents with the code below.
2. Checkin the rule

 
<SCRIPT>
var temp=parent.frames.RunFlowMain;
pega.u.d.attachOnload(function(){
            var temp=parent.frames.RunFlowMain;
            if(desktopenvironmentscript_isWindowOnDesignerDesktop(self)){
                                    if( pega.cpm)
                                                if (pega.cpm.tabbedInterface)
                                                            pega.cpm.tabbedInterface.removeWorkTabFromWork(document.body,false);
                                    if(temp==null){ 
                                                doClose();
                                    }
                                    else{
                                                document.write("<br><h3 style='color:#336699;'>This screen is only displayed when recording and playing back flows using AutoTesting; normally it will self-close.</h3>");
                                    }
                        }
            else
                        self.close();});
</SCRIPT>
 

Published January 31, 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?

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