So the thing I discovered is that the rerun thing is very order
depended.
So if you play with the order of the rules you can sometimes get a rule
to run only once even when some facts are being modified. With the
rule set I was playing with if I modified One Var it did not spin but
if I
modified Two var's it kept firing. The frustrating part was that
after the
modifications the rules should not have had the rule fire at all. So
I had
a rule that modified it's variables such that the action should not be
taken
a second time and it still kept firing...
On 28/10/2009, at 2:17 AM, Jake Dempsey wrote:
> Drools has an option "noloop". I won't pretend to have a deep
> understanding, but it seems that it prevents a rule from firing more
> than once. How do I achieve this in ruleby?
> On Oct 27, 10:17 am, Jake Dempsey <angelo0...@gmail.com> wrote:
>> Is it possible to only run a rule once for a given fact? It looks
>> like when any fact is retracted or modified, that all the rules are
>> re-
>> run on all the facts. I can see that it would be very useful that a
>> rule only fire once for a given fact until that fact is modified.