Well, the subject of your email says "...remove <b>all </b>objects", but now you say you want to keep them...<br><br>What's the distinction between the facts you want to keep and the ones you want to retract? If they are in separate classes, it's simple: either with a few rules or use kSession.getObjects(), with or without a filter, and call retract from Java code.<br>
<br>-W<br><br><br><div class="gmail_quote">On 15 December 2010 12:02, 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>
Thanks, for you advice,<br>
<br>
but is there any possibilities to realize it to use only one session<br>
(without new creation for each object from list)<br>
because now it is "cheap", but in great size of list<br>
and amount of rules it shouldn't be more so productive :-S<br>
<br>
I need to use one session for all objects.<br>
<br>
Is it possible (without new session creation)???<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-tp2090965p2091348.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/How-to-continue-session-but-remove-all-objects-tp2090965p2091348.html</a><br>
</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>