Just call kSession.dispose() and create another kSession from the Knowledge Base.
Session creation is cheap enough.
-W
Hello!
I really need help and advice.
I'm using StatefulKnowledgeSession();
in loop I want to check Listls;
I have three rules.
(in rules I add some more objects to memory drools.insert(listOfLongIds);
drools.insert(listOfFloatAmounts); drools.insert(listOfStringNames);)
How can I remove all objects used for current element ls[i] checked in
rules,
and continue session with no objects to check the next one?
Waiting for reply
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-continue-session-but-remove-all-objects-tp2090965p2090965.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users