Hi,
I've done something similar by using the focus stack.
If you have two different modules (say M1 and M2) each with a set of
rules, you can do something like
(focus M1) (focus M2)
(run)
Rules from M2 will fire, and when that module is done rules from M1 will
fire.
Henrique
erich.oliphant wrote:
Hi,
I know that in general, trying to impose order in the rulebase is a Very Bad
Thing. However, I have a situation where we have an existing rule base that
updates some java objects. We have a new requirement, whereby if a flag is
set some of these objects may need to have the previously set values
overridden by values based on a separate set of rules. Reconciling the two
rule sets may prove to be quite tedious, wereas running the new set after the
completion of the first would be straightforward. Is there a way to create a
defrule that say looks to see if the run() is complete then sets the new
module and runs the second set of rules?
Now that I think about it. This is being executed from a Java program, I
think i could possibly do the check after the first Rete.run() set the module
and run again.
In any case, any insights or ideas would be greatly appreciated.
THanks
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
--
----- - - - - - - - - - - - -
Henrique Lopes Cardoso
DEEC/FEUP
Rua Dr. Roberto Frias | 4200-465 Porto
PORTUGAL
(+351)225574199 ext.3355
[EMAIL PROTECTED] | www.fe.up.pt/~hlc
----- - - - - - - - - - - - -
--------------------------------------------------------------------
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]
--------------------------------------------------------------------