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

Passing string literal parameters are inconsistent with quotes

SA-5284

Summary



Consider a scenario where user has a button click event which calls an activity. User like to pass a string literal parameter instead of the value of a property reference.

The behavior is inconsistent when passing parameters via a pre-activity (to another event such as refresh section) vs. a direct activity call.

When passing a string literal using double quotes (") it will retain the quotes when using pre-activities but strip them using a direct activity.


Error Messages



Not Applicable.


Steps to Reproduce



1) C
onfigure a button to call an activity and pass a string literal like "TESTING".



2) View tracer and one can see strip the quotes away as expected.



3) Now configure a button to refresh section, call the same activity as a pre-activity and pass the same parameter.



4) View tracer and see that we retain the quotes. This was not expected.





Root Cause



The root cause of this problem is a defect in Pegasystems’ code or rules. The parameter passing in both scenarios should have a consistent behavior.



Resolution



Perform the following local-change: 

While attempting to pass string literal parameters in the above described scenario, do not pass quotes.

 

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