<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=913580616-04102007><FONT face=Arial
color=#0000ff size=2>What if you try "<FONT face="Times New Roman" color=#000000
size=3>not (Foo(id == 10) from $foos)<FONT face=Arial color=#0000ff
size=2>"?</FONT></FONT></FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Chris
West<BR><B>Sent:</B> 04 October 2007 16:59<BR><B>To:</B> Rules Users
List<BR><B>Subject:</B> Re: [rules-users] using from with
not<BR></FONT><BR></DIV>
<DIV></DIV>It does not compile. The error is:<BR>unknown:32:20
mismatched token: [@243,682:685='from',<38>,32:20]; expecting type
THEN<BR><BR>-Chris<BR><BR>
<DIV><SPAN class=gmail_quote>On 10/4/07, <B class=gmail_sendername>Anstis,
Michael (M.)</B> <<A
href="mailto:manstis1@ford.com">manstis1@ford.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Does it
not compile (in which case can you post the error)?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Or does
it not activate?</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:rules-users-bounces@lists.jboss.org"
target=_blank>rules-users-bounces@lists.jboss.org</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:rules-users-bounces@lists.jboss.org"
target=_blank>rules-users-bounces@lists.jboss.org</A>] <B>On Behalf Of
</B>Chris West<BR><B>Sent:</B> 04 October 2007 16:03<BR><B>To:</B> Rules
Users List<BR><B>Subject:</B> [rules-users] using from with
not<BR></FONT><BR></DIV>
<DIV><SPAN class=e id=q_1156bbbb32459090_1>
<DIV></DIV>Hello,<BR><BR>Does anyone know why rule "GoodBye2" below does
not compile, but rule "GoodBye1" does compile using Drools 4.0.0?
The only difference is the "not". Shouldn't this be valid?
<BR><BR>Thanks,<BR>-Chris<BR><BR><BR>package
com.sample<BR> <BR>import com.sample.DroolsTest.Message;<BR>import
com.sample.DroolsTest.Foo;<BR>import java.util.List;<BR> <BR>rule
"Hello World"<BR> when<BR>
m : Message( status == Message.HELLO, message :
message )<BR> then<BR>
System.out.println( message ); <BR>
m.setMessage( "Goodbye cruel world" );<BR>
m.setStatus( Message.GOODBYE );<BR>
update( m );<BR>end <BR><BR>rule
"GoodBye1"<BR> no-loop true<BR>
when<BR> m : Message( status ==
Message.GOODBYE, message : message, $foos: foos )<BR>
Foo(id == 10) from $foos<BR>
then<BR> System.out.println (
message ); <BR> m.setMessage( message
);<BR> <BR>end<BR><BR>rule
"GoodBye2"<BR> no-loop true<BR>
when<BR> m : Message( status ==
Message.GOODBYE, message : message, $foos: foos )<BR>
not Foo(id == 10) from $foos<BR>
then<BR> System.out.println(
message ); <BR> m.setMessage( message
);<BR> <BR>end
</SPAN></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>rules-users
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR><BR
clear=all></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>