[rules-users] Using functions to derive values in "accumulate" (LHS)

DroolersEye sprabakkar at gmail.com
Thu Jul 21 09:58:45 EDT 2011


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.



More information about the rules-users mailing list