<!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>&nbsp;</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?&nbsp; The only 
  difference is the "not".&nbsp; Shouldn't this be valid? 
  <BR><BR>Thanks,<BR>-Chris<BR><BR><BR>package com.sample<BR>&nbsp;<BR>import 
  com.sample.DroolsTest.Message;<BR>import com.sample.DroolsTest.Foo;<BR>import 
  java.util.List;<BR>&nbsp;<BR>rule "Hello World"<BR>&nbsp;&nbsp; 
  &nbsp;when<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m : Message( status == 
  Message.HELLO, message : message )<BR>&nbsp;&nbsp; &nbsp;then<BR>&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;System.out.println( message ); <BR>&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;m.setMessage( "Goodbye cruel world" 
  );<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m.setStatus( Message.GOODBYE 
  );<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;update( m );<BR>end <BR><BR>rule 
  "GoodBye1"<BR>&nbsp;&nbsp; &nbsp;no-loop true<BR>&nbsp;&nbsp; 
  &nbsp;when<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m : Message( status == 
  Message.GOODBYE, message : message, $foos: foos )<BR>&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;Foo(id == 10) from $foos<BR>&nbsp;&nbsp; 
  &nbsp;then<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.out.println ( 
  message ); <BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m.setMessage( message 
  );<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<BR>end<BR><BR>rule 
  "GoodBye2"<BR>&nbsp;&nbsp; &nbsp;no-loop true<BR>&nbsp;&nbsp; 
  &nbsp;when<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m : Message( status == 
  Message.GOODBYE, message : message, $foos: foos )<BR>&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;not Foo(id == 10) from $foos<BR>&nbsp;&nbsp; 
  &nbsp;then<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.out.println( 
  message ); <BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m.setMessage( message 
  );<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<BR>end </BLOCKQUOTE></BODY></HTML>