Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Not refiring rules on retract or modify
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jake Dempsey  
View profile  
 More options Oct 27, 11:17 am
From: Jake Dempsey <angelo0...@gmail.com>
Date: Tue, 27 Oct 2009 08:17:30 -0700 (PDT)
Local: Tues, Oct 27 2009 11:17 am
Subject: Not refiring rules on retract or modify
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.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jake Dempsey  
View profile  
 More options Oct 27, 12:17 pm
From: Jake Dempsey <angelo0...@gmail.com>
Date: Tue, 27 Oct 2009 09:17:17 -0700 (PDT)
Local: Tues, Oct 27 2009 12:17 pm
Subject: Re: Not refiring rules on retract or modify
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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Pruss  
View profile  
 More options Oct 27, 7:14 pm
From: Richard Pruss <boa...@gmail.com>
Date: Wed, 28 Oct 2009 09:14:30 +1000
Local: Tues, Oct 27 2009 7:14 pm
Subject: Re: [ruleby] Re: Not refiring rules on retract or modify
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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Kutner  
View profile  
 More options Oct 27, 9:24 pm
From: Joe Kutner <jpkut...@gmail.com>
Date: Tue, 27 Oct 2009 20:24:20 -0500
Local: Tues, Oct 27 2009 9:24 pm
Subject: Re: [ruleby] Re: Not refiring rules on retract or modify
There is definitely some work that needs to be done here.

The way in which Ruleby selects the activations to fire is designed so
that the Miss Manners benchmark will execute.  That strategy is not
necessarily ideal for everyday applications.

I will investigate adding a "noloop" feature like Drools has.  I think
this could be a valuable tool.

Richard, can you provide me with some examples of the behavior you
described.  I'd like to work on those cases.

Thanks,

Joe


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google