[rules-users] Multi-function Accumulates

Hassan azbakh01 at gmail.com
Thu Mar 29 05:51:10 EDT 2012


Hello everybody


I don't know why the Multi-function Accumulates doesn't work,
 I m just copying the code given in he documentation

rule "Max, min and average" 
    when
        accumulate( Cheese( $price : price ),
                    $max : max( $price ),
                    $min : min( $price ),
                    $avg : average( $price ) )
    then
         System.out.println($max+"  "+$min+"  "+$avg);
end


But it gives me some problems !!

-----
Youssef AZBAKH.
--
View this message in context: http://drools.46999.n3.nabble.com/Multi-function-Accumulates-tp3867251p3867251.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list