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