[rules-users] Accumulate in Drools
Wolfgang Laun
wolfgang.laun at gmail.com
Mon Aug 16 03:36:27 EDT 2010
On 16 August 2010 05:43, Manav <manav7574 at yahoo.com> wrote:
> Hi,
> I am trying my hand at the accumulate function in Drools 5.x but the drl
> fails
> to compile.
>
Error message, please.
-W
> Not sure what's wrong with it. Please help.
> This is the sample that i am working with
>
> rule "Test Accumulate Function"
> when
> $p : ProductType ($name : name)
> $min_score : Number ()
> from accumulate (Client (productTypeExperience.keySet contains $name,
> $score :
> ((ExperienceLevel)productTypeExperience[$name]).value()),
> min ($score))
> then
> System.out.println ("$min_score" + $min_score);
> end
> Regards,
> Manav
>
>
>
>
> _______________________________________________
> 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/20100816/7e22c106/attachment.html
More information about the rules-users
mailing list