Edson,

Is the syntax explained somewhere? 

-----Original Message-----
From: Edson Tirelli [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 22 de novembro de 2006 09:50
To: [email protected]
Subject: Re: [drools-user] Conditions in multiple objects


   Adbeme,

   Unfortunately 3.0.x versions don't have collect. The new version
(3.1m1) has (currently in trunk). More details here:

http://markproctor.blogspot.com/2006/11/jboss-rules-3.html

   Examples of the new features:

http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test
/resources/org/drools/integrationtests/test_Collect.drl
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test
/resources/org/drools/integrationtests/test_Accumulate.drl
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test
/resources/org/drools/integrationtests/test_AccumulateModify.drl
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test
/resources/org/drools/integrationtests/test_From.drl
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test
/resources/org/drools/integrationtests/test_From2.drl
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test
/resources/org/drools/integrationtests/test_FromWithParams.drl

    []s
    Edson
 


adbeme adbeme wrote:

> Hello,
>
> It seems that is not possible to make rules with operators like 
> "collect" that affects the rule to a set of objects.
>
> It is possible to simulate that behaviour of collect in some form?
>
> I need to fire rules that have conditions over a set of objects (of 
> same type) but i don't know how to group conditions over multiple same 
> objects.
>
>
> For example :
>
> rule CarsStopped
>
> when
>      $c:Car (stop = true)  // here i need a collect, i want multiple 
> objects in one rule that then
>    print("The list of cars stoped is:$c);
>
> end
>
>
> It seems that "collect" doesnt exist. It is possible to simulate that ?
>
> Actually i ame using JRules and want to use drools too, but i am 
> having dificulties to do what i can do with JRules.
>
> Thank you very much for your responses.
>
>
>
>


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

  IT executives: Red Hat still #1 for value
  http://www.redhat.com/promo/vendor/ 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to