Thank you very much~ 1- You don't "retract", you can set it to null, same way as set to an object. Is it in java or in drool? If I understand correct, global variable is not really inserted into the working memory,right? Global just ensure drool can see the variable? 2-Several ways, simple is to use KnowledgeSession's getFactHandles, and retract them. Or dispose the entire Session, and create another one, which might be faster. You mean the working memory belongs to the Session not knowledgeBase? Because I have to keep the knowledgebase running all the time, I have to ensure each fire() don't leave any useless facts in the working memeory.
-- View this message in context: http://drools.46999.n3.nabble.com/How-to-make-the-working-memory-clean-tp3790730p3791905.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users