[rules-users] How to execute a rule only when a fact is retracted
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Oct 17 13:59:31 EDT 2012
On 17/10/2012, Greg Barton <greg_barton at yahoo.com> wrote:
> And if you can't modify the original fact class, like Wolfie says below,
> insert a control fact that points back to the original, and have rules match
> off of that:
>
> class RetractionHandler {
> public OriginalFactClass theDoomedFact;
> }
>
It's probably sufficient to have one generic class for all kinds of doomies:
class RetractionHandler {
public Object theDoomedFact;
}
-W
More information about the rules-users
mailing list