Hide Forgot
Date of First Response: 2009-09-10 00:18:06 Workaround Description: use double () when using not with infix CEs: either: not( A() and B() ) or: not( (and A() B() ) ) securitylevel_name: Public The documentation on the 'and' Conditional Element seems to imply that these constructs are equivalent: $p1:Entity($code1:code) not (and $p2:Entity(code == $code1) eval(MyStaticClass.match($p1, $p2)) ) $p1:Entity($code1:code) not ( $p2:Entity(code == $code1) and eval(MyStaticClass.match($p1, $p2)) ) Actually, the first version crashes with this message: unknown:93:7 Unexpected token 'and'[96,2]: unknown:96:2 mismatched token: [@792,3685:3685=')',<12>,96:2]; expecting type THEN I'm on drools 4.0.2 and mvel14-1.2.8.
Link: Added: This issue is related to JBRULES-1422
Link: Added: This issue related JBRULES-1422
Link: Removed: This issue related JBRULES-1422
Fix in place.
For the errata in the release notes, we require details of: 1. the FIX (what was changed in the new parser to eliminate this bug). Dot points will be fine.
We are still awaiting the outstanding information for the Release Notes on this one. Please provide it as soon as possible. Thanks.
The FIX (what was changed to eliminate this bug) and * The language grammar used by the new parser was changed to not require double () when using prefix conditional elements.
added as resolved to the 5.0.CP01 release notes: JBRULES-1422 Conditions using prefix conditional elements would not compile unless they were enclosed by parentheses. The grammar parser has been updated to remove this limitation.