[rules-users] Organizing Rules in Large Enterprise across multiple business lines
Can any body suggest the way to oraganize and share rules for mutiple business lines with each having multiple apps Basically I am looking at Business Rule management , development and deployment best practices across the organization taking into consideration all Business Units that needs Rule based apps. option 1) Have one run time deployment (Expert engine) for all these apps with large memory. option 2) Have one BRMS/Repository for all the rules in the enterprise across the business lines and then a sperate run-time for each app/business unit ? If we assign a package for entire rules in a Business unit or BU_App can we have permissions around package so that certain project teams can work on those packages but not others. Option 3) Should one team be responsible for all the rules in an enterprise ( across BUs ) and provide decision services to the corresponding apps in each BU ? Any references on web is great!! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Guvnor Remoting API
I am also lookign for similar features(API) from Guvnor. I am using Eclipse Drools Plugin. I want to build the rules on IDE and deploy the compiled rules package to Guvnor and want the Rules app to use the packages from Guvnor URL. Also is there a way to make Guvnor use SVN instead of JCR? thanks Sumant From: Steve Ronderos steve.ronde...@ni.com To: rules-users@lists.jboss.org Sent: Tuesday, August 4, 2009 11:42:33 AM Subject: [rules-users] Drools Guvnor Remoting API Hello Again, I asked a question similar to this awhile back, David Sinclair answered some of my questions, but I'm still looking for a few features. Here is my use case. We are deploying Guvnor to an enterprise environment. We plan on having one Guvnor for our rule authors to create/edit rules in. We plan on using selectors to control which rules are included into packages that are built for different environments (development, test, production). We can't have our application that use rules pointing directly at the Guvnor instance. We want an automated deployment process. Here is what I was thinking. I would like to be able to invoke a build, using a specified selector, then create a snapshot that follows a specific naming convention (ie with the selector's name in the snapshot name), in sequence. In order to do this, I would like to, from a remote application, tell Guvnor to do a build, then to do a snapshot. So essentially what I'm asking for is a remoting API for Guvnor's features. I've looked through some of the Guvnor code and I believe I see that there is a remote API for the drools-repository that Guvnor sits on, but what I need is specifically Guvnor's features to be made available in a remoting API. Does anyone know if such a thing exists? If not is it planned? If not, am I even asking for a desirable feature? Thanks, Steve Ronderos ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] MySQL and Derby issues with Guvnor
Thanks. This worked. I deleted the records in the tables and repository folder. From: Bhamidi, Krishna krishna.bham...@qwest.com To: Rules Users List rules-users@lists.jboss.org Sent: Thursday, July 30, 2009 5:36:53 PM Subject: Re: [rules-users] MySQL and Derby issues with Guvnor Delete the repository directory on the server domainroot. Delete all tables in the database created by guvnor , and try to bring up guvnor again, it shouls come up. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Sumant Kumar Sent: Thursday, July 30, 2009 5:12 PM To: Rules Users List Subject: [rules-users] MySQL and Derby issues with Guvnor Hi , I have changed the defualt Derby DB to MySQL DB for the JacRabbit in Guvnor. I see this below exception when I try to bring up the JBOSS AS and Guvnor. Any idea what is the issue 2009-07-30 16:58:09,499 INFO [STDOUT] (main) ERROR 30-07 16:58:09,499 (BundleDbPersistenceManager.java:storeBundle:1270) failed to write bundle: cafebabe-cafe-babe-cafe-babecafebabe ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL090729054055150' defined on 'DEFAULT_BUNDLE'. Is there a way to get rid of JacRabbit and use more robust Implemenentation of JCR. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] MySQL and Derby issues with Guvnor
Hi , I have changed the defualt Derby DB to MySQL DB for the JacRabbit in Guvnor. I see this below exception when I try to bring up the JBOSS AS and Guvnor. Any idea what is the issue 2009-07-30 16:58:09,499 INFO [STDOUT] (main) ERROR 30-07 16:58:09,499 (BundleDbPersistenceManager.java:storeBundle:1270) failed to write bundle: cafebabe-cafe-babe-cafe-babecafebabe ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL090729054055150' defined on 'DEFAULT_BUNDLE'. Is there a way to get rid of JacRabbit and use more robust Implemenentation of JCR. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Relation between Guvnor and Expert in Drools5.0
Thanks Vijay. I think I have few more questions. 1) Does Guvnor include the runtime or Rule engine it self ? I could create rule and execute it in Guvnor so does this mean it has Expert included in it. 2) When a end user/app executes/fires a rule where is the rule runtime, is it the client JVM or Guvnor JVM ? In other words are rules executed in Guvnor that are packaged and made available on Guvnor or will they be marshalled to the client calling the rule and executed in client JVM. 3) Can you give an example of Drools5.0 deployment pattern. How Guvnor,Expert and J2EE app will communicate. thanks Sumant From: Vijay Pandey vpan...@mdes.ms.gov To: Rules Users List rules-users@lists.jboss.org Sent: Tuesday, July 28, 2009 5:52:07 PM Subject: Re: [rules-users] Relation between Guvnor and Expert in Drools5.0 Guvnor àThis can be used to manage your rules specifically termed as BRMS (Business Rules Management System). This can really play its part from the “governance” perspective in your company/enterprise/project. Take a look at this URL http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html#d0e78 mainly section 1.1.1 Expert àThis is the actual runtime/development module for the rule engine. Take a look at this part (Chapter 3 – Installation and Setup) of the documentation http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-introduction/html_single/index.html#d0e1322 this should help your understanding of various jars and the modules Regards, Vijay From:rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Sumant Kumar Sent: Tuesday, July 28, 2009 4:35 PM To: Rules Users List Subject: [rules-users] Relation between Guvnor and Expert in Drools5.0 Hi All, Can you throw some light on Relation between Guvnor and Expert components in Drools5.0. Guvnor sounds like BRMS so does it have Rule engine ( or runtime) to execute rules ?. Is Expert module part of Guvnor ? If Guvnor doesn't have rule engine how does it excute rule when we do QA. I cannot find Expert module for down load. Is Rule engine runtime bunch of jars ( Drools-core.jar etc ) thanks Sumant ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Relation between Guvnor and Expert in Drools5.0
Thank you Jarek. Where does Drools Expert component fit in. Is Drools EXPERT essentially drools-api.jar and drools-core.jar and some other dependent jars ?. I am not sure why Jboss is not wraping them as component and call it Expert. thanks Sumant From: Jaroslaw Kijanowski kijanow...@gmail.com To: Rules Users List rules-users@lists.jboss.org Sent: Wednesday, July 29, 2009 12:09:40 PM Subject: Re: [rules-users] Relation between Guvnor and Expert in Drools5.0 Hi, Sumant Kumar wrote: Thanks Vijay. I think I have few more questions. 1) Does Guvnor include the runtime or Rule engine it self ? I could create rule and execute it in Guvnor so does this mean it has Expert included in it. Yes (you can have a look at the WEB-INF/lib dir to see what exactly is shipped). 2) When a end user/app executes/fires a rule where is the rule runtime, is it the client JVM or Guvnor JVM ? In other words are rules executed in Guvnor that are packaged and made available on Guvnor or will they be marshalled to the client calling the rule and executed in client JVM. Rules are only executed in Guvnor when run in a test scenario. Rules are exposed by Guvnor in form of compiled packages. You can use them in your local Drools application through a Drools Agent [1]. 3) Can you give an example of Drools5.0 deployment pattern. How Guvnor,Expert and J2EE app will communicate. One option is the Drools Agent. Cheers, Jarek [1] https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-guvnor/html_single/index.html#d0e1053 thanks Sumant *From:* Vijay Pandey vpan...@mdes.ms.gov *To:* Rules Users List rules-users@lists.jboss.org *Sent:* Tuesday, July 28, 2009 5:52:07 PM *Subject:* Re: [rules-users] Relation between Guvnor and Expert in Drools5.0 Guvnor à This can be used to manage your rules specifically termed as BRMS (Business Rules Management System). This can really play its part from the “governance” perspective in your company/enterprise/project. Take a look at this URL http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html#d0e78 mainly section 1.1.1 Expert à This is the actual runtime/development module for the rule engine. Take a look at this part (*Chapter 3 – Installation and Setup*) of the documentation http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-introduction/html_single/index.html#d0e1322 this should help your understanding of various jars and the modules Regards, Vijay *From:* rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] *On Behalf Of *Sumant Kumar *Sent:* Tuesday, July 28, 2009 4:35 PM *To:* Rules Users List *Subject:* [rules-users] Relation between Guvnor and Expert in Drools5.0 Hi All, Can you throw some light on Relation between Guvnor and Expert components in Drools5.0. Guvnor sounds like BRMS so does it have Rule engine ( or runtime) to execute rules ?. Is Expert module part of Guvnor ? If Guvnor doesn't have rule engine how does it excute rule when we do QA. I cannot find Expert module for down load. Is Rule engine runtime bunch of jars ( Drools-core.jar etc ) thanks Sumant ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Integrating Drools5.0 into J2EE APP
Thanks for your response. Can we configure Guvnor to use existing production SVN repository for version managment like we do for other java projects ? thanks Sumant From: Mauricio Salatino sala...@gmail.com To: Rules Users List rules-users@lists.jboss.org Sent: Monday, July 27, 2009 6:34:35 PM Subject: Re: [rules-users] Integrating Drools5.0 into J2EE APP 2009/7/27 Sumant Kumar amul...@yahoo.com: Hi, Can somebody describe in a high level how the Drools components ( Guvnor,Expert, etc) are integrated into J2EE app. I am looking for these items as part of Drools deployment configuration 1) How are rules saved ( File system or DB ) In guvnor (JCR) 2) How is rule versioning enabled ( with Subversion ) In guvnor (JCR) 3) Rules and RuleSet granularity . How many rules should go in one DRL. It depends on your business model 4) Facts: Are facts defined as POJOs and uploaded to Drools or Declarative FACTs are defined in Drools Guvnor In guvnor (JCR) Any links over the web will be great too. thanks Sam ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Run Drool Application From Command Prompt
try including ANTLR.jar in your classpath. From: pankaj.j...@lntinfotech.com pankaj.j...@lntinfotech.com To: rules-users@lists.jboss.org Sent: Tuesday, July 28, 2009 12:50:29 AM Subject: Re: [rules-users] Run Drool Application From Command Prompt Hi I still have not got any solution of my problem that I posted previously. I have included all required jar files and set proper class path .. Please do help ? problem: I am trying to integrate Drool with ofbiz and run application from command prompt. In one way I have integrated it properly and I am able to run it successfully. Code : Which I was using initially KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); or PackageBuilderConfiguration cfg = new PackageBuilderConfiguration(); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); Exception I got : org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java :org.drools.rule.builder.dialect.java.JavaDialectConfiguration' at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:274) at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:259) at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:176) at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:153) at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:242) . . . Caused by: java.lang.NullPointerException at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:92) at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:55) at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:270 Problem I found : In the class JavaDialectConfiguration in jar file drools-compiler.jar there is a method named setCompliler, in this method Null Pointer Exception was coming. Solution I provided : In my application I created my custom class CustomJavaDialectConfiguration by extending to class JavaDialectConfiguration, In this class I overrided the method setCompiler. My method was exactly same as that of method setCompiler in JavaDialectConfiguration . To call my dialect class I also overrided the method addDialect of PackageBuilderConfiguration class . For that I created class CustomPackageBuilderConfiguration by extending to PackageBuilderConfiguration. after that I wrote the code: PackageBuilderConfiguration cfg = new CustomPackageBuilderConfiguration(); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(cfg); Now application is running perfectly fine from both eclipse and command prompt without any exception. I want to know as my overrided method setCompiler was exactly same then why I had to override method, and In original code (ie in drools-compiler.jar file) why it was giving exception ??? Was that due to class lader or something else ?? Please do help in this regard Thanks Regards: Pankaj Jain | LT infotech |Navi Mumbai Mobile: +91 9920218945 Email : pankaj.j...@lntinfotech.com www.Lntinfotech.com Whatever the mind of man can conceive believe, it can achieve. Larsen Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: LT Infotech Proprietary LT Infotech Confidential LT Infotech Internal Use Only LT Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __ ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Integrating Drools5.0 into J2EE APP
Hi, Can somebody describe in a high level how the Drools components ( Guvnor,Expert, etc) are integrated into J2EE app. I am looking for these items as part of Drools deployment configuration 1) How are rules saved ( File system or DB ) 2) How is rule versioning enabled ( with Subversion ) 3) Rules and RuleSet granularity . How many rules should go in one DRL. 4) Facts: Are facts defined as POJOs and uploaded to Drools or Declarative FACTs are defined in Drools Guvnor Any links over the web will be great too. thanks Sam ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users