Thanks for reporting. It was a bug indeed. Fixed now.

   Edson

2011/6/30 Wolfgang Laun <wolfgang.laun@gmail.com>
Hi Steven,

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

    $name: name not in ( "Joe", "Jack" )

fails. You can work around by avoiding the binding

   name not in ( "Joe", "Jack" )

or by separating the binding from the constraint

   $name: name, name not in ( "Joe", "Jack" )


In your case, it happens in v1/Direction.drl, the constraint
 
   $t:text not in ("AND", "OR", "THEN")

HTH
-W

2011/6/29 Steven Waldren <swaldren@openhealthdata.com>
Wolfgang,


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.

I do not use the rule attribute "dialect".  The drl in question is here: https://github.com/openhealthdata/CCR-Validator/blob/drools5.0/src/main/resources/rules/core/ActorType.drl

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.

Thanks,
Steven
--
Steven E. Waldren, MD MS
Co-founder, Open Health Data



On Jun 29, 2011, at 2:49 AM, rules-users-request@lists.jboss.org wrote:

Date: Wed, 29 Jun 2011 09:49:10 +0200
From: Wolfgang Laun <wolfgang.laun@gmail.com>
Subject: Re: [rules-users] Drools 5.0 -> 5.2 Migration Issue
To: Rules Users List <rules-users@lists.jboss.org>
Message-ID: <BANLkTin04ytQVP6T3tdR6j8ZjUKCO9Rvyw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"


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

Also, do you use "dialect 'mvel'"?

-W


_______________________________________________
rules-users mailing list


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com