All,
I'm using modules control in JESS 6.0b1 and I've noticed that when some
module is set by focus, but  there is no fact referring to that module in
the agenda, that module doesn't keep in the focus stack. The following
example show what I'm trying to say.

(deftemplate MAIN::biscuit (slot name))

(defmodule TEST1)
(defmodule TEST2)

(defrule MAIN::rule1
 =>
 (printout t "->fire rule 1 and focus MODULE TEST" crlf)
 (focus TEST1))

(defrule TEST1::rule2
 (biscuit (name  BEST))
 =>
 (printout t "FIRED by BEST " crlf))

(reset)
(run)

********* RULE 1 is fired but focus goes to MAIN and not remain in module
TEST1.
in order way, if after (run) you assert a fact like that
(assert (biscuit(name  BEST)))
and then (run) the RULE2 (MODULE TEST1) is fired.
So I undestand that focus should remain in the focus stack, although no
facts in the agenda, is it correct?
Thank you,
Alceu







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