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