Is there a simple way to fire a rule when a fact is about to be retracted? I
have a case where references to a fact are stored in other facts. So, when
the first fact is retracted, I'd like to be able to fire a rule to go
clean-up the references to it. Is there a simple way to do that? I tried
putting a not statement around a match for the fact, but it doesn't seem to
fire. Plus, I'll need to access the fact itself before it's actually gone. I
need a trigger that it's about to be removed, so I can access its fields. 

I apologize in advance if this is a silly question. I'm still trying to get
my mind wrapped around how to do things in a rules engine. I'm running the
engine from a Java application. I'm loading the rules from a .clp file and
the Java side is asserting and retracting the facts. So, I guess I could
assert a "clean-up xyz" fact and run() the rules before I actually retract
"xyz". So, I'd just add a rule that matches on the "clean-up xyz" fact to do
the clean-up. Would this be a good approach? Or is there a cleaner way to
trigger a rule when the initial fact is retracted? 

Thanks,

Eric

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