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:
$min: Comparable() from accumulate( Schedule( $d: date ), min( $d ) ) 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 $min: Number( intValue > 100 ) from accumulate( X( $y: y ), min( $y ) ) any more (unless I'm very much mistaken). -W On 25 March 2011 03:56, Greg Barton <[email protected]> wrote: > Well, if it can work that way it should. I'd say open a JIRA and request > that feature. It works with the "principle of least confusion." :) > > --- On Thu, 3/24/11, jkrupka <[email protected]> wrote: > > > From: jkrupka <[email protected]> > > Subject: Re: [rules-users] accumulate min over java.util.Date > > To: [email protected] > > Date: Thursday, March 24, 2011, 8:26 PM > > Yea the docs weren't really clear > > about it, so I just thought it would work > > for anything that implemented Comparable =) > > > > Yep, used the long from getTime() - not the prettiest way > > of doing it, but > > it works great. > > > > Thanks! > > > > -- > > View this message in context: > http://drools-java-rules-engine.46999.n3.nabble.com/accumulate-min-over-java-util-Date-tp2726081p2728477.html > > Sent from the Drools - User mailing list archive at > > Nabble.com. > > _______________________________________________ > > rules-users mailing list > > [email protected] > > https://lists.jboss.org/mailman/listinfo/rules-users > > > > > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
