<!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=832165015-04102007><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 class=832165015-04102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=832165015-04102007><FONT face=Arial
color=#0000ff size=2>Or does it not activate?</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:03<BR><B>To:</B> Rules Users
List<BR><B>Subject:</B> [rules-users] using from with not<BR></FONT><BR></DIV>
<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 </BLOCKQUOTE></BODY></HTML>