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

When conditions in an activity are not firing as expected

SA-9616

Summary



When conditions in an activity are not firing as expected. The when condition that should result in “true” shows as “false” on clipboard. e.g.
@(Pega-RULES:Default).PropertyExists(.aText)
@(Pega-RULES:Utilities).PropertyHasValue(tools, .aText)

Error Messages



Not Applicable

Steps to Reproduce

  1. Use an expression like: @(Pega-RULES:Default).PropertyExists(.aText) in an activity.

Root Cause



The root cause of this problem is a defect in customer application code/rules. In both the functions the "strReference" parameter is used to look up a property in the clipboard and since a Property can not have a name containing "." character, it has no meaning. e.g. For the expression: @(Pega-RULES:Default).PropertyExists(.aText)
The system will try to find out a property with name ".aText" which does not exist in the clipboard hence returning false.


Resolution



This issue is resolved through the following local change: Remove the "." character from the parameter (the property name) that is being passed to the functions.

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