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

Page-Change-Class method not working in Service SOAP

SA-24021

Summary



The requirement is using the Out-of-the-box (OOTB) Page-Change-Class method to change the class of a page. However, this is not functional in a context of Service Soap. By including this method in the Service Soap activity, the method has no effect. The class of the primary page remains the same.

Error Messages



No error message is shown. The method of Page-Change-Class is not updating the class of the clipboard page.


Steps to Reproduce



1) Configure a Service SOAP.
2) In the Primary Page section of the Service SOAP specify the Page Name. It is the class of this page that must be changed.




3) In the Service SOAP activity, include the Page-Change-Class method to change the class of the primary page.



4) Post a SOAP message. This SOAP activity runs, but the Page-Change-Class step does not change the class of the primary page.


Root Cause



A defect in Pegasystems’ code or rules. There are limitations in Page-Change-Class method. In the context on SOAP Service, unfortunately the method will not be functional. There is plan to update the implementation of this method in Pega 7.2.1 to support broader scope of usage including SOAP Service.

Resolution



Replace the Page-Change-Class method with a Java step in the below code implementation:

ClipboardPage  tempPage = tools.createPage("YOUR_NEW_CLASS", myStepPage.getName());
((PegaClipboardPage)tempPage).putAll(myStepPage, ClipboardPage.PUTALL_KEEPOLD, false,(PegaClipboardPage)myStepPage.getTopLevelPage());
pega.setStepPage(tempPage.getName(), tempPage);

 

Published June 7, 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