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(a)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-v...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users