It does not compile.&nbsp; The error is:<br>unknown:32:20 mismatched token: [@243,682:685=&#39;from&#39;,&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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Does it not compile (in which case can you post the 
error)?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Or does it not activate?</font></span></div><br>
<blockquote style="margin-right: 0px;">
  <div dir="ltr" align="left" lang="en-us">
  <hr>
  <font face="Tahoma" size="2"><b>From:</b> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users-bounces@lists.jboss.org</a> 
  [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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 &quot;GoodBye2&quot; below does not 
  compile, but rule &quot;GoodBye1&quot; does compile using Drools 4.0.0?&nbsp; The only 
  difference is the &quot;not&quot;.&nbsp; Shouldn&#39;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 &quot;Hello World&quot;<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( &quot;Goodbye cruel world&quot; 
  );<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 
  &quot;GoodBye1&quot;<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 
  &quot;GoodBye2&quot;<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>