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):
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
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,
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
, 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
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
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
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