[rules-users] prevent infinite loops

2010-01-29 Thread Garner, Shawn
Is there a good way to globally prevent infinite loops. I had rule A and rule B and they both have FactA on the condition. They also both modify FactA. I tried no-loop and it prevents a loop of repeating RuleA over and over. However it then goes from Rule A back to Rule B back to Rule A. I fixed it

[rules-users] error on retracting fact on drools 5.0.1

2010-01-21 Thread Garner, Shawn
I have a rule and it is supposed to retract two objects when $objectOne : ObjectOne(...) $objectTwo : ObjectTwo(...) then retract($objectOne); #retract($objectTwo); end No matter what I do I can't ever retract objectTwo. I put a print statement and it is there. If I

[rules-users] drools 5.0.1 enum serialization/deserialization problem

2010-01-13 Thread Garner, Shawn
We are pre-compiling the rules and then reading them in and running them later. I'm getting this error when reading in the compiled (serialized rules) rules: "Error deserializing enum value"... This line (pretty similar to this) is causing the issue when it's deserializing the Java 5 Enum.

Re: [rules-users] (no subject)

2009-09-09 Thread Garner, Shawn
Functions on the LHS are not advised and says so in the drools user guide. I can think of two ways to do this (forgive me if my syntax is slightly off). Way number 1 rule "ProductDescription validation" when $listing : Listing( $description:productDescription != null, description.t

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

2009-09-01 Thread Garner, Shawn
I'm under the impression that in the action clause of a rule you should only do one of the following: 1) Set a property on a Fact 2) Retract a Fact 3) Insert (Assert) a new Fact 4) Modify an existing Fact However in some of the examples in the documentation it shows calling methods other than be

RE: [rules-users] Default rule

2009-06-04 Thread Garner, Shawn
The ruleflow-group and the State Example from the documentation may be what you're looking for. SG -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Malenfant, Andre Sent: Thursday, June 04, 2009 3:47 PM To: Rules Use

RE: [rules-users] RE: questions on guvnor and drools 5.0

2009-06-04 Thread Garner, Shawn
ists.jboss.org] On Behalf Of Wolfgang Laun Sent: Thursday, June 04, 2009 11:59 AM To: Rules Users List Subject: Re: [rules-users] RE: questions on guvnor and drools 5.0 On 6/4/09, Garner, Shawn wrote: > 2) How do you use the test scenarios with complex object structures? >-eg Creat

[rules-users] RE: questions on guvnor and drools 5.0

2009-06-04 Thread Garner, Shawn
Sorry it's been a few days and I haven't gotten any response on any questions/statements below. I've used drools in the past but am pretty new to some features of drools still and new to Guvnor. I wrote a proof of concept drools/Guvnor app and these are the things I don't like or have questi

[rules-users] questions on guvnor and drools 5.0

2009-06-01 Thread Garner, Shawn
I was wondering if somebody can help me with some questions: 1) Is there any more detail on how to setup Guvnor with a database? 2) How do you use the test scenarios with complex object structures? -eg Create a fact in working memory that has another Object in it which in turn has a list