<br>
&nbsp; Minsk,<br>
<br>
&nbsp; Are you asking for the source code of these functions or for an example of use?<br>
&nbsp; The source code for the accumulate functions we ship with drools is here:<br>
<br>
<a href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/accumulators/">http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/accumulators/
</a><br>
<br>
&nbsp;&nbsp; Including source codes for min and max functions.<br>
&nbsp;&nbsp; The usage is similar to the others showed in the docs. Maybe we need to improve docs:<br>
<br>
Number( $max : intValue ) from accumulate( Cheese( $price : price ), max( $price ) )<br>
<br>
&nbsp;&nbsp; []s<br>
&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/10/8, Chong Minsk Goh &lt;<a href="mailto:cmgoh1979@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
cmgoh1979@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi Everyone,</div>
<div>&nbsp;</div>
<div>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).
</div>
<div>&nbsp;</div>
<div>Could anyone provide some resources or examples how to write these functions?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Much appreciated</div><span>
<div>Minsk</div>
</span><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div>

<br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

www.jboss.com</a>