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.
<b><pre>
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
</pre></b>
but R2 is syntactically correct =
<b><pre>
rule "R2"
when
Message( attrA = "foo" && _attrB == "bar") ||
Message (AttrA== "foo")
then
System.out.println( "R2 pattern-matched Message. DROOLS Consequence executing now." );
end
</pre></b>
In Drools 5.2, are R1 and R2 semantically equivalent?
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/semantically-equivalent-DROOLS-L-value-expressions-tp4020423.html">semantically equivalent DROOLS L-value expressions?</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>