Re: [rules-users] ClassCastException during inserting knowledge package

2010-05-24 Thread Piotr Jedrychowski
I tried to create an isolated test case to reproduce this problem but I can't reproduce it each time. So in my opinion this is random issue. I will try to change my test case to reproduce this issue each time. Maybe someone else had similar problem and maybe there is workaround for this issue?

Re: [rules-users] Error in OR rule

2010-05-24 Thread Piotr Jedrychowski
Thank you for help! Regards, Piotr On 2010-05-24 17:43, Wolfgang Laun wrote: This is due to a designed or accidental glitch in the LHS syntax. An "and" CE may not contain an "or" CE as one of its operands; it may only contain a /parenthesized /"or" (but all other CEs without the additional

Re: [rules-users] How to visually follow the drools flow ?

2010-05-24 Thread Mauricio Salatino
you have two options.. One is the GWT console that let you visualize your process instances, but you need to do some configurations. and the other is to develop your own visualizer, because you have all the information using the APIs. On Mon, May 24, 2010 at 3:15 PM, Robert wrote: > How to vis

[rules-users] How to visually follow the drools flow ?

2010-05-24 Thread Robert
How to visually follow the drools flow in a running process instance ? Cheers, Rob. -- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/ ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman

[rules-users] How to log defects with its corresponding rule id?

2010-05-24 Thread bbarani
Hi, I am currently using Guvnor for managing rules. I have a java program which retrieves the rules information from Guvnor and gives me the validated output. I now need to log the defects of each and every record with its corresponding rule / rule type id in order to know why that / for which v

Re: [rules-users] Drools Fusion - Correlating Events

2010-05-24 Thread Wolfgang Laun
Dependencies between facts are made aware to the Engine by insertLogical( Object obj ) which you'll find described in the Drools Expert manual. Other than this: How do you think the Engine would know about this relationship if facts (or events)? -W On 24 May 2010 18:44, Tina Vießmann wrote:

[rules-users] Drools Fusion - Correlating Events

2010-05-24 Thread Tina Vießmann
Hi :) In Complex Event Processing events (say A and B) correlating another event (say C) are causal related to the correlated event. Does DF internally remember these relation or does the developer has to define a corresponding relational attribute itself? Thanks :) Tina _

Re: [rules-users] Drools 5.1M2

2010-05-24 Thread Geoffrey De Smet
> But we should really be using Maven dependency management at the root > level to avoid this problem. > In general there should not be any version numbers in any of the > sub-modules. I agree. "Don't set of dependencies in child pom's, only in of the drools parent pom" is part of the open

Re: [rules-users] Drools 5.1M2

2010-05-24 Thread rudolf michael
Yes, i also have those errors when maven package drools-camel check the test results attached. my env is Windows 7 ultimate 64 bits. best regards, Rudolf Michael 2010/5/24 Ming Fang > Mark, > > The tests can't run because the drools-camel module has a dependency on > spring 2.5.5. > This versio

Re: [rules-users] Error in OR rule

2010-05-24 Thread Wolfgang Laun
This is due to a designed or accidental glitch in the LHS syntax. An "and" CE may not contain an "or" CE as one of its operands; it may only contain a *parenthesized *"or" (but all other CEs without the additional decoration). This means that you must write (or (and MyFact(id==1)

Re: [rules-users] Drools 5.1M2

2010-05-24 Thread Ming Fang
Mark, The tests can't run because the drools-camel module has a dependency on spring 2.5.5. This version is then mixed with version 2.5.6 from other dependencies. Simple fix is to change drools-camel to use spring 2.5.6. But we should really be using Maven dependency management at the root level

[rules-users] Error after inserting object in the workingmemory

2010-05-24 Thread Kevin Alonso
Hello, I´m working with the last successful build(22-may-2010) of drools5.1. I get the error below, when I try to insert a class instance in the working memory. This only happens when conditional part of a rule is satisfied. I´ve read in previous mails of this mailing list something about this

Re: [rules-users] Error in OR rule

2010-05-24 Thread Giovanni Motta
Hello, i had similar problems with or constructs, and decided to avoid them. Drools expert manual says that or constructs are internally rewritten, i suppose this mechanism is not fine-tuned. My 2 cents... 2010/5/24 Piotr Jedrychowski > Hello. > > I have a problem with such a condition after 'wh

[rules-users] Error in OR rule

2010-05-24 Thread Piotr Jedrychowski
Hello. I have a problem with such a condition after 'when': (or (and MyFact(id==1) MyFact(id==2)) (or MyFact(id==3) MyFact(id==4))) For this condition I got this error: errors; [7,41]: [ERR 101] Line 7:41 no viable alternative at input 'or' in rule "Sensor-1-ON"[7,64]: [ERR 102] Line 7:64 mismat

[rules-users] StatelessKnowledgeSessionImpl.execute does not call dispose() method

2010-05-24 Thread Σάββας Τριανταφύλλου
Hi, I have noticed that StatelessKnowledgeSessionImpl.execute (5.1.0.M1) methods do not call dispose() method in contrary to the documentation (http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e1797) 3.3.7. StatelessKnowledgeSession The Stateles

Re: [rules-users] ArrayIndexOutOfBounds when calling addKnowledgePackage?

2010-05-24 Thread malkhafaji
Yes. Actually that is exactly what I did, but I wanted to test something out in the process and I decided to try it like that. But in any case, I am using your line instead. I wrote the disclaimer in the email I sent with the code :) On Mon, May 24, 2010 at 12:59 AM, Wolfgang Laun-2 [via Drools -

Re: [rules-users] Matching on instanceof without eval?

2010-05-24 Thread Giovanni Motta
I suppose this should work, also: when position : Position() option: OptionInstrument() from position.instrument And to me it looks well readable. But what difference does it make, behind the curtains? Is it more or less efficient? ___ rules-users