This may be restating the painfully obvious, but note that
(run-until-halt) (or runUntilHalt()) never returns, until (halt) or
halt() is called. Generally, then, a given script can only call
(run-until-halt) at its end; likewise, any one Java thread is tied up
once it has called runUntilHalt(). The trick to using run-until-halt
and then subsequently asserting more facts is that you have to use
multiple threads. Jess's script language doesn't offer any immediate
way to run things in a new Thread, but it's easy enough to do from
Java. 


I think Bob Stewart wrote:
> First I wanted to thank everyone for all of their
> help so far.....
> 
> Now, I have my java program working, parsing in XML
> as jess facts, and have defined rules for matching.
> I can get my program to run by calling the
> Rete.run() method throughout the program, but that is
> not giving me the desired results. When I use
> the Rete.runUntilHalt() method, my program
> hangs. Not even a System.out.println() gets
> run. 
> 
> With using the XML extensions, I need to
> call: 
> (load-package XMLFunctions)
> (CreateID)
> (LoadXML <filename>)
> //define a rule that will cause the XML to be parsed
> (defrule rule1 (......=> (ParseXML ?x ?u))
> //This run will cause the XML to be parsed into facts
> (run)
> (batch jessRulesFile)
> (run)
> 
> I am wondering how to put the above in a loop
> and use the runUntilHalt() method.
> 
> 
> Thanks.
> Bob
> 
> 
> 
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



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