JESS: infinite loop of slot-set

View: New views
3 Messages — Rating Filter:   Alert me  

JESS: infinite loop of slot-set

by Rose S :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,
How should I avoid of infinite loop using
slot-set function in the RHS of a rule?

Thanks
Rose



New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!

Parent Message unknown Re: JESS: infinite loop of slot-set

by Ana Tanasescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hye Rose,
 
You can use the halt function at the end of your rule.
 
Ana

--- On Mon, 5/18/09, Rose S <black_rose_u2@...> wrote:

From: Rose S <black_rose_u2@...>
Subject: JESS: infinite loop of slot-set
To: jess-users@...
Date: Monday, May 18, 2009, 10:54 PM

Hi there,
How should I avoid of infinite loop using
slot-set function in the RHS of a rule?

Thanks
Rose



New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!


Re: JESS: infinite loop of slot-set

by Wolfgang Laun-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You define the rule attribute no-loop as TRUE:

(defrule rule-name
(declare (no-loop TRUE))
...
-W

On Mon, May 18, 2009 at 9:54 PM, Rose S <black_rose_u2@...> wrote:
Hi there,
How should I avoid of infinite loop using
slot-set function in the RHS of a rule?

Thanks
Rose



New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!