Insert a fact that says "retracted" and write a rule matching that.
Or, even simpler, execute whatever is required together with the retraction
of that fact.
-W
On 17/10/2012, dme1 <mehtad(a)hotmail.com> wrote:
Hi,
How can I ensure that a rule is executed only when a fact is retracted. If
I
implement the rule using a "not" condition it will execute even when the
object was never inserted into the working memory. Is there a way to
implement the rule such that it will not execute when a fact is never
inserted into the working memory, but executes only when the fact is
retracted from the working memory.
Thanks,
dme
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-execute-a-rule-only-when-a-fact-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users