[EMAIL PROTECTED] wrote:

I think Jeffrey Hau wrote:



(module TEST)
(defrule test-rule
=>
printout t "rule in TEST module fired" crlf)


...


however when i run rete the above rule is not fired, only the rules in my MAIN modules are fired,




Most likely your problem is that you didn't issue a "reset" call at
the beginning of your program (either (reset) in Jess or Rete.reset()
from Java.) The manual and book both detail the need for this -- every
Jess program needs to include a call to reset sometime before
run. This kind of rule (one with no patterns on the LHS) won't fire at
all unless you've called reset at some point.


Hi Ernest,
thanks for the reply,
i forgot to mention i did call reset but it was after the (focus TEST),
i move the reset() call to before (focus TEST) and now it works.
whether the rule in the TEST module fires seems to depend on when i call reset, is this right? or am i missing something here?



thanks very much for your help,


Jeff


---------------------------------------------------------
Ernest Friedman-Hill Distributed Systems Research 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