> A workaround would be to add (set-current-module MAIN) to the end of your
rules file.
Thanks much - that solves the problem. It also gave me the clue I needed to
solve the focus issue I was having. Rather than declaring auto-focus to
transfer control to another module (used in the problem that started this
thread), I really wanted to activate and fire all the rules in a module,
then do the same in another module, much like the Tax Forms Advisor in JIA.
I could not figure out where to tell the JSR94 RI to (focus
do-all-module-1-first do-all-module-2-next). The following template seems
to work to activate and fire all rules in the "process" module, then do the
same in the "result" module:
(defmodule process) ; define the modules first for focus in do-initial
(defmodule result)
(set-current-module MAIN) ; set to MAIN to define classes
(defclass ...
(defrule do-initial ; the rule in MAIN to set the focus stack
=>
(focus process result))
(set-current-module process) ; now define process rules
(defrule ...
(set-current-module result) ; now define results rules
(defrule ...
(set-current-module MAIN) ; use MAIN for passed in objects
Perhaps I'm missing a simpler approach, but several other placements of
(defmodule ...) and (focus ...) did not yield the desired results.
--------------------------------------------------------------------
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]
--------------------------------------------------------------------