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

Negation in When rule works incorrectly in old Icon control

SA-13105

Summary



Post upgrade to Pega 7.1.7, When rule does not evaluate negation(!) correctly in deprecated Icon control.

For example, if there are two When rules:
when1 - expression evaluates to true - set it to 'false' 
when2 - expression evaluates to true - set it to 'true 
then, !when2 && when1 should evaluate to false, but it evaluates to true. That is, instead of (!when2) && when1 , it does !(when2 && when1).

Error Messages



No error message.


Steps to Reproduce



Create two when rules:
         when1 - expression evaluates to true - set it to 'false' 
         when2 - expression evaluates to true - set it to 'true' 
In deprecated Icon control, set the visibility condition as below: 
         !when2 && when1 

Root Cause



Issue was due to the change in assembly logic stream generation, it still uses old pega:when jsp tags in GenerateButton RUF.

Resolution



Change the generation logic to pass compiled When rule to handleEvaluateWhen resolves the issue. 
This change is shipped under HFix-23229.

Published August 14, 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