This still shows R1 as a syntax error in Eclipse .DRL view (Drools 5.2). R2
has no syntax error. Are R1 and R2 semantically the same?
rule "R1" //XLS Item=7
when
Message(
((businessDayConvention == "foo" && _calendar ==
"bar") ||
_calendar== "foo") //syntax error
)
then
System.out.println( "RULE pattern-matched Message. DROOLS
Consequence executing now." );
end
BuildError: Unable to Analyse Expression businessDayConvention == "foo"
&&
_calendar == "bar" ||
_calendar == "foo": [Error: no such identifier: _calendar] [Near : {...
vention == "foo" && _calendar
== "bar" || _calenda ....}] ^ [Line: 1, Column: 35]
rule "R2" //XLS Item=7
when
Message (businessDayConvention != "foo" && _calendar ==
"bar") ||
Message (businessDayConvention == "foo")
then
System.out.println( "RULE pattern-matched Message. DROOLS
Consequence executing now." );
end
--
View this message in context:
http://drools.46999.n3.nabble.com/semantically-equivalent-DROOLS-L-value-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.