[rules-users] Unsatisfied rule fires - Drools bug?

2011-09-26 Thread matvey1414
Hi, I am working with Drools to implement a high-profile rules-engine. I have two rules defined. Clearly, only the first should fire, but both do. Here is my DRL: package com.sample import com.sample.DroolsTest.Request; rule "ExpensiveCanonShopper0" when Request( attributeMap["ca

[rules-users] Maven Drools Plugin needs proper de-serialization support from DroolsStreamUtils

2011-09-26 Thread Ansgar Konermann
Hi all, I think I've found a bug in DroolsStreamUtils. It does not allow to deserialize a collection of KnowledgePackages with dependencies between the packages. In this case, it fails with ClassNotFoundException. Example: Package A contains a type declaration, package B contains a rule using thi

Re: [rules-users] Regression with Drools 5.3.0-CR1

2011-09-26 Thread Edson Tirelli
Ok, this is fixed: https://issues.jboss.org/browse/JBRULES-3224 I will check JBRULES-2995 now. Edson 2011/9/26 Edson Tirelli > >Thanks Wolfgang. That is a different issue related to how MVEL deals > with class literals. I will check what's the status on it anyway. > >Edson >

Re: [rules-users] Regression with Drools 5.3.0-CR1

2011-09-26 Thread Edson Tirelli
Thanks Wolfgang. That is a different issue related to how MVEL deals with class literals. I will check what's the status on it anyway. Edson 2011/9/26 Wolfgang Laun > Note that https://issues.jboss.org/browse/JBRULES-2995 reported against > 5.2.0.CR1 > and still open might be related. >

Re: [rules-users] Regression with Drools 5.3.0-CR1

2011-09-26 Thread Wolfgang Laun
Note that https://issues.jboss.org/browse/JBRULES-2995 reported against 5.2.0.CR1 and still open might be related. -W 2011/9/26 Edson Tirelli > >Thomas, > >Thanks for reporting. I will look into it. > >Did you open a JIRA yet? Let me know or I will do it otherwise. > >Edson > >

Re: [rules-users] Regression with Drools 5.3.0-CR1

2011-09-26 Thread Edson Tirelli
Thomas, Thanks for reporting. I will look into it. Did you open a JIRA yet? Let me know or I will do it otherwise. Edson 2011/9/26 Swindells, Thomas > I’ve just tried upgrading from Drools 5.3.0-CR1 from the beta and I’ve > hit a regression. > > ** ** > > JBoss seems to have

Re: [rules-users] How to terminate a StatefulKnowledgeSession

2011-09-26 Thread bishopmm
Thanks for your suggestion about activating the console logger. That helped me find out what's going on. After I fixed a stupid logic error on my part, I found out that my basic solution will work. When the user decides to cancel the session, I need to make sure that the current rule's RHS processi

Re: [rules-users] Regression with Drools 5.3.0-CR1

2011-09-26 Thread Mauricio Salatino
That's a nice one.. We will definitely create a test for that.. if it's not there.. 2011/9/26 Swindells, Thomas > I’ve just tried upgrading from Drools 5.3.0-CR1 from the beta and I’ve > hit a regression. > > ** ** > > JBoss seems to have been down for most of today so I haven’t been able t

[rules-users] Regression with Drools 5.3.0-CR1

2011-09-26 Thread Swindells, Thomas
I've just tried upgrading from Drools 5.3.0-CR1 from the beta and I've hit a regression. JBoss seems to have been down for most of today so I haven't been able to raise a Jira for it. In our model we have Facts which contain fields of java.lang.class, we then have a rule which checks that they

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Wendy Mungovan
Hi,   If you have a lot of rules like it you might be able to use the jBPM (what what the Drools Flow) to help with this.  Otherwise plan old java might be easier... Wendy From: "Swindells, Thomas" To: Rules Users List Sent: Monday, September 26, 2011 6:53

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Swindells, Thomas
As I said, try reading the expert doc, there's some examples in there which you can base your code on. Once you've done that or if you have any questions about the samples/what the documentation means then post them and we'd be pleased to help, but the first step is to structure your code correc

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread rouvas
Saurabh Pandey wrote: > @Nguy I tried salience but it just orders the execution of "when" part, > but > still all when execute before the "then" parts Hi, it seems to me that you are using the wrong tool to solve your problem. Drools is a rule-based execution engine (among other things) not a glo

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Saurabh Pandey
@thomas thanks for your comments I am new to drools, can u plz give me an alternative to the above code. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-all-lhs-execute-before-all-the-rhs-i-want-to-run-sequentially-tp3368215p3368917.html Sent from the Drools: User forum

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Swindells, Thomas
Have you read the expert guide? http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html_single/index.html - At least up to the end of chapter 4. Why are you using static fields and methods? You are changing the value of objects in the when condition which is really really really

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Saurabh Pandey
these are my rules: rule "Rule 03" salience 10 when $info : RuleRunner() eval(RuleRunner.check()) eval(RuleRunner.setIt()) then System.out.println("3**"); $info.printResult(1); end rule "Rule 04" salience 8 when $info

Re: [rules-users] Weird human task behaviour

2011-09-26 Thread HMandic
Ah, I forgot to mention that I'm using Drools 5.2.0 Final and jbpm 5.1.0 Final. -- View this message in context: http://drools.46999.n3.nabble.com/Weird-human-task-behaviour-tp3368608p3368638.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] Weird human task behaviour

2011-09-26 Thread HMandic
I have this strange problem, when I call int taskId = 105; // dummy taskId, the real one is obtained through TaskSummary BlockingTaskOperationResponseHandler b = new BlockingTaskOperationResponseHandler(); client.complete(taskId, "myusername", null, b); while

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Swindells, Thomas
You missed the second part of the instructions - once a rule has matched you need to make sure the other rules don't match. This can be achieved in multiple ways: Call the engines halt method - just stop evaluation. Retract the facts - then nothing else can match it. Update the facts to stop the c

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Swindells, Thomas
This isn't an if statement evaluated left to right with an && between each part. Drools uses the rete algorithm to make execution more efficient. Put very simply (and probably inaccurately) Rete creates an evaluation tree where inputs are put in the top and activations come out the end. In this ca

Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-26 Thread Saurabh Pandey
take a simple scenario: when condition1 condition2 then ... Does the condition2 gets executed even if the condition1 is false, normally it should not because the conditions in the when are actually combined with an AND. Has anywhen tried this?? -- View this message in context: http://drools.4