[rules-users] Rules categorization/packages
Hello All, I am looking to organize the rules in different categories. But for distribution purposes We are creating packages for different roles/processing phases So a rule will reside in one pckage but for navigation it can belong to multiple categories So packages are like Shirts, Pants, Shoes, Sweaters Categories are Color, Material, Size, Gender and those have sub categories witin them We have rules which will device the category of the item Like "red rule", "blue rule", "cloth rule", leather rule" Now the problem we are facing is for category rules is if I define the rule in Shirt package .. then I will not be able ot use it in Pant package.. Will have to redefine it. The other problem in this scenario is If I have a price rule in Shirt package and the category is "Blue Color" and "XL Size" then I will have to put it in both categories When I put the "Blue Rule" on "Blue Category" and "XL Rule" on "XL Category" and I put the rule in both categories.. will it be an "and" relationship or will be an "OR" Regards, Amit ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] How many KnowledgeBases?
Thanks to both of you; this clears up a bunch. I would suggest perhaps that this is a FAQ. Regarding the "how would I expect it to look" question, that's valid. When I was looking through the documentation, I was looking for a way to connect to a particular rule base when I get a StatelessKnowledgeSession. I suppose I was looking for some sort of call like this: final StatelessKnowledgeSession s = knowledgeBase.newStatelessKnowledgeSession(conf, "Pricing rules"); ...where "pricing rules" would pick out a group of rules from (potentially) zillions of other rules. Or, if there were slightly more integration between Expert and Guvnor, I suppose I was looking for the ability to specify a Category at session creation time. Thanks again. Best, Laird -- View this message in context: http://n3.nabble.com/How-many-KnowledgeBases-tp218516p292085.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Proper order for resource scanners and notifiers?
Another newcomer question. I have studied the javadocs, such as they are, for KnowledgeAgentFactory. It seems to suggest, though not explicitly state, that one should invoke some combination of ResourceChangeNotifier and ResourceChangeScanner to cause the KnowledgeAgent to become aware of new rule bases. Then it says that both services must be started, even though both services are presumably not aware of each other. And none of the sample code actually seems to hook the notifier up to the scanner. Then, it also looks like the KnowledgeAgent (Impl) itself wires these two things up. But it seems to do it backwards (to my way of thinking): the scanner is added to the notifier? Somewhere around here is where my eyes start to glaze over. :-D What is the proper sequence for setting up a knowledge agent so that the file system is scanned, say, every 30 seconds? The KnowledgeAgentFactory documentation looks like it *wants* to explain this, but doesn't get all the way there. Just want to make sure I'm doing everything right. Thanks, Laird -- View this message in context: http://n3.nabble.com/Proper-order-for-resource-scanners-and-notifiers-tp291520p291520.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users