Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Wolfgang Laun
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

Re: [rules-users] Caching results in temperory variables

2010-08-16 Thread Swindells, Thomas
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

[rules-users] Is Drools 5.1 backward compatible with 5.0.1?

2010-08-16 Thread Chee Kin Lim
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:

Re: [rules-users] Where is MinaTaskClient ? (Gustavo Tenrreiro)

2010-08-16 Thread Eugenio Abello
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

[rules-users] Using variables in Temporal Operators

2010-08-16 Thread Mike Love
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

Re: [rules-users] Drools 5 for process simulation

2010-08-16 Thread Labin, Jonathan W.
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

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Edson Tirelli
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],

Re: [rules-users] Embedded Drools into clustered application

2010-08-16 Thread Mauricio Salatino
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

Re: [rules-users] Is Drools 5.1 backward compatible with 5.0.1?

2010-08-16 Thread Tan Hui Onn
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

[rules-users] Passing java.util.List as paramater

2010-08-16 Thread vijrams
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

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Manav
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

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Edson Tirelli
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

Re: [rules-users] Passing java.util.List as paramater

2010-08-16 Thread Wolfgang Laun
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

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Wolfgang Laun
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,

[rules-users] KnowledgeBase partitioning

2010-08-16 Thread Orlando Ricardo Da Silva Costa
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

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Manav
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

Re: [rules-users] Embedded Drools into clustered application

2010-08-16 Thread Tan Hui Onn
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

[rules-users] Insert fact to a stream in rule consequence

2010-08-16 Thread Mike Love
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

[rules-users] configuration settings in guvnor 5.0

2010-08-16 Thread Swapnil Sawant
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)

Re: [rules-users] Insert fact to a stream in rule consequence

2010-08-16 Thread Tihomir Surdilovic
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