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.

---------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to