Yet another option to experiment with: use a listener to feed back trigger
facts in the WM
ksession.addEventListener( new WorkingMemoryEventListener() {
public void objectInserted(ObjectInsertedEvent event) {}
public void objectUpdated(ObjectUpdatedEvent event) {}
public void objectRetracted(ObjectRetractedEvent event) {
if( ... ) { ... ksession.insert() ... }
}
});
Actually, "closure callbacks" have already been discussed and will probably
be provided soon
Davide
--
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.