I think [EMAIL PROTECTED] wrote: > > > > Have the last rule call some Java function to indicate > > that the > > processing is done -- i.e., use a callback. > > How do you know what is the last rule? Is it the order > they are loaded? >
No, you have to just know, in some problem-dependent way. If this isn't possible, then you could use salience -- a rule named "processing-complete" with a low salience so that it won't fire until no other rules are pending. > > Calling reset() would remove other facts added in by > different clients. Having the last rule that needs the > fact delete it is sketch for me because the fact may be > used by multiple rules. If I can determine what is the > last rule, then I could have it match the fact and > delete it. > Salience may be your best bet. --------------------------------------------------------- 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] --------------------------------------------------------------------