[rules-users] Guvnor 5.2.0 (Final) under Geronimo 2.1.4
Guvnor 5.2.0 (Final) Hello I need to get Guvnor 5.2.0 (Final) up and running under Geronimo 2.1.4 (Tomcat6 variant). Have started looking at this and have already found that there are class loading/conflict issues as the container utilises xstream 1.2.2 and the Guvnor requires 1.3.1. There are probably a whole host of other issues. Has anyone used the Guvnor under Geronimo? Any tips on getting this working much appreciated. Cheers John -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-2-0-Final-under-Geronimo-2-1-4-tp3339480p3339480.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
Re: [rules-users] Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total
Ah Okay, That kind of makes sense, although I can't seem to find any documentation on how to merge the condition column, i.e. to have to parameters in one column: Tried this to no avail (using the , as the implicit AND) Payment value $param1, value = $param2 Payment In Range 0, 1500 1500, 2000 2000, 3000 3000, 4000 4000, 5000 5000, 1 1, 15000 15000, 2 2 On Mon, Sep 12, 2011 at 8:21 AM, Swindells, Thomas [via Drools] ml-node+s46999n3328970...@n3.nabble.com wrote: If you dump out the xml it converts the spreadsheet to you can see what the resulting DRL is. Mantis is right in what the output is – if you don’t merge the condition column you’ll get a drl as below (If there exists a Condition (c1) such that its payment $param(1) AND there exists a Condition (c2) such that its payment = $param(2). If you merge the condition column the constraints apply to the same Condition object with the comma being the implicit and (if there exists a Condition c1 such that its payment $param(1) AND its payment = $param(2). ** ** Thomas ** ** *From:* [hidden email]http://user/SendEmail.jtp?type=nodenode=3328970i=0[mailto:[hidden email] http://user/SendEmail.jtp?type=nodenode=3328970i=1] *On Behalf Of *john@oa *Sent:* 09 September 2011 16:28 *To:* [hidden email]http://user/SendEmail.jtp?type=nodenode=3328970i=2 *Subject:* Re: [rules-users] Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total ** ** Thanks Manstis Actually I found that the issue was caused by me having incorrectly placed the RuleTable statement in the spreadsheet, I believe the CONDITION's in the columns are by default: AND joined. On Fri, Sep 9, 2011 at 3:57 PM, manstis [via Drools] [hidden email]http://user/SendEmail.jtp?type=nodenode=3323194i=0 wrote: Does your Condition span the two columns with the payment $param? e.g. | Condition | |-+--| |payment $param | payment = $param| |-+--| Otherwise you are creating rules that check the following:- when Condition(payment ) then ... when Condition(payment 1000) then ... Whereas you really require:- when Condition(payment 0, payment = 1000) then ... etc 2011/9/9 john@oa [hidden email]http://user/SendEmail.jtp?type=nodenode=3323110i=0 Thanks Iaune That is really helpful. Yes, I need the ranges to be mutually exclusive, what is the easiest way to do that? Feel a bit cheeky asking another question, but you seem to know what you are talking about! I have tried adding two conditions to enforce the range, but that doesn't seem to work - see below. I still get multiple rules firing. Also can you recommend any good resources for learning all of this, apart from the online documentation? Would you know if any of the Drools books are any good?*** * payment $param payment = $param Payment Greater Than Payment Less Than or Equal To 0 0 1500 1500 2000 2000 3000 3000 4000 ** ** On Fri, Sep 9, 2011 at 2:22 PM, laune [via Drools] [hidden email]http://user/SendEmail.jtp?type=nodenode=3323074i=0 wrote: The error you get is due to the second condition (application: Application()) not being included in the generated rules. Empty cell means: the column's snippet is not included in the rule. Since you don't have a constraint for Application() you can employ a trick: remove the column and prefix the text application: Application() to the text in cell C7. In Rule 1, do you really want to test whether a payment is not greater than zero? Do you realize that Rules 2 and 3 would both fire for certain payment amounts? You can update a String field. To concatenate, use x.setString( x.getString() + whatever ); -W On 9 September 2011 14:08, john@oa [hidden email]http://user/SendEmail.jtp?type=nodenode=3322896i=0 wrote: Guvnor: guvnor-5.2.0.Final-tomcat-6.0 Hi I am a Drools Newbie and I have an integer field called score that I need to add to when a rule matches in a spreadsheet decision table. i.e. the score field should hold a running total of all scores that are matched. However, I can't even update the field in the table. I have attached the spreadsheet for review. In this spreadsheet I am simply trying to set the score, and that is failing with: DScoringTable] Rule Compilation error application cannot be resolved My goal is to have different decision tables that will all need to update the same score, and keep a running total of the total score. Any help very much appreciated! I hope that I am just missing something obvious. http://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls demo-score-sheet.xls In future I may wish to also update a String field and keep concatenating to that field
[rules-users] Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total
Guvnor: guvnor-5.2.0.Final-tomcat-6.0 Hi I am a Drools Newbie and I have an integer field called score that I need to add to when a rule matches in a spreadsheet decision table. i.e. the score field should hold a running total of all scores that are matched. However, I can't even update the field in the table. I have attached the spreadsheet for review. In this spreadsheet I am simply trying to set the score, and that is failing with: DScoringTable] Rule Compilation error application cannot be resolved My goal is to have different decision tables that will all need to update the same score, and keep a running total of the total score. Any help very much appreciated! I hope that I am just missing something obvious. http://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls demo-score-sheet.xls In future I may wish to also update a String field and keep concatenating to that field, is this possible? John -- View this message in context: http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3322713.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
Re: [rules-users] Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total
Thanks Iaune That is really helpful. Yes, I need the ranges to be mutually exclusive, what is the easiest way to do that? Feel a bit cheeky asking another question, but you seem to know what you are talking about! I have tried adding two conditions to enforce the range, but that doesn't seem to work - see below. I still get multiple rules firing. Also can you recommend any good resources for learning all of this, apart from the online documentation? Would you know if any of the Drools books are any good? payment $param payment = $param Payment Greater Than Payment Less Than or Equal To 0 0 1500 1500 2000 2000 3000 3000 4000 On Fri, Sep 9, 2011 at 2:22 PM, laune [via Drools] ml-node+s46999n3322896...@n3.nabble.com wrote: The error you get is due to the second condition (application: Application()) not being included in the generated rules. Empty cell means: the column's snippet is not included in the rule. Since you don't have a constraint for Application() you can employ a trick: remove the column and prefix the text application: Application() to the text in cell C7. In Rule 1, do you really want to test whether a payment is not greater than zero? Do you realize that Rules 2 and 3 would both fire for certain payment amounts? You can update a String field. To concatenate, use x.setString( x.getString() + whatever ); -W On 9 September 2011 14:08, john@oa [hidden email]http://user/SendEmail.jtp?type=nodenode=3322896i=0 wrote: Guvnor: guvnor-5.2.0.Final-tomcat-6.0 Hi I am a Drools Newbie and I have an integer field called score that I need to add to when a rule matches in a spreadsheet decision table. i.e. the score field should hold a running total of all scores that are matched. However, I can't even update the field in the table. I have attached the spreadsheet for review. In this spreadsheet I am simply trying to set the score, and that is failing with: DScoringTable] Rule Compilation error application cannot be resolved My goal is to have different decision tables that will all need to update the same score, and keep a running total of the total score. Any help very much appreciated! I hope that I am just missing something obvious. http://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls demo-score-sheet.xlshttp://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls%0Ademo-score-sheet.xls In future I may wish to also update a String field and keep concatenating to that field, is this possible? John -- View this message in context: http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3322713.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=3322896i=1 https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=3322896i=2 https://lists.jboss.org/mailman/listinfo/rules-users -- If you reply to this email, your message will be added to the discussion below: http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3322896.html To unsubscribe from Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total, click herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3322713code=am9obkBvcGVuYXNwZWN0LmNvLnVrfDMzMjI3MTN8LTIwOTQyNzQ4ODU=. -- View this message in context: http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3323074.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
Re: [rules-users] Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total
Thanks Manstis Actually I found that the issue was caused by me having incorrectly placed the RuleTable statement in the spreadsheet, I believe the CONDITION's in the columns are by default: AND joined. On Fri, Sep 9, 2011 at 3:57 PM, manstis [via Drools] ml-node+s46999n3323110...@n3.nabble.com wrote: Does your Condition span the two columns with the payment $param? e.g. | Condition | |-+--| |payment $param | payment = $param| |-+--| Otherwise you are creating rules that check the following:- when Condition(payment ) then ... when Condition(payment 1000) then ... Whereas you really require:- when Condition(payment 0, payment = 1000) then ... etc 2011/9/9 john@oa [hidden email]http://user/SendEmail.jtp?type=nodenode=3323110i=0 Thanks Iaune That is really helpful. Yes, I need the ranges to be mutually exclusive, what is the easiest way to do that? Feel a bit cheeky asking another question, but you seem to know what you are talking about! I have tried adding two conditions to enforce the range, but that doesn't seem to work - see below. I still get multiple rules firing. Also can you recommend any good resources for learning all of this, apart from the online documentation? Would you know if any of the Drools books are any good? payment $param payment = $param Payment Greater Than Payment Less Than or Equal To 0 0 1500 1500 2000 2000 3000 3000 4000 On Fri, Sep 9, 2011 at 2:22 PM, laune [via Drools] [hidden email]http://user/SendEmail.jtp?type=nodenode=3323074i=0 wrote: The error you get is due to the second condition (application: Application()) not being included in the generated rules. Empty cell means: the column's snippet is not included in the rule. Since you don't have a constraint for Application() you can employ a trick: remove the column and prefix the text application: Application() to the text in cell C7. In Rule 1, do you really want to test whether a payment is not greater than zero? Do you realize that Rules 2 and 3 would both fire for certain payment amounts? You can update a String field. To concatenate, use x.setString( x.getString() + whatever ); -W On 9 September 2011 14:08, john@oa [hidden email]http://user/SendEmail.jtp?type=nodenode=3322896i=0 wrote: Guvnor: guvnor-5.2.0.Final-tomcat-6.0 Hi I am a Drools Newbie and I have an integer field called score that I need to add to when a rule matches in a spreadsheet decision table. i.e. the score field should hold a running total of all scores that are matched. However, I can't even update the field in the table. I have attached the spreadsheet for review. In this spreadsheet I am simply trying to set the score, and that is failing with: DScoringTable] Rule Compilation error application cannot be resolved My goal is to have different decision tables that will all need to update the same score, and keep a running total of the total score. Any help very much appreciated! I hope that I am just missing something obvious. http://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls demo-score-sheet.xlshttp://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls%0Ademo-score-sheet.xls In future I may wish to also update a String field and keep concatenating to that field, is this possible? John -- View this message in context: http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3322713.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=3322896i=1 https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=3322896i=2 https://lists.jboss.org/mailman/listinfo/rules-users -- If you reply to this email, your message will be added to the discussion below: http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3322896.html To unsubscribe from Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running total, click here. -- View this message in context: Re: [rules-users] Spreadsheet: Rule Compilation error (xxx) cannot be resolved: Keeping running totalhttp://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-cannot-be-resolved-Keeping-running-total-tp3322713p3323074.html Sent from the Drools: User forum mailing list archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.htmlat Nabble.com. ___ rules-users mailing
[rules-users] Unable to get WebDav Access, unless modify JackRabbit Config
Relates to webdav management of rules under: guvnor-5.2.0.Final-tomcat-6.0 Hi For rapid development, I wish to directly manage the repository through WebDav. I can successfully navigate the repository using BitKinex 3.2.3 or Windows 7 web folders. However, I cannot create or edit .drl files. When I do this I receive an ERROR in the Tomcat console (see error below this post). I have tried to authenticate with: -no authentication details - with the 'guest' user - the 'anonymous' user - and the 'admin' user. I have managed to enable WebDav editing of the repository .drl file's by updating the JackRabbit configuration of the Tomcat server and changing the anonymous user to have an id of 'guest' (in Tomcat's repository.xml file - see below). *However*, when I do this Drools Guvnor can no longer edit or view Rules. Any help much appreciated! ERROR received on edit: * at java.lang.Thread.run(Thread.java:662) ERROR 07-09 18:41:29,280 (WebDavServletBean.java:service:154)Exception: org. drools.repository.RulesRepositoryException: javax.jcr.AccessDeniedException: Acc ess denied at org.drools.repository.VersionableItem.checkout(VersionableItem.java:5 61) at org.drools.repository.VersionableItem.checkout(VersionableItem.java:5 31) at org.drools.repository.AssetItem.updateBinaryContentAttachment(AssetIt em.java:405) at org.drools.guvnor.server.files.WebDAVImpl.setResourceContent(WebDAVIm pl.java:712) at net.sf.webdav.methods.DoPut.execute(DoPut.java:152) at net.sf.webdav.WebDavServletBean.service(WebDavServletBean.java:128) at org.drools.guvnor.server.files.WebdavServlet.service(WebdavServlet.ja va:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42) at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHtt pServletRequest.java:53) at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j JackRabbit configuration with guest user: *** LoginModule class=org.apache.jackrabbit.core.security.simple.SimpleLoginModule /LoginModule -- -- View this message in context: http://drools.46999.n3.nabble.com/Unable-to-get-WebDav-Access-unless-modify-JackRabbit-Config-tp3317488p3317488.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