Hi Steven,<br><br>I've been able to reproduce the bug and narrow down why and where it occurs. Given a String property 'name' of some fact type, a constraint using "not in" such as<br><br> $name: name not in ( "Joe", "Jack" ) <br>
<br>fails. You can work around by avoiding the binding<br><br> name not in ( "Joe", "Jack" ) <br><br>or by separating the binding from the constraint<br><br> $name: name, name not in ( "Joe", "Jack" ) <br>
<br><br>In your case, it happens in v1/Direction.drl, the constraint<br> <br> $t:text not in ("AND", "OR", "THEN")<br><br>HTH<br>-W<br><br><div class="gmail_quote">2011/6/29 Steven Waldren <span dir="ltr"><<a href="mailto:swaldren@openhealthdata.com">swaldren@openhealthdata.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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 "walk" 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 "dialect". 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 class="im">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 <<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>><br>Subject: Re: [rules-users] Drools 5.0 -> 5.2 Migration Issue<br>To: Rules Users List <<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>><br>
Message-ID: <<a href="mailto:BANLkTin04ytQVP6T3tdR6j8ZjUKCO9Rvyw@mail.gmail.com" target="_blank">BANLkTin04ytQVP6T3tdR6j8ZjUKCO9Rvyw@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<div class="im">
<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 "dialect 'mvel'"?<br><br>-W</div></span></blockquote></div><br></div></div><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>