Re: [rules-users] Import Existing DRL in Guvnor never finishes
Hi, what version? 5.0.1.GA? Have you changed Jackrabbit's backend or are you using the default settings? Cheers, Jarek Steve Ronderos wrote: Hello All, I'm experiencing an issue importing an existing DRL into Guvnor, we made a sample DRL file containing 1000 very simple rules that look something like this: rule testa4 dialect mvel when IOption( selected == false id == 9934 ) messageSection : INode( id == Drivers ) then messageSection.setValidationMessage( null ); messageSection.setValidationMessageDuration( null ); end Each rule has a unique name. The problem is that the import hasn't finished (after over 2 hours) and when we look at the resources that have been imported they have 24 revisions each. It looks like Guvnor is importing the file over and over again. Has anyone experienced anything like this? Thanks, Steve Ronderos ___ 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] error in writing test scenarios
Hi, please provide some more details. Maybe a screen shot of your test scenario would do. It might be also useful to see your rules. Cheers, Jarek VÅM§Ï ® wrote: Hi , While writing the test scenarios,after pressing run scenario button i m getting the below error in the server and showing an alert technical error in the front end . at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.reflect.InvocationTargetException please tel me reason behind that . regards, Vamsi Krishna.Kavuri. http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html ___ 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] matching multiple facts in a rule using a DSL template
Okey, I should have spend more time with DSL... I didn't know it was possible to use a matching pattern either for variable name : [when] there is {name} as {key}={key} : Variable(id == {name}) Sorry for unnecessary posting, have a nice day. Erik On Tue, 28 Jul 2009 17:43:04 +0200, Erik Clairiot e...@clairiot.com wrote: Hello, I recently started to use DSL template within my rules. In the LHS, I oftenly match conditions against multiple facts, facts that I want to modify in the RHS. example : when $v1 : Variable(id == A) $v2 : Variable(id == B) then $v1.setFoo(); end If I write a dsl template like that : [when] there is {id}=v:Variable(id == {id}) [then] foo me=v.setFoo(); and a dsl rule like that when there is A there is B then foo me end the execution will produce the error Duplicate declaration for variable ... I understand why it occurs. how to specify a constraint upon the fact matched ? Dunno if it is possible, my opinion will be to create another dsl rule, that is supposed to match with the foo me, but it does not seem to be very convenient. Is there a way to use an array for variable assignement in the RHS ? like [when] there is {id}=v[]:Variable(id == {id}) [then] foo me=v[].setFoo(); and use it in the RHS of the rule like when there is A there is B then foo me [0] // will cause foo me on the first matched fact end There are a lot of chances this does not exist, and works like that, maybe I am not using DSL well and it is bad idea to match multiple fact with the same dsl template. Can someone help me on that ? It is just a question, I am not stuck on this, but interested on how to deal with that. Thanks. Erik ___ 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] Using ArrayList as global in DRL file
Hi, I am setting an ArrayList as a Global on my drools session by saying ... StatefulSession drlSession = getRuleManager().getSession(); drlSession.setGlobal(myMailingList, myMailingList); then in my Drl file, I send the same arrayList as a parameter to the setter of another object by saying... package com.test.rules; import java.util.ArrayList; global java.util.ArrayList myMailingList; rule Test salience 100 no-loop true when $o:MyObject(some condition) $d:Destination() then $d.setFieldMember(myMailingList) end So, based on some condition/field value in MyObject I want to set the Destination with the arraylist - myMailingList. Is the way I specify/refer the ArrayList in the then part fine. Because I am always getting unable to compile test.drl file - runtime exception. Could some one please help me with this. -thnx ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Using ArrayList as global in DRL file
Does your Destination class have a field FieldMember? -W 2009/7/29 Divya Rajendranath divya.rajendran...@gmail.com Hi, I am setting an ArrayList as a Global on my drools session by saying ... StatefulSession drlSession = getRuleManager().getSession(); drlSession.setGlobal(myMailingList, myMailingList); then in my Drl file, I send the same arrayList as a parameter to the setter of another object by saying... package com.test.rules; import java.util.ArrayList; global java.util.ArrayList myMailingList; rule Test salience 100 no-loop true when $o:MyObject(some condition) $d:Destination() then $d.setFieldMember(myMailingList) end So, based on some condition/field value in MyObject I want to set the Destination with the arraylist - myMailingList. Is the way I specify/refer the ArrayList in the then part fine. Because I am always getting unable to compile test.drl file - runtime exception. Could some one please help me with this. -thnx ___ 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] 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] Import Existing DRL in Guvnor never finishes
Sorry, I probably should have included that information. We are using 5.0.1.GA, Jackrabbit is configured to store the data in an Oracle database. Is there any other information I can provide? Thanks, Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 01:33:31 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 01:39 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi, what version? 5.0.1.GA? Have you changed Jackrabbit's backend or are you using the default settings? Cheers, Jarek Steve Ronderos wrote: Hello All, I'm experiencing an issue importing an existing DRL into Guvnor, we made a sample DRL file containing 1000 very simple rules that look something like this: rule testa4 dialect mvel when IOption( selected == false id == 9934 ) messageSection : INode( id == Drivers ) then messageSection.setValidationMessage( null ); messageSection.setValidationMessageDuration( null ); end Each rule has a unique name. The problem is that the import hasn't finished (after over 2 hours) and when we look at the resources that have been imported they have 24 revisions each. It looks like Guvnor is importing the file over and over again. Has anyone experienced anything like this? Thanks, Steve Ronderos ___ 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
[rules-users] Problem when deploying Guvnor to glassfish v2.1 cluster
Hi All, I have encountered a problem when deploying the latest Guvnor to glassfish v2.1 cluster. Below is the return: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;htmlheadtitleS un GlassFish Enterprise Server v2.1 - Error report/titlestyle type=text/css!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7 6;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7 6;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7 6;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white; } B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7 6;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s ize:12px;}A {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 404 - Servlet securityService is not available/h1hr/pbtype/b Status report/ppbmessage/bServlet securityService is not available/ppbdescription/bThe requested resource (Servlet securityService is not available) is not available./phr/h3Sun GlassFish Enterprise Server v2.1/h3/body/html Any ideas? Thanks, Jing ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Import Existing DRL in Guvnor never finishes
Do you see the same issue when using the Jackrabbit's built-in Derby DB? Steve Ronderos wrote: Sorry, I probably should have included that information. We are using 5.0.1.GA, Jackrabbit is configured to store the data in an Oracle database. Is there any other information I can provide? Thanks, Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 01:33:31 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 01:39 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi, what version? 5.0.1.GA? Have you changed Jackrabbit's backend or are you using the default settings? Cheers, Jarek Steve Ronderos wrote: Hello All, I'm experiencing an issue importing an existing DRL into Guvnor, we made a sample DRL file containing 1000 very simple rules that look something like this: rule testa4 dialect mvel when IOption( selected == false id == 9934 ) messageSection : INode( id == Drivers ) then messageSection.setValidationMessage( null ); messageSection.setValidationMessageDuration( null ); end Each rule has a unique name. The problem is that the import hasn't finished (after over 2 hours) and when we look at the resources that have been imported they have 24 revisions each. It looks like Guvnor is importing the file over and over again. Has anyone experienced anything like this? Thanks, Steve Ronderos ___ 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 ___ 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
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
Re: [rules-users] Import Existing DRL in Guvnor never finishes
The same import worked on a fresh stand-alone version of Guvnor v. 5.0.1.GA which is using Jackrabbit's built in Derby DB. Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 10:53:41 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 10:57 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Do you see the same issue when using the Jackrabbit's built-in Derby DB? Steve Ronderos wrote: Sorry, I probably should have included that information. We are using 5.0.1.GA, Jackrabbit is configured to store the data in an Oracle database. Is there any other information I can provide? Thanks, Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 01:33:31 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 01:39 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi, what version? 5.0.1.GA? Have you changed Jackrabbit's backend or are you using the default settings? Cheers, Jarek Steve Ronderos wrote: Hello All, I'm experiencing an issue importing an existing DRL into Guvnor, we made a sample DRL file containing 1000 very simple rules that look something like this: rule testa4 dialect mvel when IOption( selected == false id == 9934 ) messageSection : INode( id == Drivers ) then messageSection.setValidationMessage( null ); messageSection.setValidationMessageDuration( null ); end Each rule has a unique name. The problem is that the import hasn't finished (after over 2 hours) and when we look at the resources that have been imported they have 24 revisions each. It looks like Guvnor is importing the file over and over again. Has anyone experienced anything like this? Thanks, Steve Ronderos ___ 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 ___ 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] 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] Import Existing DRL in Guvnor never finishes
Ok, last thing, can you post your repository.xml file? When that is fine, then I would blame everything else than Guvnor (connection, oracle, ...). BTW, which version of Oracle? Steve Ronderos wrote: The same import worked on a fresh stand-alone version of Guvnor v. 5.0.1.GA which is using Jackrabbit's built in Derby DB. Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 10:53:41 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 10:57 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Do you see the same issue when using the Jackrabbit's built-in Derby DB? Steve Ronderos wrote: Sorry, I probably should have included that information. We are using 5.0.1.GA, Jackrabbit is configured to store the data in an Oracle database. Is there any other information I can provide? Thanks, Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 01:33:31 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 01:39 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi, what version? 5.0.1.GA? Have you changed Jackrabbit's backend or are you using the default settings? Cheers, Jarek Steve Ronderos wrote: Hello All, I'm experiencing an issue importing an existing DRL into Guvnor, we made a sample DRL file containing 1000 very simple rules that look something like this: rule testa4 dialect mvel when IOption( selected == false id == 9934 ) messageSection : INode( id == Drivers ) then messageSection.setValidationMessage( null ); messageSection.setValidationMessageDuration( null ); end Each rule has a unique name. The problem is that the import hasn't finished (after over 2 hours) and when we look at the resources that have been imported they have 24 revisions each. It looks like Guvnor is importing the file over and over again. Has anyone experienced anything like this? Thanks, Steve Ronderos ___ 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 ___ 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] Relation between Guvnor and Expert in Drools5.0
Sumant Kumar wrote: 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 ?. Almost. https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html_single/index.html#d0e1337 I guess all you need (the engine for now) is in Drools 5.0 Binaries http://jboss.org/drools/downloads.html You might be also interested in the latest bits from trunk: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ 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 mailto:vpan...@mdes.ms.gov *To:* Rules Users List rules-users@lists.jboss.org mailto: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 [mailto: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 mailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org
[rules-users] Accessing drools rule file in a jar
Hi All, I'm trying to load a pkg file by RuleAgent. I use the following in the class DroolsRuleProcessor in the package com.example: ** String packageFILE = com.example.rule1.pkg; URL u = DroolsRuleProcessor.class.getResource(packageFILE); Properties props = new Properties(); props.setProperty(file, u.getFile()); RuleAgent ag = RuleAgent.newRuleAgent(props); ** The package file com.example.rule1.pkg is put under the same java package as DroolsRuleProcessor (i.e., com.example). The above code works fine when executing locally. However, error occurs when I try to execute it remotely. I pack the class DroolsRuleProcessor with the pkg file com.example.rule1.pkg into a jar, put the jar into an ear file and deploy the ear to a server. The RuleAgent cannot find the pkg file. I guess the reason might be that RuleAgent uses new File(...) to access and read the file. However, new File(...) cannot get the file that is contained a jar. So how can I access the pkg file using RuleAgent in this case? Thanks, Jing ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] How to define an Enumeration when using Guided Editor in Eclipse?
Hi all Probably a simple question, but I did not find any hint on this topic. I am using drools 5.0 in eclipse. There I started to write business rules with the guided editor. Now I like to introduce some enumeration for some attributes in my model. In the web based version Guvnor is this no big deal, there you have the option to add new enumerations. But how can you achieve the same thing in eclipse? I studied the package file syntax, but there I found no such option (or it is not documented). Any suggestions and hints? Many thanks for your help in advance. regards Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Problem Sharing rules between Rule Flow group
Using 4.0.7 version Our requirement is we need to share rules between different projects. So we have grouped the rules into ruleflow group say Group A has 2 rules, GroupB has 4 rules.Shared GroupB i.e 4 rules in different projects X,Y. Now the business requirement changed for project Y in GroupB one of the rule doesnt satisfied. Solution : Divide the rule flow groupB into GroupB 3 rules ,Group C 1 rule but we need to test both the projects we dont want to do that . Please let me know any other solution ? Can a rule be part of different rule flow groups as shown below. rule Rule3 ruleflow-group GroupB,Group X Cheers Surya. -- View this message in context: http://www.nabble.com/Problem-Sharing-rules-between-Rule-Flow-group-tp24728106p24728106.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