From dbrownell83 at hotmail.com Mon Sep 1 06:30:17 2014 From: dbrownell83 at hotmail.com (djb) Date: Mon, 1 Sep 2014 03:30:17 -0700 (PDT) Subject: [rules-users] Drools 6 BRMS workflow Message-ID: <1409567417299-4030735.post@n3.nabble.com> Hey all, I'm having trouble with the BRMS/workbench. Making an existing project accessible via the guided rule editor is more difficult than I imagined. I am getting nowhere. Currently my rules are all in DRL files in my domain model, and my project structure is: EAR / WEB-APP / DOMAIN MODEL / ENTITY SERVICE / ENTITY FACADE / ENTITY MODEL So I need the classes in the domain model, entity facade and entity model available to the BRMS. They are available from SVN, or Maven, or as jars. So I import these jars as Artifacts... and add them as dependencies using 'Add from Repository' now I want to use the BRMS to allow users to edit rules. How do I go about doing this? I presume I need to set it up in the data modeller, but my classes and packages don't show up in the drop down... ? -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-BRMS-workflow-tp4030735.html Sent from the Drools: User forum mailing list archive at Nabble.com. From dbrownell83 at hotmail.com Mon Sep 1 08:45:39 2014 From: dbrownell83 at hotmail.com (djb) Date: Mon, 1 Sep 2014 05:45:39 -0700 (PDT) Subject: [rules-users] Query regarding Upgrade to drools API 6.1.0 In-Reply-To: <1409568898187-4030736.post@n3.nabble.com> References: <1409568898187-4030736.post@n3.nabble.com> Message-ID: <1409575539867-4030738.post@n3.nabble.com> You just use the old classes when writing a 5.X application, and the new ones when writing a 6.X app. -- View this message in context: http://drools.46999.n3.nabble.com/Query-regarding-Upgrade-to-drools-API-6-1-0-tp4030736p4030738.html Sent from the Drools: User forum mailing list archive at Nabble.com. From michael.anstis at gmail.com Mon Sep 1 13:26:48 2014 From: michael.anstis at gmail.com (Michael Anstis) Date: Mon, 1 Sep 2014 18:26:48 +0100 Subject: [rules-users] Drools 6 BRMS workflow In-Reply-To: <1409567417299-4030735.post@n3.nabble.com> References: <1409567417299-4030735.post@n3.nabble.com> Message-ID: If your JAR imported without error (see the server log) and you've added them as an import in the corresponding editor ("Config" tab) then they should be available for authoring. If your JAR classes are in the same package as the rules in the workbench you can skip importing them. If this is not working please raise a GUVNOR JIRA providing the exact steps and JARs to replicate. On 1 September 2014 11:30, djb wrote: > Hey all, > > I'm having trouble with the BRMS/workbench. Making an existing project > accessible via the guided rule editor is more difficult than I imagined. I > am getting nowhere. > > Currently my rules are all in DRL files in my domain model, and my project > structure is: > > EAR / WEB-APP / DOMAIN MODEL / ENTITY SERVICE / ENTITY FACADE / ENTITY > MODEL > > So I need the classes in the domain model, entity facade and entity model > available to the BRMS. They are available from SVN, or Maven, or as jars. > > So I import these jars as Artifacts... and add them as dependencies using > 'Add from Repository' > > now I want to use the BRMS to allow users to edit rules. > > How do I go about doing this? I presume I need to set it up in the data > modeller, but my classes and packages don't show up in the drop down... ? > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Drools-6-BRMS-workflow-tp4030735.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140901/834de3f2/attachment.html From dbrownell83 at hotmail.com Thu Sep 4 06:23:49 2014 From: dbrownell83 at hotmail.com (djb) Date: Thu, 4 Sep 2014 03:23:49 -0700 (PDT) Subject: [rules-users] Drools 6 BRMS workflow In-Reply-To: References: <1409567417299-4030735.post@n3.nabble.com> Message-ID: <1409826229102-4030745.post@n3.nabble.com> Ok thanks Mike, I have logged the following issue: https://issues.jboss.org/browse/GUVNOR-2125 -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-BRMS-workflow-tp4030735p4030745.html Sent from the Drools: User forum mailing list archive at Nabble.com. From haefenjack at gmail.com Fri Sep 5 02:59:27 2014 From: haefenjack at gmail.com (haefenjack) Date: Thu, 4 Sep 2014 23:59:27 -0700 (PDT) Subject: [rules-users] Nike shoes Message-ID: <1409900367926-4030747.post@n3.nabble.com> This is an ideal running shoe which provides the strengthening and natural gait management benefits. -- View this message in context: http://drools.46999.n3.nabble.com/Nike-shoes-tp4030747.html Sent from the Drools: User forum mailing list archive at Nabble.com. From haefenjack at gmail.com Fri Sep 5 03:00:29 2014 From: haefenjack at gmail.com (haefenjack) Date: Fri, 5 Sep 2014 00:00:29 -0700 (PDT) Subject: [rules-users] Nike Air Max 95 boots and shoes well lit luster In-Reply-To: <1405759460598-4030399.post@n3.nabble.com> References: <1405759460598-4030399.post@n3.nabble.com> Message-ID: <1409900429143-4030748.post@n3.nabble.com> This is an ideal running shoe which provides the strengthening and natural gait management benefits. sports apparel online india -- View this message in context: http://drools.46999.n3.nabble.com/Nike-Air-Max-95-boots-and-shoes-well-lit-luster-tp4030399p4030748.html Sent from the Drools: User forum mailing list archive at Nabble.com. From army.vinay at gmail.com Fri Sep 5 07:17:13 2014 From: army.vinay at gmail.com (vinay.p) Date: Fri, 5 Sep 2014 04:17:13 -0700 (PDT) Subject: [rules-users] Existing KieBase is not updating when update rules using KieScanner. Message-ID: <1409915833179-4030750.post@n3.nabble.com> *History :* Previously we were using Drool 5.6.0.Final version and for dynamic rule updation we configured KnowledgeAgent with changeset xml. This was working like a charm, whenever we update our rules [.drl file] already existing knowledgebase also gets updated. *Issue:* Now we updated to Drool 6.1.0.Final version and using KieScanner for dynamic updation of rules [rules deployed as kjar] When we deployed kjar with latest rules, In logs we see that KieScanner picking newly deployed kjar. *INFO KieRepositoryImpl - KieModule was added:ZipKieModule[ ReleaseId=com.abc:kJar:4.0file=C:\Users\xxxx\.m2\repository\com\abc\kJar\4.0\kJar-4.0.jar] INFO KieScanner - The following artifacts have been updated: {com.abc:kJar:3.0=com.abc:kJar:jar:4.0}* *But my already exiting KieBase is not updated even after this.* If I create new KieBase it picking new changes, is there any configuration I missing for updating my exiting kiebase?? -- View this message in context: http://drools.46999.n3.nabble.com/Existing-KieBase-is-not-updating-when-update-rules-using-KieScanner-tp4030750.html Sent from the Drools: User forum mailing list archive at Nabble.com. From dbrownell83 at hotmail.com Fri Sep 5 10:25:20 2014 From: dbrownell83 at hotmail.com (djb) Date: Fri, 5 Sep 2014 07:25:20 -0700 (PDT) Subject: [rules-users] Drools 6 BRMS workflow In-Reply-To: <1409826229102-4030745.post@n3.nabble.com> References: <1409567417299-4030735.post@n3.nabble.com> <1409826229102-4030745.post@n3.nabble.com> Message-ID: <1409927120784-4030751.post@n3.nabble.com> So the issue is that uploaded artifacts can't have certain dependencies, such as log4j, or xstream. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-BRMS-workflow-tp4030735p4030751.html Sent from the Drools: User forum mailing list archive at Nabble.com. From shankhabanerjee at gmail.com Wed Sep 10 03:01:17 2014 From: shankhabanerjee at gmail.com (shankha) Date: Wed, 10 Sep 2014 00:01:17 -0700 (PDT) Subject: [rules-users] Drools causes switch(enum e) to break? In-Reply-To: <1399332214613-4029430.post@n3.nabble.com> References: <1397471489169-4029233.post@n3.nabble.com> <1399212311198-4029417.post@n3.nabble.com> <1399292303125-4029427.post@n3.nabble.com> <1399332214613-4029430.post@n3.nabble.com> Message-ID: <1410332477283-4030757.post@n3.nabble.com> Could you please confirm if you continue to see the errors in Kepler or Mars. I was able to reproduce the error on Kepler, but I do not see the error now. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-causes-switch-enum-e-to-break-tp4029233p4030757.html Sent from the Drools: User forum mailing list archive at Nabble.com. From dushman at gmail.com Wed Sep 10 08:46:14 2014 From: dushman at gmail.com (dushman at gmail.com) Date: Wed, 10 Sep 2014 05:46:14 -0700 (PDT) Subject: [rules-users] kie-spring integration with drools-wb Message-ID: <1410353174859-4030758.post@n3.nabble.com> Can anyone point me out to integrate drools-wb using kie-spring? I managed to set up drools-wb with tomcat and was able to deploy artifacts to internal maven repo. having hard time setting up kieScanner using kie-spring. Thanks, Dushman -- View this message in context: http://drools.46999.n3.nabble.com/kie-spring-integration-with-drools-wb-tp4030758.html Sent from the Drools: User forum mailing list archive at Nabble.com. From srikanthmalli at gmail.com Thu Sep 11 17:35:30 2014 From: srikanthmalli at gmail.com (srikanthmalli) Date: Thu, 11 Sep 2014 14:35:30 -0700 (PDT) Subject: [rules-users] Ruleflow not working with stateless session in drools-server 5.5.0.Final In-Reply-To: References: <1358450355513-4021624.post@n3.nabble.com> <1358538351686-4021652.post@n3.nabble.com> <1360076638927-4022072.post@n3.nabble.com> <1360336104368-4022161.post@n3.nabble.com> Message-ID: <1410471330751-4030760.post@n3.nabble.com> I am having the same issue with rule flow, how did you solve the issue? Thanks, Sri -- View this message in context: http://drools.46999.n3.nabble.com/Ruleflow-not-working-with-stateless-session-in-drools-server-5-5-0-Final-tp4021624p4030760.html Sent from the Drools: User forum mailing list archive at Nabble.com. From dushman at gmail.com Fri Sep 12 02:32:43 2014 From: dushman at gmail.com (dushman at gmail.com) Date: Thu, 11 Sep 2014 23:32:43 -0700 (PDT) Subject: [rules-users] Persistence in Drools 6 In-Reply-To: References: Message-ID: <1410503563927-4030761.post@n3.nabble.com> Hi Jean Philippe, I managed to get around using kie-spring with KieScanner integration. if you use exact configuration as below you will be able to setup persistence, scanner together with spring 6.1.0. LATEST*" /> defaultKieBase*"> defaultKieSession*"> In a separate bean execute below code to set-up scanner (can use init-method). ReleaseId releaseId = (ReleaseId) applicationContext.getBean("kReleaseId"); KieServices ks = KieServices.Factory.get(); KieContainer kieContainer = ks.newKieContainer(releaseId); KieScanner kieScanner = ks.newKieScanner(kieContainer); //kieScanner.start(5000L); kieScanner.scanNow(); Note highlighted text snippets. use them as is. Caveat is , when you set-up kbase with a release id and kiecontainer, default beans created by spring would be ignored. instead container would create default kbase and a ksession(s)(stateful,stateless) for you. those names should be included as highlighted. This is totally a workaround I found while debugging and yet to test if scanner functionality is working properly. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Persistence-in-Drools-6-tp4029655p4030761.html Sent from the Drools: User forum mailing list archive at Nabble.com. From ganchix at gmail.com Mon Sep 15 06:59:33 2014 From: ganchix at gmail.com (Ganchix) Date: Mon, 15 Sep 2014 03:59:33 -0700 (PDT) Subject: [rules-users] Drools Execution, get number of retracted Message-ID: <1410778773762-4030775.post@n3.nabble.com> I'm trying to return the numbers of retracts that a drools session execution have. I can obtain the number of executions: ... final Command fireAllRulesCmd = CommandFactory.newFireAllRules("executed-rules"); cmds.add(fireAllRulesCmd); ... session.execute(CommandFactory.newBatchExecution(cmds)); final Integer executedRules = (Integer) execute.getValue("executed-rules"); .... Are there a similar way to obtain all "retracted-rules"? Thanks!! Regards -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Execution-get-number-of-retracted-tp4030775.html Sent from the Drools: User forum mailing list archive at Nabble.com. From nathalie.ravenel at gmail.com Mon Sep 15 07:46:18 2014 From: nathalie.ravenel at gmail.com (natrav) Date: Mon, 15 Sep 2014 04:46:18 -0700 (PDT) Subject: [rules-users] Thread blocked drools 6.1.0 Message-ID: <1410781578536-4030776.post@n3.nabble.com> I upgraded my drools libraries. I got some drools-worker-2 thread blocked and after the main thread of my program is also "Monitoring" (blocked). How can I solve the problem ? The problem was everytime. -- View this message in context: http://drools.46999.n3.nabble.com/Thread-blocked-drools-6-1-0-tp4030776.html Sent from the Drools: User forum mailing list archive at Nabble.com. From mproctor at codehaus.org Tue Sep 16 22:51:44 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Wed, 17 Sep 2014 03:51:44 +0100 Subject: [rules-users] Decision Camp is just 1 Month away (SFO 13 Oct) Message-ID: http://blog.athico.com/2014/09/decision-camp-is-just-1-month-away-sfo.html ? Decision Camp, San Francisco October 2014, is only one month away, and is free for all attendees who register. Follow the link here, for more details on agenda and registration. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140917/b2953524/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: bCm9Lvf.png Type: image/png Size: 131609 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-users/attachments/20140917/b2953524/attachment-0001.png From reddy.lakshmi at gmail.com Thu Sep 18 03:04:58 2014 From: reddy.lakshmi at gmail.com (LaKhI ReDdY!!!!!!!!!!!) Date: Thu, 18 Sep 2014 12:34:58 +0530 Subject: [rules-users] Error while Uploading the Model jar file in Guvrnor 5.1.1 Message-ID: Hi, I am getting the following error while uploading the Model jar file, I suggesting to avoid this error? UI error message : Unable to import into the file. May be you have provided the Invalid Path / Invalid File and Server log message is : %-5p 14-09 21:57:54,508 (VersionableItem.java:checkout:637) Error occured while checking out the asset javax.jcr.ReferentialIntegrityException: Target node 022eb645-b7da-4d43-8fec-7eba2c16c8c7 of REFERENCE property does not exist at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.checkReferentialIntegrity(SharedItemStateManager.java:1056) at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:574) at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1110) at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1140) at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351) at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354) at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326) at org.apache.jackrabbit.core.version.VersionManagerImplBase$WriteOperation.save(VersionManagerImplBase.java:463) at org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerImplBase.java:209) at org.apache.jackrabbit.core.VersionManagerImpl.checkout(VersionManagerImpl.java:117) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140918/afed3838/attachment.html From seshirekha at mail.be Fri Sep 19 08:41:22 2014 From: seshirekha at mail.be (seshirekha) Date: Fri, 19 Sep 2014 05:41:22 -0700 (PDT) Subject: [rules-users] Best INFORMATICA Online Training in India | USA | UK | Australia Message-ID: <1411130482034-4030791.post@n3.nabble.com> SAP Centre Provides the Best INFORMATICA Training through Online. Our Informatica Online Training curriculum is designed with user-friendly modules and a comprehensive platform, which is customized on the grasping nature of every individual student. Our wide range of audios and web conferencing tools during Informatica training helps the students to achieve their goal irrespective of geographical locations. Some of the Infromatica Course topics that covered by our professionals: 1.What is Data warehousing? 2.Why Data warehousing? 3.Slowly Changing Dimensions (SCD1, SCD2, and SCD3). 4.Metadata. 5.Dimentinal Table. 6.Types of Dim Tables. 7.Fact Table. 8.Types of Fact Tables. 9.OLTP (Online Transaction Processing). 10.OLAP (Online Analysis and Processing). And many sub topics are there for more details please go through the official website. Please call us for the Demo Classes we have regular batches and weekend batches. Contact Number: INDIA: +91-8686984442, Email: saponlinecentre at gmail.com, Web: http://www.sapboonline.com/informatica-online-training/ -- View this message in context: http://drools.46999.n3.nabble.com/Best-INFORMATICA-Online-Training-in-India-USA-UK-Australia-tp4030791.html Sent from the Drools: User forum mailing list archive at Nabble.com. From betty.tjandra at gd-ais.com Fri Sep 19 15:04:39 2014 From: betty.tjandra at gd-ais.com (btjandra) Date: Fri, 19 Sep 2014 12:04:39 -0700 (PDT) Subject: [rules-users] Embedding Guvnor 6 Guided Editor In-Reply-To: <1392065457318-4028045.post@n3.nabble.com> References: <1392065457318-4028045.post@n3.nabble.com> Message-ID: <1411153479670-4030792.post@n3.nabble.com> Hi, I am looking to upgrade to the new kie workbench 6 as well. Have you done that? Any documentation you know? Any advice would be appreciated. Thanks! -- View this message in context: http://drools.46999.n3.nabble.com/Embedding-Guvnor-6-Guided-Editor-tp4028045p4030792.html Sent from the Drools: User forum mailing list archive at Nabble.com. From seshirekha at mail.be Sat Sep 20 03:14:54 2014 From: seshirekha at mail.be (seshirekha) Date: Sat, 20 Sep 2014 00:14:54 -0700 (PDT) Subject: [rules-users] CORE JAVA Online Training and Certification Training in USA | UK | India | New York | Singapore Message-ID: <1411197294410-4030794.post@n3.nabble.com> SAP Centre offers the Best CORE JAVA Online Training which is informative and helpful training for fresher?s who have just graduated their IT degree and also for Employees. We will provide Quality study material, E-books for Core Java which will useful to our students during and after completion of Core Java Training. So, at the end of the Core Java training you will be well equipped with the knowledge and skills to handle any task at your work. *Some of the Core Java Course topics that covered by our professionals:* *Introduction to CORE JAVA (J2SE):* 1.Primary Goals of Java Technology. 2.Simple Java Program. 3.Object Oriented Programming. *Objectives:* 1.Declaring Java Technology Classes. 2.Declaring Methods, Attributes. 3.Encapsulation, Information Hiding. 4.Constructors. 5.Packages. *And many sub topics are there for more details please go through the website.* Please call us for the Demo Classes we have regular batches and weekend batches. *Contact Number: INDIA:* +91-8686984442, *Email:* saponlinecentre at gmail.com, *Web:* http://www.sapboonline.com/core-java-online-training/ -- View this message in context: http://drools.46999.n3.nabble.com/CORE-JAVA-Online-Training-and-Certification-Training-in-USA-UK-India-New-York-Singapore-tp4030794.html Sent from the Drools: User forum mailing list archive at Nabble.com. From seshirekha at mail.be Mon Sep 22 03:25:55 2014 From: seshirekha at mail.be (seshirekha) Date: Mon, 22 Sep 2014 00:25:55 -0700 (PDT) Subject: [rules-users] Best SAP HANA Online Training in INDIA | USA | UK | CANADA Message-ID: <1411370755957-4030800.post@n3.nabble.com> SAP Centre provides the Best of the Best SAP HANA Online Training to the students who are passion and dedicated to learn the SAP HANA Course. The Students can choose their comfortable timings from anywhere of the world to learn SAP HANA through online with real-time methodologies. We will provide the complete technical support to our students for resume preparation and to attend interviews after completion of SAP HANA Training. *Some of the SAP HANA Course topics that covered by our professionals:* *Introduction to SAP:* 1.Introduction to SAP HANA. 2.SAP In-Memory Strategy. 3.HANA compare to BWA. *Look & Feel:* 1.In-Memory Computing Studio. 2.Administration view. 3.Navigator View. 4.System Monitor. 5.Information Modeler. *And many sub topics are there for more details please go through the website.* Please call us for the Demo Classes we have regular batches and weekend batches. *Contact Number: INDIA:* +91-8686984442, *Email:* saponlinecentre at gmail.com, *Web:* http://www.sapboonline.com/sap-hana-online-training/ -- View this message in context: http://drools.46999.n3.nabble.com/Best-SAP-HANA-Online-Training-in-INDIA-USA-UK-CANADA-tp4030800.html Sent from the Drools: User forum mailing list archive at Nabble.com. From jmercier at genoscope.cns.fr Mon Sep 22 04:39:15 2014 From: jmercier at genoscope.cns.fr (Jonathan MERCIER) Date: Mon, 22 Sep 2014 10:39:15 +0200 Subject: [rules-users] Rules / Machine Learning / Bayesian network Message-ID: <1411375155.28320.14.camel@jbrowse> Dear, I come here to collect some information on these subjects. I found that in 2008 a student of Mark Proktor (Gizil Oguz ) worked on a machine learning using drools. And currently Mark work on a Bayesian approach. These subjects are really exciting. Bayesian Belief Network needs to be able to put a probability value on each event and for this using machine learning is a way to do. So I would like to know how if they are somewhere a little example which put all of these good projects in one? After Gizil Oguz finished his work, we never heard about drools and machine learning. I would like to know if that is normal ? Or maybe using weka and drools is better ? Thanks you everybody, any information on these subject could to be interesting :-) Have fun Jonathan From ge0ffrey.spam at gmail.com Tue Sep 23 01:53:18 2014 From: ge0ffrey.spam at gmail.com (Geoffrey De Smet) Date: Tue, 23 Sep 2014 07:53:18 +0200 Subject: [rules-users] This mailing list is closed, use the google group instead Message-ID: Just a friendly reminder to use the google group instead: https://groups.google.com/forum/#!forum/drools-usage -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140923/6d6deec6/attachment.html From calcacuervo at gmail.com Tue Sep 23 23:59:26 2014 From: calcacuervo at gmail.com (Demian Calcaprina) Date: Wed, 24 Sep 2014 00:59:26 -0300 Subject: [rules-users] Drools Timers Message-ID: Hey Guys, I am trying to use to use the timer in the rule, but I don't fully understand it. I have a simple rule which says rule "Test" timer(int: 1s) when Something() then System.out.println("Something Happens"); end And I insert 100 Someting() object, after 1 second I see 100 activations. - Can I do with the timer something like "run this rule once per minute" for example? - When does the timer start to run? Thanks in advance, Demian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140924/e2fcc1a8/attachment.html From salaboy at gmail.com Wed Sep 24 03:44:10 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Wed, 24 Sep 2014 08:44:10 +0100 Subject: [rules-users] Drools Timers In-Reply-To: References: Message-ID: Hi Demian, As far as I remember you can use a CRON like expression in the timer definition which will allow you to do that exactly. On Wed, Sep 24, 2014 at 4:59 AM, Demian Calcaprina wrote: > Hey Guys, I am trying to use to use the timer in the rule, but I don't > fully understand it. > I have a simple rule which says > > rule "Test" > > timer(int: 1s) > when > Something() > then > System.out.println("Something Happens"); > end > > And I insert 100 Someting() object, after 1 second I see 100 activations. > - Can I do with the timer something like "run this rule once per minute" > for example? > - When does the timer start to run? > > Thanks in advance, > > Demian > > _______________________________________________ > rules-users mailing list > rules-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140924/21b3b26b/attachment-0001.html From federico.bertola88 at gmail.com Thu Sep 25 11:40:24 2014 From: federico.bertola88 at gmail.com (Federico Bertola) Date: Thu, 25 Sep 2014 17:40:24 +0200 Subject: [rules-users] Drools Timers In-Reply-To: References: Message-ID: <54243768.4060505@gmail.com> Hi all, I've a big rule file that contains *many* rules like this: rule "rule1" when $obj1: OBJ(a==false, b=="C") $obj2: OBJ(b=="B", a==false) then <...> end Inspecting the RETE tree I've noticed that the first layer contains two alpha node, one for "a==false" and one for "b=="B", than the second layer contains the duplicate alpha node for "a==false" and one for "b==C". This is somewhat (at least for me) counter intuitive, because I thought the algorithm would be a little bit smarter trying to order the clauses from the most restrictive to the least. I there a particular reason why this optimization it's not implemented? It's difficult or semantically incorrect? I've noticed this because compiling this file with many rules which have no particular order on clauses led to a tree with a extremely large first level. This obviously was detrimental but a simple ordering of the clauses fixed it. This became a problem only when we upgraded form 5.0.1 to 6.1.0-Final. Why I didn't noticed any performance problem with the previous version of Drools? Thanks in advance. Federico. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140925/80a76a98/attachment.html