Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Retracted facts remain in working memory after upgrading from drools 6.5 to 7.60

38 views
Skip to first unread message

Hardik Chawla

unread,
Jan 31, 2025, 11:37:50 AMJan 31
to Drools Setup
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.




Hardik Chawla

unread,
Jan 31, 2025, 12:23:33 PMJan 31
to Drools Setup
FYI this is just for the fact which is declared in the drl file

Hardik Chawla

unread,
Feb 19, 2025, 7:45:25 PMFeb 19
to Drools Setup
is there any update on this
Reply all
Reply to author
Forward
0 new messages