[rules-users] Are implicit ANDs allowed in "not" blocks?
Nathan Bell
Nathan.Bell at pharmacyonesource.com
Mon Nov 22 22:40:28 EST 2010
This rule:
rule "Not"
when
not(
RuleTime()
Patient()
)
then
System.out.println("not");
end
produces the following errors when compiled:
[ERR 102] Line 43:5 mismatched input 'Patient' expecting ')' in rule
"Not"
[ERR 102] Line 44:5 mismatched input ')' expecting 'then' in rule "Not"
But if I change it to use explicit ANDs instead of implicit ANDs it
compiles and runs.
rule "NotBlock"
when
not(
RuleTime()
and
Patient()
)
then
System.out.println("notBlock");
end
Is it invalid syntax to use implicit ANDs in a not block? If so, why?
Thank You,
Nathan Bell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101122/e696cfb2/attachment.html
More information about the rules-users
mailing list