When an event comes, check the type. WHen a fact is asserted, you'll get the constant JessEvent.FACT; if it's being retracted, the type is JessEvent.FACT + JessEvent.REMOVED .

On Oct 30, 2008, at 11:30 AM, levent kent wrote:

Hello,

one can catch the asserted and retracted facts in the knoledgebase by setting the event mask to JessEvent.FACT. How about catching only asserted facts(not retracted) or is there anyway to discriminate between them?

thanks,

--
Levent Kent

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.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]
--------------------------------------------------------------------

Reply via email to