Title: Message
Hi all,
 
I posted the same question some weeks ago. I thought at that time that my problem was fixed... but it seems now that I was wrong! So I will explain it again...
 
My one thread program works more or less as follow:
        1. Add facts 
        2. Run engine in order to check some things (through Rete#runUntilHalt())
        3. I stop the engine by calling (halt) from a rule that has an established salience of -100 which show a message like "ENGINE HAS STOPPED". This rule is fired when there is no one else left.
        4. Add more fatcs and modify some existing facts (these facts have inconsistent information until all of them are added)
        5. Check again all fact calling Rete#runUntilHalt())
        6. Stop engine...
        7. And so on ...
 
I have no problems when I add facts at the begining becase the engine is not still runing. Although before I run the engine in the step 2, and later on stops, it seems that when I add more facts or modify some actual facts, the
engine throws some unexpected errors due to the inconsistent facts... but the engine's supposed to be not running... If this could help I add and modify all those facts from differents java's functions.
 
I'v already tryed to user just Rete#run() because 'run' stops by itself but it doesn't work anyway.
 
This is my problem and is driving my crazy so I will appreciate any help... Thanks a million,
 
                                                                                                                                Félix.                                                                                                                      
 
 
 

Reply via email to