RE: [rules-users] Rules Repository and Rule Modeller
Thanks Michael, Just so that I can acquaintance myself with your release numbering system; 3.0.5 is the current production release and 3.1.0-M1 I assume to be 3.1 Milestone 1 (pre-release). Presumably M2 and M3 are other milestones on the way to production release of 3.1 (you're going to call it 3.2 I think?)?!?! Is there a release schedule available - so we can pile the pressure on when (if) they're late? ;-) Cheers, Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Neale Sent: 14 February 2007 23:59 To: Rules Users List Subject: Re: [rules-users] Rules Repository and Rule Modeller yeah, very much so. Hopefully have a demo of it in M2 or M3. I have been meaning to update the blog with the latest on package management, but haven't found time, I will do ASAP. On 2/15/07, Anstis, Michael (M.) [EMAIL PROTECTED] wrote: Hi, Just a note to enquire as to the status of the captioned? Have they progressed towards release since http://markproctor.blogspot.com/2007/01/relocation-relocation-repository .html http://markproctor.blogspot.com/2007/01/relocation-relocation-repositor y.html ? With kind regards, Michael Anstis --- COSMO(S) * Trafford House (Int) 8 718 2239 * Trafford House (Ext) +44 (0)1268 702239 * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Ford Motor Company Ltd. Registered in England: No. 235446 Registered Office: Eagle Way BRENTWOOD Essex CM13 3BW ___ 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] How to generate rules from decision tables whereLHS has no field constraints
Hi Michael, Thanks for your reply. Leaving a cell empty results in the condition not being added to the rule at all. Which is fine, cause then you're more flexible in grouping rules with different conditions together in one decision table I actually found a way yesterday, which seems to me more like a workaround. But it works: | 1 | RuleTable calculateSmell | | 2 |CONDITION| ACTION | | 3 | | cheese | | 4 | cheese:Cheese() | setSmell($param); | | 5 | for every cheese| set smell to stinky | | 6 | somevalue | stinky | By declaring the variable not in the row right underneath below the CONDITION cell, but in the row where you normally declare the conditions (i.e. second row underneath the condition row AND putting in some random value in the cell, that holds the parameter value, you can generate the desired rule: #From row number: 6 rule calculateSmell_6 when cheese:Cheese() then cheese.setSmell(stinky);; end Leaving out the parameter value results in the when line being blank, so you gotta fill in something. I can live with that, but it seems to me more like a workaround, so I would be kinda curious whether there is (or will be) an official way of achieving this Best regards, Martin Van: Michael Neale [mailto:[EMAIL PROTECTED] Verzonden: donderdag 15 februari 2007 01:05 Aan: Rules Users List Onderwerp: Re: [rules-users] How to generate rules from decision tables whereLHS has no field constraints you should be able to do that - just leave the constraint cells empty, or put some comment in them. On 2/14/07, Martin Weidner [EMAIL PROTECTED] wrote: Hello, Maybe I have overlooked something, but I couldn't find a way to generate a simple rule from an excel decision table, where the left hand side contains no field constraints? i.e. rule do we have cheese WHEN cheese: Cheese() THEN RHS End Is there a way to achieve this? Thanks in advance, Martin _ 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] How to generate rules from decision tables whereLHS has no field constraints
Hi Martin, The decision tables on trunk do what you want and should be available in the 3.1 release (I think). The new code separates the rule template from the data and is more flexible than the current version. There are some integration tests that demonstrate how to use it (have a look at ExternalSpreadsheetCompilerIntegrationTest). For your example you would use the following template: template header cheese smell package com.cheese; template calculateSmell smell rule calculateSmell $row.rowNumber$ when cheese:Cheese() then cheese.setSmell($smell$); end end template I will put up some further doco on the wiki tonight. cheers Steve On 2/15/07, Martin Weidner [EMAIL PROTECTED] wrote: Hi Michael, Thanks for your reply. Leaving a cell empty results in the condition not being added to the rule at all. Which is fine, cause then you're more flexible in grouping rules with different conditions together in one decision table I actually found a way yesterday, which seems to me more like a workaround. But it works: | 1 | RuleTable calculateSmell | | 2 |CONDITION| ACTION | | 3 | | cheese | | 4 | cheese:Cheese() | setSmell($param); | | 5 | for every cheese| set smell to stinky | | 6 | somevalue | stinky | By declaring the variable not in the row right underneath below the CONDITION cell, but in the row where you normally declare the conditions ( i.e. second row underneath the condition row AND putting in some random value in the cell, that holds the parameter value, you can generate the desired rule: #From row number: 6 rule calculateSmell_6 when cheese:Cheese() then cheese.setSmell(stinky);; end Leaving out the parameter value results in the when line being blank, so you gotta fill in something. I can live with that, but it seems to me more like a workaround, so I would be kinda curious whether there is (or will be) an official way of achieving this Best regards, Martin Van: Michael Neale [mailto:[EMAIL PROTECTED] Verzonden: donderdag 15 februari 2007 01:05 Aan: Rules Users List Onderwerp: Re: [rules-users] How to generate rules from decision tables whereLHS has no field constraints you should be able to do that - just leave the constraint cells empty, or put some comment in them. On 2/14/07, Martin Weidner [EMAIL PROTECTED] wrote: Hello, Maybe I have overlooked something, but I couldn't find a way to generate a simple rule from an excel decision table, where the left hand side contains no field constraints? i.e. rule do we have cheese WHEN cheese: Cheese() THEN RHS End Is there a way to achieve this? Thanks in advance, Martin _ 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 -- Steven Williams Supervising Consultant Object Consulting Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501 [EMAIL PROTECTED] www.objectconsulting.com.au consulting | development | training | support our experience makes the difference ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[
Hi , I have installed Eclipse 3.2 and tomcat 5.5, when I am trying to jboss rule I am getting the following exception Even though I added org.eclipse.jdt.core_3.2.0.v_671.jar in to my class path Guys help me out from this… urgent java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems ()[Lorg/eclipse/jdt/core/compiler/IProblem; at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(* JDTCompiler.java:341*) at org.eclipse.jdt.internal.compiler.Compiler.compile(*Compiler.java :417*) at org.apache.jasper.compiler.JDTCompiler.generateClass(* JDTCompiler.java:399*) at org.apache.jasper.compiler.Compiler.compile(*Compiler.java:288*) at org.apache.jasper.compiler.Compiler.compile(*Compiler.java:267*) at org.apache.jasper.compiler.Compiler.compile(*Compiler.java:255*) at org.apache.jasper.JspCompilationContext.compile(* JspCompilationContext.java:556*) at org.apache.jasper.servlet.JspServletWrapper.service(* JspServletWrapper.java:293*) at org.apache.jasper.servlet.JspServlet.serviceJspFile(* JspServlet.java:314*) at org.apache.jasper.servlet.JspServlet.service(*JspServlet.java:264*) at javax.servlet.http.HttpServlet.service(*HttpServlet.java:802*) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(* ApplicationFilterChain.java:252*) at org.apache.catalina.core.ApplicationFilterChain.doFilter(* ApplicationFilterChain.java:173*) at org.apache.catalina.core.StandardWrapperValve.invoke(* StandardWrapperValve.java:213*) at org.apache.catalina.core.StandardContextValve.invoke(* StandardContextValve.java:178*) at org.apache.catalina.core.StandardHostValve.invoke(* StandardHostValve.java:126*) at org.apache.catalina.valves.ErrorReportValve.invoke(* ErrorReportValve.java:105*) at org.apache.catalina.core.StandardEngineValve.invoke(* StandardEngineValve.java:107*) at org.apache.catalina.connector.CoyoteAdapter.service(* CoyoteAdapter.java:148*) at org.apache.coyote.http11.Http11Processor.process(* Http11Processor.java:868*) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection (*Http11Protocol.java:744*) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(* PoolTcpEndpoint.java:527*) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(* LeaderFollowerWorkerThread.java:80*) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(* ThreadPool.java:684*) at java.lang.Thread.run(*Thread.java:534*) Thanks Regards Nagabhushanam Bheemisetty ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[
The wiki contains an entry on how to combine JBoss Rules with tomcat: http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat Kris - Original Message - From: Nagabhushanam B To: rules-users@lists.jboss.org Sent: Thursday, February 15, 2007 2:21 PM Subject: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[ Hi , I have installed Eclipse 3.2 and tomcat 5.5, when I am trying to jboss rule I am getting the following exception Even though I added org.eclipse.jdt.core_3.2.0.v_671.jar in to my class path Guys help me out from this… urgent java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems ()[Lorg/eclipse/jdt/core/compiler/IProblem; at org.apache.jasper.compiler.JDTCompiler$2.acceptResult( JDTCompiler.java:341) at org.eclipse.jdt.internal.compiler.Compiler.compile( Compiler.java:417) at org.apache.jasper.compiler.JDTCompiler.generateClass( JDTCompiler.java:399) at org.apache.jasper.compiler.Compiler.compile( Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile( Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile( Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile( JspCompilationContext.java:556 ) at org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:293 ) at org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service( JspServlet.java:264) at javax.servlet.http.HttpServlet.service( HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252 ) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173 ) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213 ) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178 ) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107 ) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:868 ) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection (Http11Protocol.java:744 ) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527 ) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80 ) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684 ) at java.lang.Thread.run( Thread.java:534) Thanks Regards Nagabhushanam Bheemisetty -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[
Hi there Nagabhushanam!! I had the same problem with drools and JBoss Server application. I believe that my solution will be the same for you. The solution for this problem is on this site: http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat I used the code solution, but after that I had to review the jar dependencies. Good Luck __ Francisco Brum - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Link Consulting - http://www.link.pt/ http://www.link.pt/ Tel.: 213 100 031 Av. Duque D'Ávila, 23 4º Esq. 1000-138 Lisboa From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nagabhushanam B Sent: quinta-feira, 15 de Fevereiro de 2007 13:21 To: rules-users@lists.jboss.org Subject: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[ Hi , I have installed Eclipse 3.2 and tomcat 5.5, when I am trying to jboss rule I am getting the following exception Even though I added org.eclipse.jdt.core_3.2.0.v_671.jar in to my class path Guys help me out from this... urgent java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems ()[Lorg/eclipse/jdt/core/compiler/IProblem; at org.apache.jasper.compiler.JDTCompiler$2.acceptResult( JDTCompiler.java:341) at org.eclipse.jdt.internal.compiler.Compiler.compile( Compiler.java:417) at org.apache.jasper.compiler.JDTCompiler.generateClass( JDTCompiler.java:399) at org.apache.jasper.compiler.Compiler.compile( Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile( Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile( Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile( JspCompilationContext.java:556 ) at org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:293 ) at org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service( JspServlet.java:264) at javax.servlet.http.HttpServlet.service( HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252 ) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173 ) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213 ) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178 ) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107 ) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:868 ) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection (Http11Protocol.java:744 ) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527 ) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80 ) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684 ) at java.lang.Thread.run( Thread.java:534) Thanks Regards Nagabhushanam Bheemisetty ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[
Thanks kris... its working fine On 2/15/07, Kris Verlaenen [EMAIL PROTECTED] wrote: The wiki contains an entry on how to combine JBoss Rules with tomcat: http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat Kris - Original Message - *From:* Nagabhushanam B [EMAIL PROTECTED] *To:* rules-users@lists.jboss.org *Sent:* Thursday, February 15, 2007 2:21 PM *Subject:* [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems ()[ Hi , I have installed Eclipse 3.2 and tomcat 5.5, when I am trying to jboss rule I am getting the following exception Even though I added org.eclipse.jdt.core_3.2.0.v_671.jar in to my class path Guys help me out from this… urgent java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem; at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(* JDTCompiler.java:341*) at org.eclipse.jdt.internal.compiler.Compiler.compile(* Compiler.java:417*) at org.apache.jasper.compiler.JDTCompiler.generateClass(* JDTCompiler.java:399*) at org.apache.jasper.compiler.Compiler.compile(* Compiler.java:288*) at org.apache.jasper.compiler.Compiler.compile(* Compiler.java:267*) at org.apache.jasper.compiler.Compiler.compile(* Compiler.java:255*) at org.apache.jasper.JspCompilationContext.compile(* JspCompilationContext.java:556* ) at org.apache.jasper.servlet.JspServletWrapper.service(* JspServletWrapper.java:293* ) at org.apache.jasper.servlet.JspServlet.serviceJspFile(* JspServlet.java:314*) at org.apache.jasper.servlet.JspServlet.service(* JspServlet.java :264*) at javax.servlet.http.HttpServlet.service(* HttpServlet.java:802*) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( *ApplicationFilterChain.java:252* ) at org.apache.catalina.core.ApplicationFilterChain.doFilter(* ApplicationFilterChain.java:173* ) at org.apache.catalina.core.StandardWrapperValve.invoke(* StandardWrapperValve.java:213* ) at org.apache.catalina.core.StandardContextValve.invoke(* StandardContextValve.java:178* ) at org.apache.catalina.core.StandardHostValve.invoke(* StandardHostValve.java:126* ) at org.apache.catalina.valves.ErrorReportValve.invoke(* ErrorReportValve.java:105* ) at org.apache.catalina.core.StandardEngineValve.invoke(* StandardEngineValve.java:107* ) at org.apache.catalina.connector.CoyoteAdapter.service(* CoyoteAdapter.java:148*) at org.apache.coyote.http11.Http11Processor.process(* Http11Processor.java:868* ) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection( *Http11Protocol.java:744* ) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(* PoolTcpEndpoint.java:527* ) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(* LeaderFollowerWorkerThread.java:80* ) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( * ThreadPool.java:684* ) at java.lang.Thread.run(* Thread.java:534*) Thanks Regards Nagabhushanam Bheemisetty -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information. ___ 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] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[
Thanks Brum, Its working On 2/15/07, Francisco Brum [EMAIL PROTECTED] wrote: Hi there Nagabhushanam!! I had the same problem with drools and JBoss Server application. I believe that my solution will be the same for you. The solution for this problem is on this site: http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat I used the code solution, but after that I had to review the jar dependencies. Good Luck __ Francisco Brum - [EMAIL PROTECTED] [EMAIL PROTECTED] *Link Consulting* - http://www.link.pt/ Tel.: 213 100 031 Av. Duque D'Ávila, 23 4º Esq. 1000-138 Lisboa -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Nagabhushanam B *Sent:* quinta-feira, 15 de Fevereiro de 2007 13:21 *To:* rules-users@lists.jboss.org *Subject:* [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems ()[ Hi , I have installed Eclipse 3.2 and tomcat 5.5, when I am trying to jboss rule I am getting the following exception Even though I added org.eclipse.jdt.core_3.2.0.v_671.jar in to my class path Guys help me out from this… urgent java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem; at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(* JDTCompiler.java:341*) at org.eclipse.jdt.internal.compiler.Compiler.compile(* Compiler.java:417*) at org.apache.jasper.compiler.JDTCompiler.generateClass(* JDTCompiler.java:399*) at org.apache.jasper.compiler.Compiler.compile(* Compiler.java:288*) at org.apache.jasper.compiler.Compiler.compile(* Compiler.java:267*) at org.apache.jasper.compiler.Compiler.compile(* Compiler.java:255*) at org.apache.jasper.JspCompilationContext.compile(* JspCompilationContext.java:556* ) at org.apache.jasper.servlet.JspServletWrapper.service(* JspServletWrapper.java:293* ) at org.apache.jasper.servlet.JspServlet.serviceJspFile(* JspServlet.java:314*) at org.apache.jasper.servlet.JspServlet.service(* JspServlet.java :264*) at javax.servlet.http.HttpServlet.service(* HttpServlet.java:802*) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( *ApplicationFilterChain.java:252* ) at org.apache.catalina.core.ApplicationFilterChain.doFilter(* ApplicationFilterChain.java:173* ) at org.apache.catalina.core.StandardWrapperValve.invoke(* StandardWrapperValve.java:213* ) at org.apache.catalina.core.StandardContextValve.invoke(* StandardContextValve.java:178* ) at org.apache.catalina.core.StandardHostValve.invoke(* StandardHostValve.java:126* ) at org.apache.catalina.valves.ErrorReportValve.invoke(* ErrorReportValve.java:105* ) at org.apache.catalina.core.StandardEngineValve.invoke(* StandardEngineValve.java:107* ) at org.apache.catalina.connector.CoyoteAdapter.service(* CoyoteAdapter.java:148*) at org.apache.coyote.http11.Http11Processor.process(* Http11Processor.java:868* ) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection( *Http11Protocol.java:744* ) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(* PoolTcpEndpoint.java:527* ) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(* ** LeaderFollowerWorkerThread.java:80* ) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( * ThreadPool.java:684* ) at java.lang.Thread.run(* Thread.java:534*) Thanks Regards Nagabhushanam Bheemisetty ___ 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] Short-circuit rules by group?!
Sorry, I take back what I said about the previous email - when I was refering to agenda groups, I actually ment activation groups. But thinking about it more, I think activation groups might be a ok. Just makes sure that all rules in the activation group have the same consequence. Regards, Alan Ho -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ho, Alan Sent: Wednesday, February 14, 2007 4:04 PM To: Rules Users List Subject: RE: [rules-users] Short-circuit rules by group?! I won't recommend using agenda groups in this case. If you want to make sure that a message is sent once and only once per customer, the predicate for each rule should look like : When customer : Customer() Your custom business logic !customer.sentAEvent Then sendEventToCustomer customer.sentAEvent = true drools.assert(customer.sentAEvent) End This will ensure that only one event would get sent. Even if you use Agenda Groups, you can't prevent the LHS (condition statement) to be evaluated for every single rule. In the case where you have multiple rule's LHS are evaluted to be true, the drools.assert executed during the first valid rule would cause a revaluation of all rules that has !customer.sentEvent in its condition. When the re-evaluations reoccur, the !customer.sendAEvent is evaluated to false, hence a event is never sent twice to the customer. Agenda groups isn't a good idea because then your agenda groups is tightly tied to the data. You might end up creating more and more agenda groups for each customer. Does that make sense :P Regards, Alan Ho -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jdepaul Sent: Tuesday, February 13, 2007 9:43 AM To: rules-users@lists.jboss.org Subject: [rules-users] Short-circuit rules by group?! I have several rules defined in groups by Customer, so I have number of rules for Walmart, some rules for NIKE, more rules for SomeCustomer... When one of the rules matches for a given customer I need to send an event notification. I need to make sure that I send only ONE event notification per Customer (regardless of how many rules were matched), thus after finding the very first match in the Walmart group, I'd like to activate a rule, and then short-circuit and Skip to the next group of rules for NIKE - to see if any of the matches are found in the next group. I've implemented this functionality using a Match object, which I assert into WorkingMemory whenever I find a match for customer, then all my rules check for absence of Match for given customer... This works, but I wonder if there is a better way to do it - using Agenda Groups, maybe - once I find ONE match for Walmart, skip to the next Agenda Group?! Could someone comment on this? THanks, James -- View this message in context: http://www.nabble.com/Short-circuit-rules-by-group-%21-tf3222142.html#a8949165 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 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] Eclipse 3.2.1 and Jboss Rules 3.0.5
Everything looks ok except when CTRL backspace for content assistance is used it throws this exception. Any one has any clue? java.lang.ClassCastException: org.eclipse.ui.internal.editors.text.JavaFileEditorInput at org.drools.ide.editors.completion.RuleCompletionProcessor.getDSLAdapter( RuleCompletionProcessor.java:549) at org.drools.ide.editors.completion.RuleCompletionProcessor.getCompletionP roposals(RuleCompletionProcessor.java:63) at org.drools.ide.editors.completion.AbstractCompletionProcessor.computeCom pletionProposals(AbstractCompletionProcessor.java:33) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionP roposals(ContentAssistant.java:1612) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProp osals(CompletionProposalPopup.java:473) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$17(C ompletionProposalPopup.java:470) at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(Compl etionProposalPopup.java:405) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposa ls(CompletionProposalPopup.java:399) at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleComple tions(ContentAssistant.java:1441) at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java :777) at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(Pr ojectionViewer.java:1519) at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction. java:131) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.ja va:129) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHand lerWrapper.java:109) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Paramet erizedCommand.java:424) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerSe rvice.java:160) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchK eyboard.java:466) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.j ava:799) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(Workbench Keyboard.java:846) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings (WorkbenchKeyboard.java:564) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboar d.java:506) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent (WorkbenchKeyboard.java:122) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:4 19) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActiva tor.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat ion(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclip seAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at