<!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.&nbsp; The error is:<BR>unknown:32:20 
  mismatched token: [@243,682:685='from',&lt;38&gt;,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> &lt;<A 
  href="mailto:manstis1@ford.com">manstis1@ford.com</A>&gt; 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>&nbsp;</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?&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 
    </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>