[rules-users] Using DSL and accumulate in Drools BRMS leads to unexpected results

2007-09-11 Thread pentarious
Hi, I'm using the following DSL: [when]There are at least {N} objects in the domain=Number(intValue={N}) from accumulate ( i : Object(), count( i ) ) [when]- category is {Category}=category== {Category} Using the above DSL from Drools BRMS leads to the following result (rule source code):

[rules-users] org.drools.base.accumulators.CountAccumulateFunction error with Drools BRMS 4.0.1

2007-09-10 Thread pentarious
Hi, I'm using Drools BRMS 4.0.1 and when I try to build a package including some rules using an accumulate construct, I get the following error: org.drools.base.accumulators.CountAccumulateFunction (This message is shown in an alert). This is a simple rule (Technical DRL rule) to reproduce the

Re: [rules-users] mvel bug ??

2007-08-31 Thread pentarious
Hi, I believe the following syntax is not supported in Drools: list:Variable() from SOME_JAVA_CODE You should use something like: from $list or from collect or from accumulate, and embed any Java code in an eval statement. Edson, am I missing something? Regards, CG hypnosat7 wrote: Hi,

Re: [rules-users] How to limit results from a collect statement

2007-08-23 Thread pentarious
I just opened a JIRA: http://jira.jboss.com/jira/browse/JBRULES-1115. Regards, CG Edson Tirelli-3 wrote: I do suggest you open a JIRA and attach your test case. I will need to do some debugging to understand what is happening. []s Edson 2007/8/22, pentarious [EMAIL

Re: [rules-users] How to limit results from a collect statement

2007-08-22 Thread pentarious
, it must work. Can you open a JIRA with a self contained test case please? I will investigate. []s Edson 2007/8/22, pentarious [EMAIL PROTECTED]: I know. Actually I didn't put any update or insert statement in the code just to make it simpler. The actual code looks like: when

Re: [rules-users] How to limit results from a collect statement

2007-08-22 Thread pentarious
will delegate the call to your real class, instead of adding it to the shadow. []s Edson 2007/8/22, pentarious [EMAIL PROTECTED]: Actually, before opening a JIRA I would like to show you my actual code... Here it is: rule My Rule no-loop true when $list : ArrayList

Re: [rules-users] How to limit results from a collect statement

2007-08-21 Thread pentarious
idea for a future release, open a jira and I'll look into getting it included. Mark pentarious wrote: Does anyone know a method to limit the number of results from a collect statement? I was just wondering how to do something like this: $myList : List() from collect( MyObject(myField

[rules-users] How to limit results from a collect statement

2007-08-08 Thread pentarious
Does anyone know a method to limit the number of results from a collect statement? I was just wondering how to do something like this: $myList : List() from collect( MyObject(myField == something) ) limit 3 //it should put in $myList just the first 3 objects retrieved I'm quite sure there is