Hi,
I am a DROOLS newbie. I apologize if this has been asked before.
This rule (R1) is not syntactically correct in the Eclipse .DRL view.
rule "R1"
when
Message(
((attrA = "foo" && _attrB == "bar") || AttrA== "foo") //syntax error (curious, why?)
)
then
System.out.println( "R1 pattern-matched Message. DROOLS Consequence executing now." );
end
but R2 is syntactically correct =
rule "R2"
when
Message( attrA = "foo" && _attrB == "bar") ||
Message (AttrA== "foo")
then
System.out.println( "R2 pattern-matched Message. DROOLS Consequence executing now." );
end
In Drools 5.2, are R1 and R2 semantically equivalent?