Re: [rules-users] Deprecated Drools packages?
When you download and unzip drools-distribution-5.2.0.Final.zip, the subdirectory javadoc documents the stable API. -W On 26 July 2011 10:35, Andre morpheusan...@web.de wrote: wolfgang laun wrote that this would be stable ... org.drools.runtime.rule see http://drools.46999.n3.nabble.com/sliding-window-combination-td3132340.html#a3151375 -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Deprecated-Drools-packages-tp3197389p3199777.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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Deprecated Drools packages?
On 26/07/2011 09:35, Andre wrote: wolfgang laun wrote that this would be stable ... Anything in the jar knowledge-api is public and stable, everything else is deprecated and internal. Mark org.drools.runtime.rule see http://drools.46999.n3.nabble.com/sliding-window-combination-td3132340.html#a3151375 -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Deprecated-Drools-packages-tp3197389p3199777.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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Deprecated Drools packages?
On 26/07/2011 10:25, Mark Proctor wrote: On 26/07/2011 09:35, Andre wrote: wolfgang laun wrote that this would be stable ... Anything in the jar knowledge-api is public and stable, everything else is deprecated and internal. See the 5.0.0 new and noteworthy http://docs.jboss.org/drools/release/5.2.0.Final/droolsjbpm-introduction-docs/html_single/index.html 2.3. What is New and Noteworthy in Drools 5.0.0 2.3.1. Drools API Drools now has complete api/implementation separation that is no longer rules oriented. This is an important strategy as we move to support other forms of logic, such as workflow and event processing. The main change is that we are now knowledge oriented, instead of rule oriented. The module drools-api provide the interfaces and factories and we have made pains to provide much better javadocs, with lots of code snippets, than we did before. Drools-api also helps clearly show what is intended as a user api and what is just an engine api, drools-core and drools-compiler did not make this clear enough. The most common interfaces you will use are: * org.drools.builder.KnowledgeBuilder * org.drools.KnowledgeBase * org.drools.agent.KnowledgeAgent * org.drools.runtime.StatefulKnowledgeSession * org.drools.runtime.StatelessKnowledgeSession Mark org.drools.runtime.rule see http://drools.46999.n3.nabble.com/sliding-window-combination-td3132340.html#a3151375 -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Deprecated-Drools-packages-tp3197389p3199777.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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Java 1.4 Application
Hi All, I have to use Drools in a Java Application with Java version 1.4 Can I use Drools 5.0 for that or do I have to use Drools 4.0.x version? Please help me on this. Thanks Regards Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Rules influencing each other ?
during my tests i see, that when data is evaluated from other rules than the third one, the third will not fire, even if the right combination of events occur and when the same events occur without any other events, then the third one works , any idea ?? rule Request counting Subject By Id when $set: Set() from accumulate($neu : RequestCtx() over window:time(1m),countMatchingSubjectIdsInRequest($neu) ) java.util.Map.Entry( $id: key, $count: value 1 ) from $set eval(DroolsUtils.isUpToDate($count)) then channels[AuthZBlocking].send(new ItemCacheEntry(new Item((String)$id), new Date(System.currentTimeMillis()+ 3),new StringMatcher())); end // Implementing Use Case 2 rule Request counting Resources By Id when $set: Set() from accumulate($neu : RequestCtx() over window:time(1m),countMatchingResourcesInRequest($neu) ) java.util.Map.Entry( $id: key, $count: value 1 ) from $set eval(DroolsUtils.isUpToDate($count)) then channels[AuthZBlocking].send(new ItemCacheEntry(new Item((String)$id), new Date(System.currentTimeMillis()+ 3),new StringMatcher())); end // Implementing Use Case 3 rule Request counting analysed Resources By Id when $list: ArrayList() from accumulate($neu : RequestCtx() over window:time(1m),countMatchingAnalysedResourcesInRequest($neu) ) ResourceMatch( $id: uri, count 1 ) from $list then channels[AuthZBlocking].send(new ItemCacheEntry(new URIItem($id), new Date(System.currentTimeMillis()+ 3), new URIMatcher())); end -- View this message in context: http://drools.46999.n3.nabble.com/Rules-influencing-each-other-tp3200654p3200654.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] evaluating different aspects of the same event
does that also mean, that when for example 2 threads insert objects , they also will evaluate the accumulate function twice? there will also be 2 contexts so that this example doesnt count the Requests of the WorkingMemory, it just counts the Requests the thread has inserted? Example $set: Set() from accumulate($neu : RequestCtx() over window:time(1m),countMatchingSubjectIdsInRequest($neu) ) java.util.Map.Entry( $id: key, $count: value 1 ) from $set -- View this message in context: http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3200687.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
[rules-users] Drools core 5.2.0.Final and debug messages
Hi The application that I am working on uses Drools. I am using Drools 5.1.1 release, and now I am testing the app with 5.2.0.Final version. First thing that I noticed is that in debug mode, the messages from the ResourceChangeScanner are not printed out in the debug console.I checked the source code and I found out that the new code is using DoNothingSystemEventListener which doesn't print any message. The PrintStreamSystemEventListener that was used in 5.1.1. even though it is in the source code, doesn't seem to be used. Is there a way to enable these debug messages in 5.2.0.Final? thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Not able to get the knowledgeBase from web application
Hi, I am working with Drools 5.2.0 final and Guvnor also the same version. application server: GateIn-3.1.0-FINAL-jbossas I have uploaded a java model and defined a rule using that model. I did validation of the package and build also. After that in my web application, when I am trying to access the knowledgebase I am getting error in server console as mentioned below. 21:22:28,450 INFO [STDOUT] 1 21:22:28,629 INFO [STDOUT] 2 21:22:28,638 INFO [STDOUT] 3 21:22:28,834 INFO [STDOUT] 4 21:22:28,840 INFO [STDOUT] 5 21:22:28,844 INFO [STDOUT] 6 21:22:28,886 INFO [STDOUT] 7 21:22:28,890 INFO [STDOUT] 8 21:22:28,891 INFO [STDOUT] kbase:org.drools.impl.KnowledgeBaseImpl@66c790c9 kag ent: org.drools.agent.impl.KnowledgeAgentImpl@37f2b0d6 21:22:29,158 INFO [STDOUT] INFO 26-07 21:22:29,157 (NilAuthenticator.java:auth enticate:35) All users are guests. 21:22:29,163 INFO [STDOUT] INFO 26-07 21:22:29,163 (RepositoryServlet.java:all owUser:114) null authenticated for rest api 21:22:29,164 INFO [STDOUT] INFO 26-07 21:22:29,164 (PackageDeploymentServlet.j ava:execute:141) PackageName: sam 21:22:29,164 INFO [STDOUT] INFO 26-07 21:22:29,164 (PackageDeploymentServlet.j ava:execute:142) PackageVersion: LATEST 21:22:29,165 INFO [STDOUT] INFO 26-07 21:22:29,165 (PackageDeploymentServlet.j ava:execute:143) PackageIsLatest: true 21:22:29,165 INFO [STDOUT] INFO 26-07 21:22:29,165 (PackageDeploymentServlet.j ava:execute:144) PackageIsSource: false 21:22:29,172 INFO [STDOUT] error... 21:22:29,173 ERROR [STDERR] java.lang.NullPointerException 21:22:29,174 ERROR [STDERR] at org.drools.agent.impl.KnowledgeAgentImpl.proc essChangeSet(KnowledgeAgentImpl.java:223) 21:22:29,175 ERROR [STDERR] at org.drools.agent.impl.KnowledgeAgentImpl.appl yChangeSet(KnowledgeAgentImpl.java:189) 21:22:29,175 ERROR [STDERR] at org.drools.agent.impl.KnowledgeAgentImpl.appl yChangeSet(KnowledgeAgentImpl.java:174) 21:22:29,175 ERROR [STDERR] at org.apache.jsp.index1_jsp._jspService(index1_ jsp.java:124) 21:22:29,175 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:70) 21:22:29,175 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe rvlet.java:717) 21:22:29,176 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.s ervice(JspServletWrapper.java:369) 21:22:29,176 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJ spFile(JspServlet.java:322) 21:22:29,176 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service( JspServlet.java:249) 21:22:29,176 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe rvlet.java:717) 21:22:29,176 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:290) 21:22:29,176 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206) 21:22:29,177 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte r.doFilter(ReplyHeaderFilter.java:96) 21:22:29,180 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235) 21:22:29,180 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206) 21:22:29,180 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve .invoke(StandardWrapperValve.java:235) 21:22:29,180 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve .invoke(StandardContextValve.java:191) 21:22:29,180 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia tionValve.invoke(SecurityAssociationValve.java:190) 21:22:29,181 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv e.invoke(JaccContextValve.java:92) 21:22:29,181 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContext EstablishmentValve.process(SecurityContextEstablishmentValve.java:126) 21:22:29,181 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContext EstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) 21:22:29,181 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in voke(StandardHostValve.java:127) 21:22:29,181 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i nvoke(ErrorReportValve.java:102) 21:22:29,182 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnec tionValve.invoke(CachedConnectionValve.java:158) 21:22:29,182 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve. invoke(StandardEngineValve.java:109) 21:22:29,182 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s ervice(CoyoteAdapter.java:330) 21:22:29,182 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc ess(Http11Processor.java:829) 21:22:29,182 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1 1ConnectionHandler.process(Http11Protocol.java:598) 21:22:29,183 ERROR [STDERR] at
[rules-users] enums and subclass under guvnor : no listbox
Hi all I have two simple classes : The parent class has a field that is an enum. The other class inherits from the parent class. Under Guvnor, everything is OK for the parent class : when I add a constraint on the enum field, I see a listbox with enum values But for sub-class, the same field has no listbox, but only a free value text input. Can you confirm this is a bug? I use Guvnor 5.2.Final. Thanks ! The code : public enum Status { OK , KO , UNKNOWN ; } public class MotherClass { private Status status ; // and corresponding get/set enum Status { OK , KO , UNKNOWN ; } public class MotherClass { private Status status ; // and corresponding get/set OK , KO , UNKNOWN ; } public class MotherClass { private Status status ; // and corresponding get/set public class MotherClass { private Status status ; // and corresponding get/set private Status status ; // and corresponding get/set } public class SubClass extends MotherClass { private String message ; // and corresponding get/set } class SubClass extends MotherClass { private String message ; // and corresponding get/set } private String message ; // and corresponding get/set } ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] enums and subclass under guvnor : no listbox
Sounds like it. When raising the JIRA please can you provide an example repo? Also, please state whether the sub-class a declared type or a POJO in a JAR model. Thanks, Mike 2011/7/26 Vincent LEGENDRE vincent.legen...@eurodecision.com Hi all I have two simple classes : The parent class has a field that is an enum. The other class inherits from the parent class. Under Guvnor, everything is OK for the parent class : when I add a constraint on the enum field, I see a listbox with enum values But for sub-class, the same field has no listbox, but only a free value text input. Can you confirm this is a bug? I use Guvnor 5.2.Final. Thanks ! The code : *public* *enum* Status { *OK**, KO**, UNKNOWN**; ** } **public* *class* MotherClass { *private* Status status; // and corresponding get/set } * public * *class* SubClass *extends* MotherClass { *private* String message; // and corresponding get/set } ___ 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] Flow isn't behaving as I'd expect
I'm having some issues with the interaction between Flow, ruleflow-groups and AgendaFilters. I've tried it with 5.1.1, 5.2.0 using .rf files and 5.2.0 using .bpmn files, all with the same results, so I'm sure I'm just misunderstanding something. I have a flow that looks like this: http://drools.46999.n3.nabble.com/file/n3200994/fraud_analysis_flow.jpg Rules 011 and 051 are in ruleflow-group customerAnalysis and rule 018 is in ruleflow-group customerActivityFilterAndLookup. I added some debugging via event listeners and if I don't use an agenda filter, I see the following output: Executing test Rule018TestCase001 Rules engine initialized Invoking rules for rule name Rule 018 - Good AVS Buyer Created activation for [Rule 018 - Good AVS Buyer] Created activation for [Rule 011 - Bad Zip 9 Address] Created activation for [Rule 051 - Suspicious Buyer Email] Triggered node [Order Analysis] Triggered node [Start Fraud Analysis Flow] Triggered node [Customer Analysis] About to fire [Rule 051 - Suspicious Buyer Email] Rule 051 fired for order: 00022 About to fire [Rule 011 - Bad Zip 9 Address] Rule 011 fired for order: 00022 Triggered node [Customer Activity Filter And Lookup] About to fire [Rule 018 - Good AVS Buyer] Created activation for [Rule 051 - Suspicious Buyer Email] Created activation for [Rule 011 - Bad Zip 9 Address] Rule 018 fired for order: 210105 Triggered node [Customer Activity Analysis] Triggered node [Suspect Reason Code Review] Triggered node [End Fraud Analysis Flow] Rules executed successfully The results are roughly what I'd expect, but I have some questions: - Why do the activations get created for these 3 rules before any flows have started? - Why does the [Order Analysis] node get triggered before the [Start Fraud Analysis Flow] node? - Why are activations created again for 011 and 051 just prior to 018 firing? If I introduce an AgendaFilter that only allows a rule with a specific name to fire, things get stranger to me. If I only allow rule 018, I get the following output: Executing test Rule018TestCase001 Invoking rules for rule name Rule 018 - Good AVS Buyer Created activation for [Rule 018 - Good AVS Buyer] Created activation for [Rule 011 - Bad Zip 9 Address] Created activation for [Rule 051 - Suspicious Buyer Email] Triggered node [Order Analysis] Triggered node [Start Fraud Analysis Flow] Triggered node [Customer Analysis] Rejecting firing of [Rule 051 - Suspicious Buyer Email] because name doesn't match. Cancelled activation for [Rule 051 - Suspicious Buyer Email] because FILTER Rejecting firing of [Rule 011 - Bad Zip 9 Address] because name doesn't match. Cancelled activation for [Rule 011 - Bad Zip 9 Address] because FILTER Rules executed successfully Ruleflow customerActivityFilterAndLookup doesn't even get triggered, nor do any nodes after that. Why not? -- View this message in context: http://drools.46999.n3.nabble.com/Flow-isn-t-behaving-as-I-d-expect-tp3200994p3200994.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] Capitalized element names
Hi Tom, I've seen this before and AFAIK, the javaBeans spec always transforms the first letter to lowercase when converting a get method into a property name. We can try to address this in future releases, maybe falling back to uppercase if the lower case property name lookup fails, but I don't think there is a solution to keep it as is. In 5.2. you can use the full method name instead, but not sure if that isn't event worse: MortageInsurance{ getMICompanyMarketClassification() in (“2”, “3”) } Edson 2011/7/26 tom.e.mur...@wellsfargo.com In the following rule, the element MICompanyMarketClassification is capitalized due to the MI portion being an acronym for Mortgage Insurance. This comes from our enterprise data model and is not something I can change. rule “R1234” dialect “java” when MortageInsurance{ MICompanyMarketClassification in (“2”, “3”) } then system.out.printLn(“something”); end The rule refuses to compile, giving a message “Unable to Analyse Expression MICompanyMarketClassification == 2 || MICompanyMarketClassification == 3: [Error: no such identifier: MICompanyMarketClassification] [Near : {... MICompanyMarketClassification }]” I assume this is caused by the capitalized first letter? Anything I can do to fix the issue or work around it? Drools 5.2 community edition *Tom Murphy *Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 *tom.e.mur...@wellsfargo.com* tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] FW: Capitalized element names
Thanks Edson, however here is more info on the issue as I've been playing with it: 1. I have other elements in other objects referenced within the same rule group that start with capital letters and they have no problem. Example: , FHAMaxBaseMortgageWithToleranceAmt ($totalLoanAmt+$aggregateSubordinateFinancingAmt) Compiles just fine in the same session. 2. If I lower the first M to m to make it mICompanyMarketClassification, it compiles in 5.2 but does NOT compile in 5.0.1 3. If I leave it as the capitalized MICompanyMarketClassification, it compiles in 5.0.1 but not 5.2 Thoughts? Tom Murphy Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 tom.e.mur...@wellsfargo.commailto:tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: Tuesday, July 26, 2011 7:45 PM To: Rules Users List Subject: Re: [rules-users] Capitalized element names Hi Tom, I've seen this before and AFAIK, the javaBeans spec always transforms the first letter to lowercase when converting a get method into a property name. We can try to address this in future releases, maybe falling back to uppercase if the lower case property name lookup fails, but I don't think there is a solution to keep it as is. In 5.2. you can use the full method name instead, but not sure if that isn't event worse: MortageInsurance{ getMICompanyMarketClassification() in (2, 3) } Edson 2011/7/26 tom.e.mur...@wellsfargo.commailto:tom.e.mur...@wellsfargo.com In the following rule, the element MICompanyMarketClassification is capitalized due to the MI portion being an acronym for Mortgage Insurance. This comes from our enterprise data model and is not something I can change. rule R1234 dialect java when MortageInsurance{ MICompanyMarketClassification in (2, 3) } then system.out.printLn(something); end The rule refuses to compile, giving a message Unable to Analyse Expression MICompanyMarketClassification == 2 || MICompanyMarketClassification == 3: [Error: no such identifier: MICompanyMarketClassification] [Near : {... MICompanyMarketClassification }] I assume this is caused by the capitalized first letter? Anything I can do to fix the issue or work around it? Drools 5.2 community edition Tom Murphy Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 tom.e.mur...@wellsfargo.commailto:tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. ___ rules-users mailing list rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.comhttp://www.jboss.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
Re: [rules-users] FW: Capitalized element names
If one works and the other doesn't, then we have a problem. It must work if you make the first letter lowercase, as that is part of the javabeans spec. Feel free to open a JIRA and we will take a look at it. Edson 2011/7/26 tom.e.mur...@wellsfargo.com Thanks Edson, however here is more info on the issue as I’ve been playing with it: **1. **I have other elements in other objects referenced within the same rule group that start with capital letters and they have no problem. Example: , FHAMaxBaseMortgageWithToleranceAmt ($totalLoanAmt+$aggregateSubordinateFinancingAmt) Compiles just fine in the same session. **2. **If I lower the first M to m to make it mICompanyMarketClassification, it compiles in 5.2 but does NOT compile in 5.0.1 **3. **If I leave it as the capitalized MICompanyMarketClassification, it compiles in 5.0.1 but not 5.2 Thoughts? *Tom Murphy* Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B* *Office: 515 324 4853 | Mobile: 515 423 4334 tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. ** ** ** ** *From:* rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli *Sent:* Tuesday, July 26, 2011 7:45 PM *To:* Rules Users List *Subject:* Re: [rules-users] Capitalized element names ** ** ** ** Hi Tom, ** ** I've seen this before and AFAIK, the javaBeans spec always transforms the first letter to lowercase when converting a get method into a property name. We can try to address this in future releases, maybe falling back to uppercase if the lower case property name lookup fails, but I don't think there is a solution to keep it as is. In 5.2. you can use the full method name instead, but not sure if that isn't event worse: ** ** MortageInsurance{ getMICompanyMarketClassification() in (“2”, “3”) } ** ** Edson ** ** 2011/7/26 tom.e.mur...@wellsfargo.com In the following rule, the element MICompanyMarketClassification is capitalized due to the MI portion being an acronym for Mortgage Insurance. This comes from our enterprise data model and is not something I can change. rule “R1234” dialect “java” when MortageInsurance{ MICompanyMarketClassification in (“2”, “3”) } then system.out.printLn(“something”); end The rule refuses to compile, giving a message “Unable to Analyse Expression MICompanyMarketClassification == 2 || MICompanyMarketClassification == 3: [Error: no such identifier: MICompanyMarketClassification] [Near : {... MICompanyMarketClassification }]” I assume this is caused by the capitalized first letter? Anything I can do to fix the issue or work around it? Drools 5.2 community edition *Tom Murphy *Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] FW: Capitalized element names
Edson, please also not JBRULES-3147: Regression: all uppercase field reference results in compile error. Some forms used to work in 5.1.1 that don't in 5.2. I've added the gist of this thread to JIRA-3147. -W 2011/7/27 Edson Tirelli ed.tire...@gmail.com If one works and the other doesn't, then we have a problem. It must work if you make the first letter lowercase, as that is part of the javabeans spec. Feel free to open a JIRA and we will take a look at it. Edson 2011/7/26 tom.e.mur...@wellsfargo.com Thanks Edson, however here is more info on the issue as I’ve been playing with it: 1. I have other elements in other objects referenced within the same rule group that start with capital letters and they have no problem. Example: , FHAMaxBaseMortgageWithToleranceAmt ($totalLoanAmt+$aggregateSubordinateFinancingAmt) Compiles just fine in the same session. 2. If I lower the first M to m to make it mICompanyMarketClassification, it compiles in 5.2 but does NOT compile in 5.0.1 3. If I leave it as the capitalized MICompanyMarketClassification, it compiles in 5.0.1 but not 5.2 Thoughts? Tom Murphy Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. From: rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: Tuesday, July 26, 2011 7:45 PM To: Rules Users List Subject: Re: [rules-users] Capitalized element names Hi Tom, I've seen this before and AFAIK, the javaBeans spec always transforms the first letter to lowercase when converting a get method into a property name. We can try to address this in future releases, maybe falling back to uppercase if the lower case property name lookup fails, but I don't think there is a solution to keep it as is. In 5.2. you can use the full method name instead, but not sure if that isn't event worse: MortageInsurance{ getMICompanyMarketClassification() in (“2”, “3”) } Edson 2011/7/26 tom.e.mur...@wellsfargo.com In the following rule, the element MICompanyMarketClassification is capitalized due to the MI portion being an acronym for Mortgage Insurance. This comes from our enterprise data model and is not something I can change. rule “R1234” dialect “java” when MortageInsurance{ MICompanyMarketClassification in (“2”, “3”) } then system.out.printLn(“something”); end The rule refuses to compile, giving a message “Unable to Analyse Expression MICompanyMarketClassification == 2 || MICompanyMarketClassification == 3: [Error: no such identifier: MICompanyMarketClassification] [Near : {... MICompanyMarketClassification }]” I assume this is caused by the capitalized first letter? Anything I can do to fix the issue or work around it? Drools 5.2 community edition Tom Murphy Systems Architect Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 tom.e.mur...@wellsfargo.com This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.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
Re: [rules-users] Processing a collection within a fact object
On 26 July 2011 22:47, kirkm kirkms...@gmail.com wrote: I have an application that is inserting a fact object into a session. The object has a collection in it that is being iterated and each of the individual children objects is being inserted into the session with a reference back to their parent object. The child facts cause other rules to fire and the children objects are updated in some situations. Is there any way to determine if all the rules have fired due to the children All the rules for each child? All the rules for the children summarily? But the answer is: Yes, if you keep track of rule firings. a) by making notches in the parent b) by inserting separated objects c) ... insertions? The desired result is to have a parent object with possible updates to the children for further processing. Can and should an accumulator be used instead of the inserting the child objects? Probably not, since you wrote desired result...for further processing. -W Kirk -- View this message in context: http://drools.46999.n3.nabble.com/Processing-a-collection-within-a-fact-object-tp3201532p3201532.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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Can someone help me ?
When I use the drools, I want to store the rules in the SQL Server Database, Can someone help me and give me some advices, how do I do it? Thanks! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] evaluating different aspects of the same event
On 26 July 2011 17:40, Andre morpheusan...@web.de wrote: does that also mean, that when for example 2 threads insert objects , they also will evaluate the accumulate function twice? No. there will also be 2 contexts Why - do you assume they'll be kept on the thread stack? so that this example doesnt count the Requests of the WorkingMemory, it just counts the Requests the thread has inserted? That would be a bug. -W Example $set: Set() from accumulate($neu : RequestCtx() over window:time(1m),countMatchingSubjectIdsInRequest($neu) ) java.util.Map.Entry( $id: key, $count: value 1 ) from $set -- View this message in context: http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3200687.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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users