Re: [rules-users] When MinaTaskClient.complete throw NullPointerException

2009-09-02 Thread liuzhikun
Thanks Kris. It's OK. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Accumulator - Syntax question

2009-09-02 Thread joseph berdat
Hello, The rule below check which quote have a price above the average. In this form the rule is working, but from the log files it seems that this rule is doing a cross join. rule "above average value" dialect "mvel" when Double( $average : doubleValue) from accumu

Re: [rules-users] immediate vs path bound variables wrt performance?

2009-09-02 Thread Barry Kaplan
Ok, I think I just found my answer, from 4.8.2.1 'Note: Nested accessors have a much greater performance cost than direct field accesses, so use them carefully." But is the simple case in the previous post considered "nested"? -- View this message in context: http://www.nabble.com/immediate-

[rules-users] immediate vs path bound variables wrt performance?

2009-09-02 Thread Barry Kaplan
The docs state that == with bound variables is very fast due to hashing. The example only shows a simple bound value, eg Person( likes : favouriteCheese ) Cheese( type == likes ) In the following will drools create an implicit hashed variable for '$p.likes' and yield the same performance?

Re: [rules-users] not able to debug drools flow

2009-09-02 Thread Justin King
Hi, I'm afraid I downloaded the new plugin from the link you have and it still wont allow me to debug on eclipse 3.5. Anyone else had any luck? Cheers, Justin On Thu, Aug 27, 2009 at 11:05 PM, Kris Verlaenen < kris.verlae...@cs.kuleuven.be> wrote: > Ok, sorry, it took me a while but I found th

[rules-users] Scaling to large numbers of rules

2009-09-02 Thread Adam Sussman
I am hoping that I am doing something wrong here and that one of you can point me in the right direction. Can anyone provide some advice on scaling up the number of rules in a single KnowledgeBase? While I have seen all sorts of reports on having lots of facts, I have not seen anything about hav

[rules-users] Drools as Lexer / Parser (sequential data processing)

2009-09-02 Thread André Thieme
Hello group, I recently had the idea: "A rule system (like Drools) is ideal for making programs with complex rules simpler. Writing a lexer or parser can be non-trivial. So, is it possible and also meaningful to express such a task with rules?" Anyone here who maybe tried that already? The two

Re: [rules-users] Trouble getting Dynamic Salience working - add in rules-templates

2009-09-02 Thread Greg Barton
Yeah, the docs rightly state that you shouldn't depend too heavily on a given rule firing order: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d0e1572 Scroll down to "3.3.4.1. Conflict Resolution" They also say tha

[rules-users] Doubt regarding "extend" keyword in Rule Engine

2009-09-02 Thread Pardeep . Ruhil
Hi Users, Please help me to clear my doubt of using 'extend' keyword in Rules.I tried using this keyword to use the condition of rule 1 in rule 2 as Rule "first rule"   when       then     Rule "second rule" extends "first rule"   when       then   But when I tried to use it, it

Re: [rules-users] Guvnor fails to vaildate rule, though same rule compiles and run successfully when compiled command line with ANT.

2009-09-02 Thread Jaroslaw Kijanowski
Hi, I can't reproduce your issue, however I tried with a declarative model, not an uploaded jar. Can you try with trunk? https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/drools-5.1.0.SNAPSHOT-guvnor.zip Cheers, Jarek Codedrop wrote: > Reposting as last me

Re: [rules-users] forall/from/eval/contains: odd DRL syntax error

2009-09-02 Thread Greg Barton
Certainly. And while containsAll may work, mattering the size and nature of the collections involved (linear vs constant time existence check) it might not perform as well as your first solution. --- On Wed, 9/2/09, Wolfgang Laun wrote: > From: Wolfgang Laun > Subject: Re: [rules-users] for

Re: [rules-users] forall/from/eval/contains: odd DRL syntax error

2009-09-02 Thread Wolfgang Laun
Certainly, and it's more to the point - thank you! Nevertheless, the compiler hiccup ought to be investigated -W On Wed, Sep 2, 2009 at 5:31 PM, Greg Barton wrote: > Is Collection.containsAll() an option? > > --- On Wed, 9/2/09, Wolfgang Laun wrote: > > > From: Wolfgang Laun > > Subject: [ru

Re: [rules-users] Running into Persistence Issues

2009-09-02 Thread schavan
We externalized Drools flow persistence model's table/column names in orm.xml mapping file whose size is bigger than 30 character long, in order for it to work with Oracle Database. Except for PeopleAssignment JPA Pojo, since it utilizes @embeddable annotation. Does anyone knows how to define @e

Re: [rules-users] forall/from/eval/contains: odd DRL syntax error

2009-09-02 Thread Greg Barton
Is Collection.containsAll() an option? --- On Wed, 9/2/09, Wolfgang Laun wrote: > From: Wolfgang Laun > Subject: [rules-users] forall/from/eval/contains: odd DRL syntax error > To: "Rules Users List" > Date: Wednesday, September 2, 2009, 9:58 AM > A rule has to ascertain that all elements in >

Re: [rules-users] question on drools and method calls on facts

2009-09-02 Thread Greg Barton
I have to disagree on one point. Having fact classes with methods that modify the object in addition to the usual setters is not dangerous, it's called "encapsulation" or "information hiding" and is a common OO pattern. Now, in the rules context, you have to inform the engine that the object h

[rules-users] forall/from/eval/contains: odd DRL syntax error

2009-09-02 Thread Wolfgang Laun
A rule has to ascertain that all elements in a Listin a Collector occur in the matching BoxResponse's Set. There is just one BoxResponse per Collector. This here works fine: rule matchCollectorResponse when $c : Collector( $ebsList : elemBoxStatusList, $gsSet : globalStatusSet )

Re: [rules-users] When MinaTaskClient.complete throw NullPointerException

2009-09-02 Thread Kris Verlaenen
When using the human task service in combination with JPA, you should use the CommandBasedWSHumanTaskHandler, not the default WSHumanTaskHandler: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/drools-process-task/src/main/java/org/drools/process/workitem/wsht/CommandBasedW

Re: [rules-users] Maven Plugin to build pkg files

2009-09-02 Thread Bernd Rücker
Hi Eric. Thanks for the answer. Basically I developed that code yesterday, yes. I did it somehow similar to the Ant Task. But I had some serious serialization issues as posted yesterday. Maybe you have an idea about that? > If one doesn’t exist and there’s enough interest, we > could use wha

Re: [rules-users] Maven Plugin to build pkg files

2009-09-02 Thread Miles, Eric
Bernd, Something didn't exist as of Drools 4.x (at least nothing official). With the latest release of Drools, the amount of code needed to be written to compile is actually pretty small. Making a Maven plugin would not be that difficult. I've made one that is just a couple of hundred lin

[rules-users] how to use 'extend' keyword in Rule Engine

2009-09-02 Thread Pardeep . Ruhil
Hi, I want to use the condition of Rule 1 in Rule 2. So for this I got to know that extend keyword will be used. But in the documentation I have not get any details of the same. So can you please tell me how to use extends keyword in Rule. Thanks & Regards Pardeep Ruhil L&T Infotech Ltd Mumbai

[rules-users] KnowledgeAgent with BRL Files

2009-09-02 Thread David
Hi! I did a lot of searching aroung the web, drools doc and this mailing list but could not solve my problem. I want to monitor a folder for BRL File so i used the Agent. Java Code: KnowledgeAgent kbAgent = KnowledgeAgentFactory.newKnowledgeAgent("kbAgent"); Resource resource = ResourceFactory.n

[rules-users] Trouble getting Dynamic Salience working - add in rules-templates

2009-09-02 Thread Bill Tarr
Thank you for the response Greg.  For starters, I did NOT know about specificity...  very helpful to know, and I feel certain I will be using it in the future.  I don't feel any of the documentation I've read on Drools really got this subject across for me, I not sure the the Drools developer bo