In our application, we are dynamically creating and removing rules from the engine. We are sent a set of rules that are associated with a certain module based on parameters passed to us along with the rules. We are notified when a rule is no longer needed and we remove the rule (or rules) from the engine. What we would like to do is when a module no longer contains rules; we want to remove that module from the engine. I've searched through the documentation/book/api but did not see a way to remove a module from the engine. I noticed in the mailing list that someone retrieved an iterator of modules and removed a particular one from the iterator using iterator.remove(). Is this the best way of removing modules or is there a more efficient way to accomplish this? Also, is there a simple way to determine if a module contains any rules? Thanks for any assistance.
Scott
