On 16 August 2010 05:43, Manav <span dir="ltr">&lt;<a href="mailto:manav7574@yahoo.com">manav7574@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I am trying my hand at the accumulate function in Drools 5.x but the drl fails<br>
to compile.<br></blockquote><div><br>Error message, please.<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Not sure what&#39;s wrong with it. Please help.<br>
This is the sample that i am working with<br>
<br>
rule &quot;Test Accumulate Function&quot;<br>
when<br>
 $p : ProductType ($name : name)<br>
 $min_score : Number ()<br>
   from accumulate (Client (productTypeExperience.keySet contains $name,<br>
                     $score :<br>
((ExperienceLevel)productTypeExperience[$name]).value()),<br>
              min ($score))<br>
then<br>
 System.out.println (&quot;$min_score&quot; + $min_score);<br>
end<br>
Regards,<br>
Manav<br>
<br>
<br>
<br>
<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>
</blockquote></div><br>