Well, the goal of these approaches is a bit different. The accumulate function will give you the actual value of the minimum age, while the rule pattern approach will give you the Person whose age is the minimum age.

   []s
   Edson

2008/12/10 Steven Williams <stevearoonie@gmail.com>
Yeah - that discussion was before drools had the accumulate function.


On Thu, Dec 11, 2008 at 10:16 AM, Greg Barton <greg_barton@yahoo.com> wrote:
That approach looks a bit cartesian joiny.  I'd be interested in seeing how it compares to using accumulate.

--- On Wed, 12/10/08, Steven Williams <stevearoonie@gmail.com> wrote:

> From: Steven Williams <stevearoonie@gmail.com>
> Subject: Re: [rules-users] drools query
> To: "Rules Users List" <rules-users@lists.jboss.org>
> Date: Wednesday, December 10, 2008, 4:59 PM
> Have a look here
> http://www.jboss.org/community/docs/DOC-11909 (this is to
> find the max so just reverse it)
>
> cheers
> Steve
>
> On Thu, Dec 11, 2008 at 9:48 AM, tati-2
> <tatyana.polnyi@jpmchase.com> wrote:
>
> >
> > How to extract min age of many objects of the same
> type "People" , which we
> > inserted in the workspace ?
> >
> > Thank you very much in advance for help.
> > --
> > View this message in context:
> >
> http://www.nabble.com/drools-query-tp20945811p20945811.html
> > Sent from the drools - user mailing list archive at
> Nabble.com.
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
>
> --
> Steven Williams
>
> Supervising Consultant
>
> Object Consulting
> Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
> steven.williams@objectconsulting.com.au
> www.objectconsulting.com.au
>
> consulting | development | training | support
> our experience makes the difference
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
steven.williams@objectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com