You should be able to achieve what you want by writing a custom
Strategy object. This recently became VASTLY simpler than it once
was. See the jess.Strategy interface and the jess.breadth and
jess.depth implementation classes. This wil let you move the rule you
want to fire next to the top of the Agenda. Then use dynamic
salience, to force the agenda to be reordered before each cycle. Then
use (run 1) in a loop and stop calling it when there are no more rules
that you want to be fired.




I think Willie Wheeler wrote:
> Hi all,
> 
>       In the application I am writing, I need to be able to choose rules
> in two different ways.  The first is just the standard fact-driven way,
> and there is no problem here.  But for the second way, the Java program in
> which Rete is embedded needs to be able to choose which activated rule to
> fire.  Is there a way to do this?
> 
>       Thanks,
>       Willie
> 




---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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