On 16 August 2010 05:43, Manav manav7...@yahoo.com wrote:
Hi,
I am trying my hand at the accumulate function in Drools 5.x but the drl
fails
to compile.
Error message, please.
-W
Not sure what's wrong with it. Please help.
This is the sample that i am working with
rule Test Accumulate
A rule only gets re-evaluated when something it depends on in it's 'when' part
is updated (or added).
Because the one shot rule doesn't depend on anything it never gets re-evaluated
so will only fire at the start.
Whether you retract them at the end depends on whether your are planning to
Hi,
I am new to Drools and learning it by reading Drools JBoss Rules 5.0
Developer's Guide at the moment.
However, the test cases of chapter 3 was failed when execute with Drools
5.1.0.CR1.
I suspect the test is broken due to the sequential option enabled with code
block below:
See this:
package org.drools.task.service.mina;
import org.drools.SystemEventListenerFactory;
import org.drools.task.service.TaskClient;
import org.drools.task.service.TaskServiceLifeCycleBaseTest;
import org.drools.task.service.mina.MinaTaskClientConnector;
import
Hi,
Is it possible to use variables in temporal operators?
e.g. $eventA : EventA( this after[ 3m30s, 4m ] $eventB ) to be
expressed as $eventA
: EventA( this after[ $begin, $end ] $eventB )
where $begin and $end are either local rule variables or global variables
Regards
Kris,
Thanks. I found the Pseudo-clock and have begun designing around using it
to control the simulation.
However, I'm also trying to keep my simulation synchronized in time with
other components.
Is there a way to call into the drools framework to determine what timers
exist and
You can't use the cast and the method call in a regular constraint. You
can use it as part of an expression. So:
$min_score : Number ()
from accumulate (Client (productTypeExperience.keySet contains $name,
$score : productTypeExperience[$name],
If you don't want session fail over it will work out of the box. If you want
to start a flow inside one node and then continue the process from another
node it will work. Of course both nodes need to have a connection to the
same database.
The idea with Drools Grid is to simplify the deployment
Are the test cases failed because of
java.lang.NullPointerException
at
org.drools.command.runtime.BatchExecutionCommand.execute(BatchExecutionCommand.java:142)
at
org.drools.command.runtime.BatchExecutionCommand.execute(BatchExecutionCommand.java:1)
at
hi
i have a function
public void functionName(String str1, String str2, List list1)
how do you build a List on the fly and pass it as parameter?
when
$var : ClassName()
... condn ...
then
$var.functionName(Reject, Reject, ???)
end
Thanks
Vijay
--
View this message in
Thanks Edson.
I don't why but when i am using the below rule in my drl it's failing to
compile.
Not sure if i am doing something stupid or this is an issue with environment or
the drl.
I am attaching the drl file with the mail. The error that i get is : -
testTestsRulesEngine(
at
knowledgeBuilder.getErrors()
Edson
2010/8/16 Manav manav7...@yahoo.com
Thanks Edson.
I don't why but when i am using the below rule in my drl it's failing to
compile.
Not sure if i am doing something stupid or this is an issue with
environment or the drl.
I am attaching the drl
Just like in Java:
List list = new ArrayList();
list.add( ... );
$var.functionName(Reject, Reject, list );
On 16 August 2010 18:55, vijrams mailrvi...@gmail.com wrote:
hi
i have a function
public void functionName(String str1, String str2, List list1)
how do you build a List on
This isn't quite right:
2010/8/16 Edson Tirelli tire...@post.com
You can't use the cast and the method call in a regular constraint.
You can use it as part of an expression. So:
$min_score : Number ()
from accumulate (Client (productTypeExperience.keySet contains $name,
Hi all
I am trying to assess Drools (Expert, Fusion and Flow) for a new
project and I read already some documentation, and when looking at
Fusion manual:
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-fusion/html_single/index.html#d4e680
I got this
Sorry for the spam. There was a syntax error in my earlier accumulate function.
After fixing that i am getting this error now which looks like some issue with
the drl
Caused by:
$score : productTypeExperience[$name]
Regards,
Manav
From: Edson Tirelli
Thanks for your reply. It clears my doubt : )
I checked your Drools Grid (Part 3) and found that it actually
supports Local Execution Node.
I like its 'transparency' so I can choose to use it later on with
minimal change in codes.
Thanks.
2010/8/16 Mauricio Salatino sala...@gmail.com:
If you
Hi,
How does one insert a new fact in the RHS of a rule to a specific stream so
that this fact is available to other rules that get facts from that stream?
Thanks,
Mike
___
rules-users mailing list
rules-users@lists.jboss.org
Hi,
I am new to drools.I have found that guvnor is intended more for technical
person than for any layman. And I was trying to use it from point-of-view of
any layman(i.e. managing rule in such a fashion that any layman can use guvnor
5.0 GUI with requiring least amount of technical knowledge)
drools.getEntryPoint(XYZ).insert(fact);
On 8/16/10 11:14 PM, Mike Love wrote:
Hi,
How does one insert a new fact in the RHS of a rule to a specific
stream so that this fact is available to other rules that get facts
from that stream?
Thanks,
Mike
20 matches
Mail list logo