Support Article
Negation in When rule works incorrectly in old Icon control
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.