I think Igor Gorbunov wrote: > Oh, thank you so much for such a detailed help, > Ernest! I'm yet to try your scenario (it requires > certain changes in my Java program, and I needed to > read Jess manual to understand how modules work).
It's pretty simple actually - should require very little work on your part. > > Meanwhile, could you tell me please, if the approach > below is workable too? What if I try to implement "not > (count) even after need-count was asserted" almost > literally? > > (defrule satisfy-need-count > (need-count (since ?S) (till ?T)) > => > (assert-counts-if-possible) > ;;retrieves and asserts a bunch of counts from DB > (assert (tried-to-create-counts (since ?S) (till ?T))) > ;;asserts a single flag for the whole group of > counts > ) > > (defrule deal-with-countless-user > (tried-to-create-counts (since ?S) (till ?T)) > (not (count ... (since ?S) (till ?T)) > => > (do-my-stuff) > ) > > It seems like it should work, and looks very similar > to what you had advised in your previous reply, right? This looks as though it could work, but managing the since/till intervals seems like it could be tricky business. > > Best regards, > Igor --------------------------------------------------------- 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] --------------------------------------------------------------------
