[rules-users] semantically equivalent DROOLS L-value expressions?
Cotton.Ben
ben.d.cotton.iii at gmail.com
Mon Oct 22 23:58:50 EDT 2012
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-expressions-tp4020423p4020427.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list