<html><body bgcolor="#FFFFFF"><div>Which is why I prefaced with "if it can work that way..." A JIRA can be for feature requests, and that's what this would be. &nbsp;Whether just adding a Comparable based accumulate function is the solution, or making accumulate generic like "from" is now, a JIRA does not have to specify the solution, just the request.<br><br>GreG</div><div><br>On Mar 25, 2011, at 4:22, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Now don't be hasty with a JIRA. Using Comparable for the arguments of the min and max accumulate functions will give you a result that is -- Comparable. So:<br><br>&nbsp; $min: Comparable() from accumulate( Schedule( $d: date ), min( $d ) )<br>
<br>OK, this will give you the minimum data, bound to $min, although it won't let you write any constraint for the "Comparable" result fact. But, what's worse, it will not let you write<br><br>&nbsp; $min: Number( intValue &gt; 100 ) from accumulate( X( $y: y ), min( $y ) )<br>
<br>any more (unless I'm very much mistaken).<br><br>-W<br><br><br><br><div class="gmail_quote">On 25 March 2011 03:56, Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com"><a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a></a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, if it can work that way it should. &nbsp;I'd say open a JIRA and request that feature. &nbsp;It works with the "principle of least confusion." :)<br>

<div class="im"><br>
--- On Thu, 3/24/11, jkrupka &lt;<a href="mailto:jkrupka@gmail.com"><a href="mailto:jkrupka@gmail.com">jkrupka@gmail.com</a></a>&gt; wrote:<br>
<br>
&gt; From: jkrupka &lt;<a href="mailto:jkrupka@gmail.com"><a href="mailto:jkrupka@gmail.com">jkrupka@gmail.com</a></a>&gt;<br>
</div>&gt; Subject: Re: [rules-users] accumulate min over java.util.Date<br>
<div class="im">&gt; To: <a href="mailto:rules-users@lists.jboss.org"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></a><br>
</div>&gt; Date: Thursday, March 24, 2011, 8:26 PM<br>
<div><div></div><div class="h5">&gt; Yea the docs weren't really clear<br>
&gt; about it, so I just thought it would work<br>
&gt; for anything that implemented Comparable =)<br>
&gt;<br>
&gt; Yep, used the long from getTime() - not the prettiest way<br>
&gt; of doing it, but<br>
&gt; it works great.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/accumulate-min-over-java-util-Date-tp2726081p2728477.html" target="_blank"><a href="http://drools-java-rules-engine.46999.n3.nabble.com/accumulate-min-over-java-util-Date-tp2726081p2728477.html">http://drools-java-rules-engine.46999.n3.nabble.com/accumulate-min-over-java-util-Date-tp2726081p2728477.html</a></a><br>

&gt; Sent from the Drools - User mailing list archive at<br>
&gt; <a href="http://Nabble.com">Nabble.com</a>.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></a><br>
&gt;<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></a><br>
</div></div></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rules-users mailing list</span><br><span><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></span><br></div></blockquote></body></html>