Ok, the parenthesis makes sense.<br><br>But when I enclose the pattern as Michael suggested, it gets a runtime error trying to parse.&nbsp; I attached a sample project illustrating this in an earlier response.&nbsp; So isn&#39;t there still a problem?
<br><br>-Chris<br><br><div><span class="gmail_quote">On 10/4/07, <b class="gmail_sendername">Edson Tirelli</b> &lt;<a href="mailto:tirelli@post.com">tirelli@post.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;">
<br>&nbsp;&nbsp; From the manual:<br><br>&quot;A not statement must be followed by parentheses around the pattern
      that it applies to. In the simplest case of a single pattern (like below)
      you can omit the parentheses.&quot;<br>&nbsp; <br>&nbsp;&nbsp; We improved the docs for the next version. Hope it is clearer now. But Michael got it right.<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/10/4, Anstis, Michael (M.) &lt;
<a href="mailto:manstis1@ford.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">manstis1@ford.com</a>&gt;:</span><div><span class="e" id="q_1156be80fb9b0dbb_1"><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">What if you try &quot;<font color="#000000" face="Times New Roman" size="3">not (Foo(id == 10) from $foos)<font color="#0000ff" face="Arial" size="2">

&quot;?</font></font></font></span></div><br>
<blockquote style="margin-right: 0px;">
  <div dir="ltr" align="left" lang="en-us">
  <hr>
  <font face="Tahoma" size="2"><span><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></span><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><span>
  <div></div>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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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>
      <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 href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br clear="all"></blockquote></div><br></span></div></blockquote></div>
<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br clear="all"></blockquote></span></div></div><span class="sg"><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer
<br>&nbsp;&nbsp;Office: +55 11 3529-6000
<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a>
</span><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></blockquote></div>
<br>