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.