[rules-users] How to continue session, but remove all objects?

Wolfgang Laun wolfgang.laun at gmail.com
Wed Dec 15 05:21:31 EST 2010


Just call kSession.dispose() and create another kSession from the Knowledge
Base.
Session creation is cheap enough.

-W


On 15 December 2010 09:59, saynyshy <saynyshy at gmail.com> wrote:

>
> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101215/18ced215/attachment.html 


More information about the rules-users mailing list