Did you add java.util.Iterator to the packages import section in Guvnor?<br><br><br><div class="gmail_quote">On 26 August 2011 21:18, JohnPerrin <span dir="ltr"><<a href="mailto:John.Perrin@acxiom.com">John.Perrin@acxiom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks folks. I did end up finding something that works. I guess<br>
Guvnor5.2.0.Final still has some quirks. Even this has to be written just<br>
so for the package to build. Everything has to be cast, using typing didn't<br>
seem to work.<br>
<div class="im"><br>
when<br>
$validList : List()<br>
from accumulate(<br>
InRecord($value : value != ""),<br>
ListValid($value))<br>
then<br>
</div> java.util.Iterator iter = (java.util.Iterator)$validList.iterator();<br>
while (iter.hasNext()) {<br>
String curr = (String)iter.next();<br>
<div><div></div><div class="h5"> ValidValue aValidVal = new ValidValue(curr);<br>
insert(aValidVal);<br>
}<br>
<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Guvnor-does-not-like-my-rule-tp3287587p3287898.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Guvnor-does-not-like-my-rule-tp3287587p3287898.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>