An interesting solution, but it is not a solution for the original problem posted in this thread.
-W

On 21 July 2011 15:58, DroolersEye <sprabakkar@gmail.com> wrote:
Hi,
rule "Total Cost"
       when
               $trip : Trip( $cost : cost)
               $totalCost : Number() from
                                       accumulate(
                                                       Person( trip== $trip, maxMoney:maxMoney ),
                                                       sum( $cost )
                                               )
       then
               //take action
end

-----
with kind regards,

--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Using-functions-to-derive-values-in-accumulate-LHS-tp3187694p3188561.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users