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

Configuration for simulator "User Session" is not working.

SA-8163

Summary



While calling the Connect REST rules, the simulation option specified is not working as expected. The "User Session” option in the simulator to mimic any of the connectors response is not calling the activity. However, the same works fine with the "Global Level" simulator option.

I.e.the issue is when user chooses "user session" configuration and provide the simulator activity, then while execution of the connector it should pick the simulator activity.


Error Messages



No Error. Connect rule is not executing simulation activity instead it is hitting the actual service.

Steps to Reproduce



1. Open any connector service. (probably connect-rest service rule)
2. Click on Simulation button at botton of the rule.
3. Click on Add (+) icon and provide activity name you want to execute on call of this connector.
4. Now select "User Session" radio button and click on button "Apply Changes".
5. Now when we keep the tracer and try to debug this activity the connector rule will still call to the connector service url. As per expectation the connector service should just call the provided simulator activity but only for that user session.


Root Cause



This issue is seen only when the flow is run from a non-developer portal(for ex: manager or CPM portal).
At run time the list of simulation activities will be picked from pyISSimulation clipboard page which is available for "STANDARD" thread only. When the flow is called from any non-dev portal the below code which is responsible to load the simulation activities is not able to find the page.
                   OOTB:
 
                          ClipboardPage simPage = null;
                          simPage = tools.findPage("pyISSimulation", true);


Resolution



Issue is resolved through below local change:
Change code step of
getSimulationActivity activity. This will make the PRPC to pick the pyISSimulation page from STANDARD thread.

OOTB:
 
                          ClipboardPage simPage = null;
                          simPage = tools.findPage("pyISSimulation", true);
 
                   New Lines:
 
                           ClipboardPage simPage = null;
                           PRThread prtRef = tools.getRequestor().getThread("STANDARD");
                           simPage = prtRef.getPage("pyISSimulation");
 
Suggest Edit

Published June 12, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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