I think Leandro Felmcio Melari wrote: > > (deffunction manipula-menutipo (?event) > ; (printout t (call (get ?event item) toString)) > (assert (tipo Fogo)) > ; (printout t "Verifica [TIPO]: " ?*vartipo* crlf) > )
> > when I am into the function "manipula-menutipo", the program should enter in > the defrule "fogo", but when I select the option, I don't get the expected > result. > What can I do to solver this problem? > Rules only fire when the "(run)" or "(run-until-halt)" functions are executing. What you want to do is to add (run-until-halt) at the very end of your script; this will keep the Jess engine running on the main thread, so that it will respond to facts asserted from your event handlers. --------------------------------------------------------- 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] --------------------------------------------------------------------
