Did you add java.util.Iterator to the packages import section in Guvnor?


On 26 August 2011 21:18, JohnPerrin <John.Perrin@acxiom.com> wrote:
Thanks folks.  I did end up finding something that works.  I guess
Guvnor5.2.0.Final still has some quirks.  Even this has to be written just
so for the package to build.  Everything has to be cast, using typing didn't
seem to work.

       when
               $validList : List()
                       from accumulate(
                               InRecord($value : value != ""),
                                       ListValid($value))
       then
               java.util.Iterator iter = (java.util.Iterator)$validList.iterator();
               while (iter.hasNext()) {
                       String curr = (String)iter.next();
                       ValidValue aValidVal = new ValidValue(curr);
                       insert(aValidVal);
               }




--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Guvnor-does-not-like-my-rule-tp3287587p3287898.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users