I have a rule with an infixOr and an infixAnd that test for objects in a
collection which doesn't execute even though it should.
# This rule will not execute even though it should
test : TestClass( string=="TEST" )
( TestClass( string == "A" ) from test.list
TestClass( string == "B" ) from test.list )
TestClass( string == "C" ) from test.list
System.out.println( "FAIL_AorBandC: " + test.getString() );
All other combinations of ANDs and ORs such as (A and B) or C, (A or B),
(A or B) or C will work except the one above if a from collection is
(A or B) and C will work if a from collection is not used.
Has anyone come across this? Is this a bug?
Show replies by date