Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-22 Thread Michael Anstis
When I said "at runtime" I meant during the normal course of your application's operation - obviously KnowledgeBase's need to be set up in some shape or form at runtime (initialisation)!! :-) On 22 October 2010 19:22, Michael Anstis wrote: > Sure, check out KnowledgeBase's removeRule(String, Str

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-22 Thread Michael Anstis
Sure, check out KnowledgeBase's removeRule(String, String) method. Modifications to you KnowledgeBase are going to be more expensive than with Sessions, so ask yourself whether manipulating KnowledgeBase's at runtime is something you really want to be doing when you (probably) will be able to get i

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-22 Thread rouvas
Michael Anstis wrote: > If you use a StatelessKnowledgeSession you won't need to remove the old > facts. > > If however you want to use a StatefulKnowledgeSession for other reasons > the > insert method returns a FactHandle that can be later used to retrieve the > fact: ksession.retract(factHandle)

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-20 Thread Michael Anstis
If you use a StatelessKnowledgeSession you won't need to remove the old facts. If however you want to use a StatefulKnowledgeSession for other reasons the insert method returns a FactHandle that can be later used to retrieve the fact: ksession.retract(factHandle). Please refer to the documenation

[rules-users] How can i delete any object after executing the rules from the memory.

2010-10-20 Thread nkumar
Hi.. I want to delete the objects which i inserted earlier to execute the rules upon. Why i want this is i have two lists containing 20 objects of two different classes. for every combination i am assigning some values to the class variables in the rule file. So at any single time i want to exec