Hello,
Thank you for your prompt response. If you meant that the proper ordering solves the problem in version 6.1p7 then please ignore the remainder of the mail.


I defined the rule first and then asserted the fact that triggers the rule. Here is trace of what I tried.

Jess> (jess-version-string)
"Jess Version 6.1p4 7/8/2003"

Jess> (defrule yr
(logical (foo bar))=>(assert (this isOK)))
TRUE
Jess> (assert (foo bar))
<Fact-0>
Jess> (run)
1
Jess> (facts)
f-0   (MAIN::foo bar)
f-1   (MAIN::this isOK)
For a total of 2 facts.
Jess> (defrule yr1
(logical (foo bar1))=>(assert (this is OK1)))
TRUE
Jess> (assert (foo bar1))
<Fact-2>
Jess> (run)
1
Jess> (facts)
f-0   (MAIN::foo bar)
f-2   (MAIN::foo bar1)
f-3   (MAIN::this is OK1)

The fact (this isOK) is missing. Am I going wrong somewhere.

regards,
Mithun

[EMAIL PROTECTED] wrote:

I think Mithun Sheshagiri wrote:


"logical" construct which has been reported and fixed in the 6.1p7 version

http://www.mail-archive.com/[EMAIL PROTECTED]/msg05983.html




Note that this is an incremental reset problem only -- i.e., it only
happens if the rules are defined after the facts they operate on. Do
things in the "right" order, and there's no problem.



1. To store the fact-id/of all the facts and use the retract command



This is a reasonable thing to do.



I own the book "Jess in Action" and therefore have a 6.1p4 version of Jess. Is there a legitimate way of getting my hands on Node1RTL.class which fixes the bug with the logical construct.



You're writing from an .edu address, which means you're eligible for a free academic license. Write to Craig Smith, [EMAIL PROTECTED], to request yours.

---------------------------------------------------------
Ernest Friedman-Hill Science and Engineering PSEs Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------





-------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------



Reply via email to