Are you asking for the source code of these functions or for an example of use?
  The source code for the accumulate functions we ship with drools is here:


   Including source codes for min and max functions.
   The usage is similar to the others showed in the docs. Maybe we need to improve docs:

Number( $max : intValue ) from accumulate( Cheese( $price : price ), max( $price ) )


2007/10/8, Chong Minsk Goh < cmgoh1979@gmail.com>:
Hi Everyone,
I am currently trying to write customize Java codes for MinAccumulateFunction and MaxAccumulateFunction. However, I could not find any guidelines or templates for these two (there is one for sum and avg in the Documentation).
Could anyone provide some resources or examples how to write these functions?
Much appreciated

rules-users mailing list

  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com