Run-until-halt remains running until some code on some RHS (or in
another thread, maybe) calls halt. So, it would be better to start the
thread-for-inserting-shadow-facts before the run-until-halt call.

-W

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Joao Carlos Mourao
Sent: Dienstag, 18. August 2009 09:41
To: [email protected]
Subject: JESS: problems when using a clear

Hello,

I'm trying to implement a method to restart the rule engine by using the
clear command. The idea is before running, clear everything (using
clear), add all the facts available, and run the engine with the command
(run-until-halt). Although, every time i make use of clear command, the
rule engine blocks, and even if i insert new rules or facts, no rule
becomes active, its seems that is blocked. The procedure that i follow
is with two functions, start and stop, like following:

start:
    (clear)
    (insert-rules-and-templates-using-batch)
    (reset)
    (run-until-halt)
    (start-thread-for-inserting-shadow-facts)

stop:
    (halt)

Can anyone tell me what i'm doing wrong?

Thanks in advance,

Joao

------------------------
unclassified


------------------------------------------------------------------------
------------------------------------
Disclaimer:

If you are not the intended recipient of this email, please notify the
sender and delete it. 
Any unauthorized copying, disclosure or distribution of this email or
its attachment(s) is forbidden. 
Thales Nederland BV will not accept liability for any damage caused by
this email or its attachment(s). 
Thales Nederland BV is seated in Hengelo and is registered at the
Chamber of Commerce under number 06061578.
------------------------------------------------------------------------
------------------------------------



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