<div><br></div>   Thanks for reporting. It was a bug indeed. Fixed now.<div><br></div><div>   Edson<br><br><div class="gmail_quote">2011/6/30 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Steven,<br><br>I&#39;ve been able to reproduce the bug and narrow down why and where it occurs. Given a String property &#39;name&#39; of some fact type, a constraint using &quot;not in&quot; such as<br>
<br>    $name: name not in ( &quot;Joe&quot;, &quot;Jack&quot; ) <br>
<br>fails. You can work around by avoiding the binding<br><br>   name not in ( &quot;Joe&quot;, &quot;Jack&quot; ) <br><br>or by separating the binding from the constraint<br><br>   $name: name, name not in ( &quot;Joe&quot;, &quot;Jack&quot; ) <br>

<br><br>In your case, it happens in v1/Direction.drl, the constraint<br>  <br>   $t:text not in (&quot;AND&quot;, &quot;OR&quot;, &quot;THEN&quot;)<br><br>HTH<br>-W<br><br><div class="gmail_quote"><div class="im">2011/6/29 Steven Waldren <span dir="ltr">&lt;<a href="mailto:swaldren@openhealthdata.com" target="_blank">swaldren@openhealthdata.com</a>&gt;</span><br>

</div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5"><div style="word-wrap:break-word">Wolfgang,<div><br></div><div>
The ActorType definition is here:  <a href="https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/java/org/astm/ccr/ActorType.java" target="_blank">https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/java/org/astm/ccr/ActorType.java</a></div>

<div><br></div><div><a href="https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/java/org/astm/ccr/ActorType.java" target="_blank"></a>The point of this rule (and the other rules in this package) is to &quot;walk&quot; through a very complex object graph and insert the objects into working memory.</div>

<div><br></div><div>I do not use the rule attribute &quot;dialect&quot;.  The drl in question is here: <a href="https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/resources/rules/core/ActorType.drl" target="_blank">https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/resources/rules/core/ActorType.drl</a></div>

<div><br></div><div><a href="https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/resources/rules/core/ActorType.drl" target="_blank"></a>I tried to create a simple project that caused the same error, but I create a Class with inner classes similar to ActorType and write a rule like the one in question, but it does not cause the error.</div>

<div><br></div><div>Thanks,</div><div><div>Steven<br><div>
<div style="word-wrap:break-word;font-size:12px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>

--</div><div>Steven E. Waldren, MD MS</div><div>Co-founder, Open Health Data</div></span></div><br><br>
</div>
<br></div><div><div>On Jun 29, 2011, at 2:49 AM, <a href="mailto:rules-users-request@lists.jboss.org" target="_blank">rules-users-request@lists.jboss.org</a> wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Date: Wed, 29 Jun 2011 09:49:10 +0200<br>

From: Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;<br>Subject: Re: [rules-users] Drools 5.0 -&gt; 5.2 Migration Issue<br>To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>

Message-ID: &lt;<a href="mailto:BANLkTin04ytQVP6T3tdR6j8ZjUKCO9Rvyw@mail.gmail.com" target="_blank">BANLkTin04ytQVP6T3tdR6j8ZjUKCO9Rvyw@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<div>

<br><br>Please provide the type declaration for ActorType.Person, field gender and<br>typicial examples how gender fields are used in other rules. Ideally, if you<br>could reduce your rule set to this simple rule and one other rule, still<br>

causeing the same problem.<br><br>Also, do you use &quot;dialect &#39;mvel&#39;&quot;?<br><br>-W</div></span></blockquote></div><br></div></div><br></div></div>_______________________________________________<br>
rules-users mailing list<div class="im"><br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
</div><div class="im"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a 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><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>