An interesting solution, but it is not a solution for the original problem posted in this thread.<br>-W<br><br><div class="gmail_quote">On 21 July 2011 15:58, DroolersEye <span dir="ltr">&lt;<a href="mailto:sprabakkar@gmail.com">sprabakkar@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
rule &quot;Total Cost&quot;<br>
        when<br>
                $trip : Trip( $cost : cost)<br>
                $totalCost : Number() from<br>
                                        accumulate(<br>
                                                        Person( trip== $trip, maxMoney:maxMoney ),<br>
                                                        sum( $cost )<br>
                                                )<br>
        then<br>
                //take action<br>
end<br>
<br>
-----<br>
with kind regards,<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Using-functions-to-derive-values-in-accumulate-LHS-tp3187694p3188561.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Using-functions-to-derive-values-in-accumulate-LHS-tp3187694p3188561.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>