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
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
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.
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
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
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
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
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
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