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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.