Hi,
In my drools 6.5 application we were reusing StatefulKnowledgeSession. After execution of rules we were delete all facts from the working memory using:
for (FactHandle fact : session.getFactHandles()){
inputProcessorSession.retract(fact);
}
I upgrade the application to drools 7.60 we started reusing kieSession such that i would delete all the facts from working memory using below code :
List<FactHandle> handlesToRetract = new ArrayList<>(factHandles);
for (FactHandle handle : handlesToRetract) {
inputProcessorSession.retract(handle);
}
But in drools 7.60 When I the drools session again I am seeing already retracted objects in my working memory.
I have verified that we are not inserting any fact again.