Just call kSession.dispose() and create another kSession from the Knowledge Base.<br>Session creation is cheap enough.<br><br>-W<br><br><br><div class="gmail_quote">On 15 December 2010 09:59, saynyshy <span dir="ltr"><<a href="mailto:saynyshy@gmail.com">saynyshy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello!<br>
<br>
I really need help and advice.<br>
<br>
I'm using StatefulKnowledgeSession();<br>
in loop I want to check Listls;<br>
I have three rules.<br>
(in rules I add some more objects to memory drools.insert(listOfLongIds);<br>
drools.insert(listOfFloatAmounts); drools.insert(listOfStringNames);)<br>
<br>
How can I remove all objects used for current element ls[i] checked in<br>
rules,<br>
and continue session with no objects to check the next one?<br>
<br>
Waiting for reply<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/How-to-continue-session-but-remove-all-objects-tp2090965p2090965.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/How-to-continue-session-but-remove-all-objects-tp2090965p2090965.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>