[rules-users] Guvnor does not like my rule?

Michael Anstis michael.anstis at gmail.com
Fri Aug 26 16:35:50 EDT 2011


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


On 26 August 2011 21:18, JohnPerrin <John.Perrin at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110826/808f349f/attachment.html 


More information about the rules-users mailing list