From mproctor at codehaus.org Sun May 4 15:46:32 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Sun, 4 May 2014 20:46:32 +0100 Subject: [rules-dev] Build drools-eclipse with maven 3.1 In-Reply-To: <1397675497856-4029284.post@n3.nabble.com> References: <1397675497856-4029284.post@n3.nabble.com> Message-ID: <79A5D54C-43D3-4E03-B5C3-5A6B51EAA42C@codehaus.org> we?ll look into it for the next release. Mark On 16 Apr 2014, at 20:11, solo95 wrote: > Hi, > I've tried to build drools-eclipse 6.1.0-SNAPSHOT and the tycho seems to > fail - I saw it was the 0.16.0 and I've changed it to 0.19.0 since changes > in maven makes it neccesary to use tycho 0.18.0 or later in order to work. > Is it possible to change the drools-eclipse/pom.xml line to a later version > of tycho? > > (I did not find any report issiue at github site so I've posted it here...) > > 0.19.0 > > Cheers, > Mario > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Build-drools-eclipse-with-maven-3-1-tp4029284.html > Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev From roger at precipicetech.com Wed May 7 16:36:18 2014 From: roger at precipicetech.com (rogerL) Date: Wed, 7 May 2014 13:36:18 -0700 (PDT) Subject: [rules-dev] Expression Timer NPE Drools 6.0.1.Final Message-ID: <1399494977858-4029469.post@n3.nabble.com> Hello, I'm encountering an NPE when attempting to use and expression timer in my rule. env: Drools 6.0.1.Final OS Maverick IDE Intellij Idea Java 7 Given the ebb and flow nature of the facts in the system, we want to be able to control the cycles dynamically. Hence the desire to use the expression timer. The expression that I tried is based on the 6.0.1 documentation. That is, something of the form *Timer(expr: $d, $p)* In an effort to get beyond the NPE, I tried playing around with the parameters by using combinations of both longs and appropriately formatted strings (e.g. 10s, 1m, etc), and using only the delay. I saw mention that a semicolon should follow the expression. That equally failed. The interval and cron timer variations, however, both work. The .drl and exception are: declare SystemControlData isEnabled : boolean = false delay : long = 30 period : long = 60000 maxCallQueueDepth : int = 1 end rule "If the system is enabled start campaign check at specified interval" agenda-group "system_criteria" // auto-focus true salience 20 // timer( expr: $d, $p ) throws NPE // timer( expr: $d; ) throws NPE timer(cron:0/5 * * * * ?) when SystemControlData(isEnabled==true, $d: delay, $p:period, maxCallQueueDepth>0) then drools.setFocus( "campaign_criteria" ); end Exception in thread "SimpleAsyncTaskExecutor-1" java.lang.NullPointerException at org.drools.core.base.mvel.MVELCompilationUnit.createFactory(MVELCompilationUnit.java:262) at org.drools.core.base.mvel.MVELCompilationUnit.getFactory(MVELCompilationUnit.java:276) at org.drools.core.base.mvel.MVELObjectExpression.getValue(MVELObjectExpression.java:76) at org.drools.core.time.TimeUtils.evalTimeExpression(TimeUtils.java:140) at org.drools.core.time.impl.ExpressionIntervalTimer.createTrigger(ExpressionIntervalTimer.java:151) at org.drools.core.phreak.PhreakTimerNode.createTrigger(PhreakTimerNode.java:260) at org.drools.core.phreak.PhreakTimerNode.scheduleLeftTuple(PhreakTimerNode.java:230) at org.drools.core.phreak.PhreakTimerNode.doLeftInserts(PhreakTimerNode.java:93) at org.drools.core.phreak.PhreakTimerNode.doNode(PhreakTimerNode.java:69) at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:357) at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161) at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116) at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:200) at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:67) at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:935) at org.drools.core.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1160) at org.drools.core.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:1002) at org.drools.core.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:978) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:273) -- View this message in context: http://drools.46999.n3.nabble.com/Expression-Timer-NPE-Drools-6-0-1-Final-tp4029469.html Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. From mproctor at codehaus.org Sat May 10 13:06:39 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Sat, 10 May 2014 18:06:39 +0100 Subject: [rules-dev] Expression Timer NPE Drools 6.0.1.Final In-Reply-To: <1399494977858-4029469.post@n3.nabble.com> References: <1399494977858-4029469.post@n3.nabble.com> Message-ID: <9B211358-BAD7-4F4C-B817-3A6A0C2C86D3@codehaus.org> We have a number of unit tests for expressions: https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarTest.java Could you add a unit test to demonstrate your problem, and submit it as a pull request? http://docs.jboss.org/drools/release/5.5.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html Mark On 7 May 2014, at 21:36, rogerL wrote: > Hello, > > I'm encountering an NPE when attempting to use and expression timer in my > rule. > env: > Drools 6.0.1.Final > OS Maverick > IDE Intellij Idea > Java 7 > > Given the ebb and flow nature of the facts in the system, we want to be able > to control the cycles dynamically. Hence the desire to use the expression > timer. > The expression that I tried is based on the 6.0.1 documentation. > That is, something of the form *Timer(expr: $d, $p)* > In an effort to get beyond the NPE, I tried playing around with the > parameters by using combinations of both longs and appropriately formatted > strings (e.g. 10s, 1m, etc), and using only the delay. > I saw mention that a semicolon should follow the expression. That equally > failed. > The interval and cron timer variations, however, both work. > > > The .drl and exception are: > > declare SystemControlData > isEnabled : boolean = false > delay : long = 30 > period : long = 60000 > maxCallQueueDepth : int = 1 > end > > > rule "If the system is enabled start campaign check at specified interval" > agenda-group "system_criteria" > // auto-focus true > salience 20 > // timer( expr: $d, $p ) throws NPE > // timer( expr: $d; ) throws NPE > timer(cron:0/5 * * * * ?) > when > SystemControlData(isEnabled==true, $d: delay, $p:period, > maxCallQueueDepth>0) > then > drools.setFocus( "campaign_criteria" ); > end > > > > Exception in thread "SimpleAsyncTaskExecutor-1" > java.lang.NullPointerException > at > org.drools.core.base.mvel.MVELCompilationUnit.createFactory(MVELCompilationUnit.java:262) > at > org.drools.core.base.mvel.MVELCompilationUnit.getFactory(MVELCompilationUnit.java:276) > at > org.drools.core.base.mvel.MVELObjectExpression.getValue(MVELObjectExpression.java:76) > at org.drools.core.time.TimeUtils.evalTimeExpression(TimeUtils.java:140) > at > org.drools.core.time.impl.ExpressionIntervalTimer.createTrigger(ExpressionIntervalTimer.java:151) > at > org.drools.core.phreak.PhreakTimerNode.createTrigger(PhreakTimerNode.java:260) > at > org.drools.core.phreak.PhreakTimerNode.scheduleLeftTuple(PhreakTimerNode.java:230) > at > org.drools.core.phreak.PhreakTimerNode.doLeftInserts(PhreakTimerNode.java:93) > at org.drools.core.phreak.PhreakTimerNode.doNode(PhreakTimerNode.java:69) > at > org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:357) > at > org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161) > at > org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116) > at > org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:200) > at > org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:67) > at > org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:935) > at > org.drools.core.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1160) > at > org.drools.core.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:1002) > at > org.drools.core.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:978) > at > org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:273) > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Expression-Timer-NPE-Drools-6-0-1-Final-tp4029469.html > Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev From mproctor at codehaus.org Sun May 11 19:00:42 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Mon, 12 May 2014 00:00:42 +0100 Subject: [rules-dev] Anyone want to help on our new Rule Algorithm? Message-ID: <08CAFEF8-E230-4FE5-96CE-1B25B0525FE2@codehaus.org> If anyone is interested in helping out on our next generation rule algorithm, we?ll offer personal mentoring to get you started on your way. Just ping my email directly, to discuss: http://blog.athico.com/2013/11/rip-rete-time-to-get-phreaky.html Mark From mproctor at codehaus.org Sun May 11 23:24:52 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Mon, 12 May 2014 04:24:52 +0100 Subject: [rules-dev] Anyone want to help on our new Rule Algorithm? In-Reply-To: <08CAFEF8-E230-4FE5-96CE-1B25B0525FE2@codehaus.org> References: <08CAFEF8-E230-4FE5-96CE-1B25B0525FE2@codehaus.org> Message-ID: <3FDAC646-A55A-47FE-B4A5-A81E40B1D2C0@codehaus.org> A first good topic, now that we build and propagate tuple sets, is can we parallelism our joins? Look at the insert loop, on line 94. So it iterates and builds a resulting tuple set, which is eventually propagated. Can that set be built in parallel? https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java The key aspect is the iterator right memory. While that memory may or may not be indexed, it always returns a list. In the case of indexing, the list will sublist for that overall memory. Ideally those lists will be adaptive, only turning on parallel iteration when appropriate (enough joins), while trying to avoid any additional cost when parallel iteration is not used. Note currently all lists, are liked lists - we do not use arrays. Once that works, the other methods, right insert, update and delete can all be parallelized. Mark On 12 May 2014, at 00:00, Mark Proctor wrote: > If anyone is interested in helping out on our next generation rule algorithm, we?ll offer personal mentoring to get you started on your way. Just ping my email directly, to discuss: > http://blog.athico.com/2013/11/rip-rete-time-to-get-phreaky.html > > Mark From wolfgang.laun at gmail.com Mon May 12 07:21:30 2014 From: wolfgang.laun at gmail.com (Wolfgang Laun) Date: Mon, 12 May 2014 13:21:30 +0200 Subject: [rules-dev] [rules-users] Rules don't execute using MVEL syntax in RHS - Possible Bug In-Reply-To: <1399890524929-4029517.post@n3.nabble.com> References: <1399629087446-4029494.post@n3.nabble.com> <1399633227201-4029496.post@n3.nabble.com> <1399890524929-4029517.post@n3.nabble.com> Message-ID: Repeated executions show varying results: sometimes it's OK, sometimes it isn't. I don't think it's a race condition in your code (although proper syncing on the map would be the "clean" way to go). I think that salience doesn't work properly )(6.0.0, OP used 6.0.1.), if a fact is matched unconditionally by a high salience rule and the same fact is matched using constraints in rules with lesser priority. (Wasn't this recognized before as a bug in 6.0.x?) -W On 12/05/2014, jlprat wrote: > Hi, > I updated my test code to use your way of creating the Knowledge Base > (using > KieBase) and I have the exact same results. Does anyone have an idea why > this is still failing? > > Furthermore, I think the way I was initializing my rules is also supported > by Drools 6, because it's almost copied line by line from the Official > Drools API page: > https://docs.jboss.org/drools/release/6.0.1.Final/kie-api-javadoc/ > > / > A Typical example to load a rule resource. > > KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); > kbuilder.add( ResourceFactory.newUrlResource( url ), > ResourceType.DRL ); > if ( kbuilder.hasErrors() ) { > System.err.println( builder.getErrors().toString() ); > } > > KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); > kbase.addKnowledgePackages( builder.getKnowledgePackages() ); > > StatefulKnowledgeSession ksession = > knowledgeBase.newStatefulKnowledgeSession(); > ksession.insert( new Fibonacci( 10 ) ); > ksession.fireAllRules(); > > ksession.dispose();/ > > Best, > Josep > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Rules-don-t-execute-using-MVEL-syntax-in-LHS-Possible-Bug-tp4029494p4029517.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 > From kellyajp at yahoo.co.uk Mon May 12 08:12:39 2014 From: kellyajp at yahoo.co.uk (kellyajp) Date: Mon, 12 May 2014 05:12:39 -0700 (PDT) Subject: [rules-dev] Timeline for 6.0.2 or 6.1.0 release Message-ID: <1399896759071-4029522.post@n3.nabble.com> We are coming close to our next major release and are looking to include a drools upgrade, we where told that either 6.0.2 or 6.1.0 would be available shortly. What dates are we looking at for these releases? Thanks -- View this message in context: http://drools.46999.n3.nabble.com/Timeline-for-6-0-2-or-6-1-0-release-tp4029522.html Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. From mproctor at codehaus.org Mon May 12 08:35:15 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Mon, 12 May 2014 13:35:15 +0100 Subject: [rules-dev] Timeline for 6.0.2 or 6.1.0 release In-Reply-To: <1399896759071-4029522.post@n3.nabble.com> References: <1399896759071-4029522.post@n3.nabble.com> Message-ID: firm dates are never had. But we hope to 6.1 CR end of this month, then final will between 2 and 6 weeks later. Mark On 12 May 2014, at 13:12, kellyajp wrote: > We are coming close to our next major release and are looking to include a > drools upgrade, we where told that either 6.0.2 or 6.1.0 would be available > shortly. What dates are we looking at for these releases? > > Thanks > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Timeline-for-6-0-2-or-6-1-0-release-tp4029522.html > Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev From kellyajp at yahoo.co.uk Mon May 12 14:40:55 2014 From: kellyajp at yahoo.co.uk (kellyajp) Date: Mon, 12 May 2014 11:40:55 -0700 (PDT) Subject: [rules-dev] Timeline for 6.0.2 or 6.1.0 release In-Reply-To: References: <1399896759071-4029522.post@n3.nabble.com> Message-ID: That's fine we just need to know what we can go with and what work arounds we need to do. Thanks > On 12 May 2014, at 13:36, "Mark Proctor [via Drools]" wrote: > > firm dates are never had. But we hope to 6.1 CR end of this month, then final will between 2 and 6 weeks later. > > Mark > On 12 May 2014, at 13:12, kellyajp <[hidden email]> wrote: > > > We are coming close to our next major release and are looking to include a > > drools upgrade, we where told that either 6.0.2 or 6.1.0 would be available > > shortly. What dates are we looking at for these releases? > > > > Thanks > > > > > > > > -- > > View this message in context: http://drools.46999.n3.nabble.com/Timeline-for-6-0-2-or-6-1-0-release-tp4029522.html > > Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. > > _______________________________________________ > > rules-dev mailing list > > [hidden email] > > https://lists.jboss.org/mailman/listinfo/rules-dev > > > _______________________________________________ > rules-dev mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-dev > > > If you reply to this email, your message will be added to the discussion below: > http://drools.46999.n3.nabble.com/Timeline-for-6-0-2-or-6-1-0-release-tp4029522p4029525.html > To unsubscribe from Timeline for 6.0.2 or 6.1.0 release, click here. > NAML -- View this message in context: http://drools.46999.n3.nabble.com/Timeline-for-6-0-2-or-6-1-0-release-tp4029522p4029535.html Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20140512/98bc9e46/attachment.html From wolfgang.laun at gmail.com Tue May 13 04:47:07 2014 From: wolfgang.laun at gmail.com (Wolfgang Laun) Date: Tue, 13 May 2014 10:47:07 +0200 Subject: [rules-dev] Usage of rules-users Message-ID: Hi Team, the amount of (what is) noise (to me) on the users list has steadily increased over time. Several distinct topics appear (to me) to be bunched together needlessly, and I'm beginning to use interest in this list. IIRC, there was some talk several months ago, that things like planner, JBPM and Guvnor should have their own lists, but nothing has come of that. Best Wolfgang From ge0ffrey.spam at gmail.com Tue May 13 07:56:35 2014 From: ge0ffrey.spam at gmail.com (Geoffrey De Smet) Date: Tue, 13 May 2014 13:56:35 +0200 Subject: [rules-dev] Usage of rules-users In-Reply-To: References: Message-ID: <53720873.5060405@gmail.com> Hi Wolfgang, You're right. Some insight on the problem (and why it's hasn't been fixed yet): 1) Most of OptaPlanner's questions are actually asked on StackOverflow these days http://stackoverflow.com/questions/tagged/optaplanner because optaplanner.org links that too: http://www.optaplanner.org/community/forum.html 2) I'd prefer to use a Q&A website for all OptaPlanner questions, instead of a forum or mailing list. They simply work better: google searches include them (SEO), the questions/answers are higher quality & better readable, ... StackOverflow officially doesn't like it if a project links them as the official support forum... That's why optaplanner.org still links this list first. Most users go for the second link because they prefer a Q&A website :) There was discussion if Jboss.org would set up a Q&A website (there are several great Open Source options for this), but nothing has happened yet. I am basically wait for that to materialize... 3) This mailing list is hard to reach for non hardcore people: The nabble forum that mirrors this list is broken, really. This mailing list clutters inboxes. The newsgroup on gmane.org (which I use) works, but few people are comfortable with newsgroup these days. On 13-05-14 10:47, Wolfgang Laun wrote: > Hi Team, > > the amount of (what is) noise (to me) on the users list has steadily > increased over time. Several distinct topics appear (to me) to be > bunched together needlessly, and I'm beginning to use interest in this > list. IIRC, there was some talk several months ago, that things like > planner, JBPM and Guvnor should have their own lists, but nothing has > come of that. > > Best > Wolfgang > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev > From roger at precipicetech.com Tue May 13 11:45:40 2014 From: roger at precipicetech.com (Roger Lefebvre) Date: Tue, 13 May 2014 09:45:40 -0600 Subject: [rules-dev] Expression Timer NPE Drools 6.0.1.Final In-Reply-To: <9B211358-BAD7-4F4C-B817-3A6A0C2C86D3@codehaus.org> References: <1399494977858-4029469.post@n3.nabble.com> <9B211358-BAD7-4F4C-B817-3A6A0C2C86D3@codehaus.org> Message-ID: As suggested, I wrote some tests based on methods defined in the given class. That is, I extend from CommonTestMethodBase and used "loadKnowledgeBaseFromString(str)" to define the base for my KieSession. I was unable to reproduce the exception. I went through several cycles altering initializations, stripping down the rule, so forth but still to no avail. Some of the steps I followed: - Eliminate test harness. I added a main in my test class and simply instantiated that class and called the method directly. - Executed in different environment. Changed from Intellij Idea IDE, to Eclipse IDE. Have not tried command line. - In my application, I create the declared class externally and inject it into the engine The test method, on the other hand, injects the declared class via a high salience "init" rule. As such, I tried same approach in my application. - In my application, removed all other rules, global, unused declarations. Further, I pruned down the offending rule to rudimentary instructions. I have yet to dive into the drools/kie code to identify the differences, if any, between the test and application engine and rule initialization paths. Before I do, are there any suggestions on what other route I might take? Thank you, Roger On Sat, May 10, 2014 at 11:06 AM, Mark Proctor wrote: > We have a number of unit tests for expressions: > > https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarTest.java > > Could you add a unit test to demonstrate your problem, and submit it as a > pull request? > > http://docs.jboss.org/drools/release/5.5.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html > > Mark > On 7 May 2014, at 21:36, rogerL wrote: > > > Hello, > > > > I'm encountering an NPE when attempting to use and expression timer in my > > rule. > > env: > > Drools 6.0.1.Final > > OS Maverick > > IDE Intellij Idea > > Java 7 > > > > Given the ebb and flow nature of the facts in the system, we want to be > able > > to control the cycles dynamically. Hence the desire to use the expression > > timer. > > The expression that I tried is based on the 6.0.1 documentation. > > That is, something of the form *Timer(expr: $d, $p)* > > In an effort to get beyond the NPE, I tried playing around with the > > parameters by using combinations of both longs and appropriately > formatted > > strings (e.g. 10s, 1m, etc), and using only the delay. > > I saw mention that a semicolon should follow the expression. That equally > > failed. > > The interval and cron timer variations, however, both work. > > > > > > The .drl and exception are: > > > > declare SystemControlData > > isEnabled : boolean = false > > delay : long = 30 > > period : long = 60000 > > maxCallQueueDepth : int = 1 > > end > > > > > > rule "If the system is enabled start campaign check at specified > interval" > > agenda-group "system_criteria" > > // auto-focus true > > salience 20 > > // timer( expr: $d, $p ) throws NPE > > // timer( expr: $d; ) throws NPE > > timer(cron:0/5 * * * * ?) > > when > > SystemControlData(isEnabled==true, $d: delay, $p:period, > > maxCallQueueDepth>0) > > then > > drools.setFocus( "campaign_criteria" ); > > end > > > > > > > > Exception in thread "SimpleAsyncTaskExecutor-1" > > java.lang.NullPointerException > > at > > > org.drools.core.base.mvel.MVELCompilationUnit.createFactory(MVELCompilationUnit.java:262) > > at > > > org.drools.core.base.mvel.MVELCompilationUnit.getFactory(MVELCompilationUnit.java:276) > > at > > > org.drools.core.base.mvel.MVELObjectExpression.getValue(MVELObjectExpression.java:76) > > at > org.drools.core.time.TimeUtils.evalTimeExpression(TimeUtils.java:140) > > at > > > org.drools.core.time.impl.ExpressionIntervalTimer.createTrigger(ExpressionIntervalTimer.java:151) > > at > > > org.drools.core.phreak.PhreakTimerNode.createTrigger(PhreakTimerNode.java:260) > > at > > > org.drools.core.phreak.PhreakTimerNode.scheduleLeftTuple(PhreakTimerNode.java:230) > > at > > > org.drools.core.phreak.PhreakTimerNode.doLeftInserts(PhreakTimerNode.java:93) > > at > org.drools.core.phreak.PhreakTimerNode.doNode(PhreakTimerNode.java:69) > > at > > > org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:357) > > at > > > org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161) > > at > > > org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116) > > at > > > org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:200) > > at > > > org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:67) > > at > > org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:935) > > at > > > org.drools.core.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1160) > > at > > > org.drools.core.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:1002) > > at > > > org.drools.core.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:978) > > at > > > org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:273) > > > > > > > > -- > > View this message in context: > http://drools.46999.n3.nabble.com/Expression-Timer-NPE-Drools-6-0-1-Final-tp4029469.html > > Sent from the Drools: Developer (committer) mailing list mailing list > archive at Nabble.com. > > _______________________________________________ > > rules-dev mailing list > > rules-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/rules-dev > > > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev > -- Roger Lefebvre President, Precipice Technologies Inc. (e) roger at precipicetech.com (c) 403 466 2622 (f) 403 475 0566 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20140513/a49db0bb/attachment-0001.html From wolfgang.laun at gmail.com Tue May 13 13:44:06 2014 From: wolfgang.laun at gmail.com (Wolfgang Laun) Date: Tue, 13 May 2014 19:44:06 +0200 Subject: [rules-dev] [rules-users] Excel Syntax in Decision Tables In-Reply-To: <1399998865087-4029558.post@n3.nabble.com> References: <1399894022361-4029520.post@n3.nabble.com> <1399904433528-4029529.post@n3.nabble.com> <1399910129756-4029532.post@n3.nabble.com> <1399910293479-4029533.post@n3.nabble.com> <1399998865087-4029558.post@n3.nabble.com> Message-ID: That's weird, and it looks like a bug in the build process to me: Java literals are the same for byte, short and int. (CC-ing dev for possible follow-up: You may be asked to furnish a minimal test case.) As a workaround, use this in the Action column: ...; TaskTemplate1.setId( (short)$param );... (Note 1: Using "short" is pretty pointless unless you need to store a large number in an array. Note 2: Follow Java conventions for names for class fields and variables.) -W On 13/05/2014, crosbis2 wrote: > Hey, > > Not over the finish line yet, > > I tried to build the package, after the rule validated correctly, but got > the below error relating to the setId method. Have i defined the variable > correctly i tried $1 and $param. > > The view source code generated here looks the same as that of a previous > rule i generated in guvnor that works. > > Any Ideas? > > > > > > > > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Excel-Syntax-in-Decision-Tables-tp4029520p4029558.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 > From mproctor at codehaus.org Tue May 13 18:52:15 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Tue, 13 May 2014 23:52:15 +0100 Subject: [rules-dev] Usage of rules-users In-Reply-To: References: Message-ID: <718E6A58-DA05-441E-B173-EC5A1B674907@codehaus.org> I?ve asked geoffrey to setup a separate mailing list for planner, and to write on the optaplanner website what questions should not be asked on the Drools lists. We can setup an additional two new google groups for Drools. One for expert DRL questions and one for Workbench questions. Or maybe we just need to create a drools-noob list, and direct first starters there? That may actually be the best way for now, to reduce some of the most basic Qs. Mark On 13 May 2014, at 09:47, Wolfgang Laun wrote: > Hi Team, > > the amount of (what is) noise (to me) on the users list has steadily > increased over time. Several distinct topics appear (to me) to be > bunched together needlessly, and I'm beginning to use interest in this > list. IIRC, there was some talk several months ago, that things like > planner, JBPM and Guvnor should have their own lists, but nothing has > come of that. > > Best > Wolfgang > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev From wolfgang.laun at gmail.com Wed May 14 01:10:42 2014 From: wolfgang.laun at gmail.com (Wolfgang Laun) Date: Wed, 14 May 2014 07:10:42 +0200 Subject: [rules-dev] Usage of rules-users In-Reply-To: <718E6A58-DA05-441E-B173-EC5A1B674907@codehaus.org> References: <718E6A58-DA05-441E-B173-EC5A1B674907@codehaus.org> Message-ID: IIRC, absolute beginners' question aren't making the list inhomogeneous. (Poor netiquette is not necessarily a Drools beginner's symptom.) I think that separating vertically (planner, guvnor/workbench, expert+fusion) is the way to go. This is also (roughly) the way (most) Qs are answered: by Geoffrey, Michael, and others. Cheers Wolfgang On 14/05/2014, Mark Proctor wrote: > I've asked geoffrey to setup a separate mailing list for planner, and to > write on the optaplanner website what questions should not be asked on the > Drools lists. > > We can setup an additional two new google groups for Drools. One for expert > DRL questions and one for Workbench questions. Or maybe we just need to > create a drools-noob list, and direct first starters there? That may > actually be the best way for now, to reduce some of the most basic Qs. > > Mark > > > On 13 May 2014, at 09:47, Wolfgang Laun wrote: > >> Hi Team, >> >> the amount of (what is) noise (to me) on the users list has steadily >> increased over time. Several distinct topics appear (to me) to be >> bunched together needlessly, and I'm beginning to use interest in this >> list. IIRC, there was some talk several months ago, that things like >> planner, JBPM and Guvnor should have their own lists, but nothing has >> come of that. >> >> Best >> Wolfgang >> _______________________________________________ >> rules-dev mailing list >> rules-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-dev > > > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev > From ge0ffrey.spam at gmail.com Wed May 14 08:09:34 2014 From: ge0ffrey.spam at gmail.com (Geoffrey De Smet) Date: Wed, 14 May 2014 14:09:34 +0200 Subject: [rules-dev] Usage of rules-users In-Reply-To: References: <718E6A58-DA05-441E-B173-EC5A1B674907@codehaus.org> Message-ID: +1 for vertical partitioning (planner, guvnor/workbench, expert+fusion) -1 for experience-based partitioning. I believe this will cause fragmentation and confusion. On 14-05-14 07:10, Wolfgang Laun wrote: > IIRC, absolute beginners' question aren't making the list > inhomogeneous. (Poor netiquette is not necessarily a Drools beginner's > symptom.) I think that separating vertically (planner, > guvnor/workbench, expert+fusion) is the way to go. > > This is also (roughly) the way (most) Qs are answered: by Geoffrey, > Michael, and others. > > Cheers > Wolfgang > > > > On 14/05/2014, Mark Proctor wrote: >> I've asked geoffrey to setup a separate mailing list for planner, and to >> write on the optaplanner website what questions should not be asked on the >> Drools lists. >> >> We can setup an additional two new google groups for Drools. One for expert >> DRL questions and one for Workbench questions. Or maybe we just need to >> create a drools-noob list, and direct first starters there? That may >> actually be the best way for now, to reduce some of the most basic Qs. >> >> Mark >> >> >> On 13 May 2014, at 09:47, Wolfgang Laun wrote: >> >>> Hi Team, >>> >>> the amount of (what is) noise (to me) on the users list has steadily >>> increased over time. Several distinct topics appear (to me) to be >>> bunched together needlessly, and I'm beginning to use interest in this >>> list. IIRC, there was some talk several months ago, that things like >>> planner, JBPM and Guvnor should have their own lists, but nothing has >>> come of that. >>> >>> Best >>> Wolfgang >>> _______________________________________________ >>> rules-dev mailing list >>> rules-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/rules-dev >> >> _______________________________________________ >> rules-dev mailing list >> rules-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-dev >> > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev > From mproctor at codehaus.org Thu May 22 07:15:52 2014 From: mproctor at codehaus.org (Mark Proctor) Date: Thu, 22 May 2014 12:15:52 +0100 Subject: [rules-dev] London (May 26th) Drools & jBPM community contributor meeting Message-ID: London, Chiswick, May 26th to May 30th During next week a large percentage of the Drools team, some of the jBPM team and some community members will be meeting in London (Chiswick). There won?t be any presentations, we?ll just be in a room hacking, designing, exchanging ideas and planing. This is open to community members who wish to contribute towards Drools or jBPM, and want help with those contributions. This also includes people working on open source or academic projects that utilise Drools or jBPM. Email me if you want to attend, our locations may very (but within chiswick) each day. We will not be able to make the day time available to people looking for general Drools or jBPM guidance (unless you want to buy us all lunch). But we will be organising evenings things (like bowling) and could make wed or thu evening open to people wanting general chats and advice. Email me if you?re interested, and after discussing with the team, I?ll let you know. Those currently attending: Mark Proctor (mon-fri) Group architect Edson Tirelli (mon-fri) Drools backend, and project lead Mario Fusco (mon-fri) Drools backend Davide Sottara (wed-fri) Drools backend Alex Porcelli (mon-fri) Drools UI Michael Anstis (thu-fri) Drools UI Kris Verlaenen (wed-thu) jBPM backend, and project lead Mauricio Salatino (mon-fri) jBPM tasks and general UI From michael.anstis at gmail.com Fri May 23 05:02:18 2014 From: michael.anstis at gmail.com (Michael Anstis) Date: Fri, 23 May 2014 09:02:18 -0000 Subject: [rules-dev] Running Workbench applications in GWT SuperDevMode Message-ID: So, now Chrome (35+) and FireFox don't support GWT "classic" DevMode, I've managed to run drools-wb in SuperDevMode. The "classic" DevMode will not be supported in GWT 2.6: http://www.gwtproject.org/release-notes.html#Release_Notes_2_6_1 Here's my findings on how to configure your webapp, IDE and run (or debug) the damn thing. These instructions are for IDEA (NetBeans will probably follow a similar route). (1) Create a regular GWT Launcher: ? (2) Create a new GWT Launcher for SuperDevmode: ? (3) Add the following to your webapp's gwt.xml (module) file: (4) Launch your regular webapp (the "classic" GWT Launcher): ... , , , while it compiles and launches... ? (5) Launch the SuperDevMode code server (the "SuperDevMode" GWT Launcher): ... , , , while it compiles and launches... ?(6) Drag the "Dev Mode On" and "Dev Mode Off" buttons to your bookmark bar (as advised) - but we don't normally read these sort of things, right! ;) (7) Go back to the webapp's browser tab (8) Click on the "Dev Mode On" bookmark you created in step (6) ? (9) Click on "compile" ? (10) Delete the "codesvr" part of the URL and press enter (dismiss the popups that appear; which ones depends on what browser your GWT module targets; e.g. I had to dismiss a popup about using Chrome but the GWT model targets FireFox). ?(11) Done! ? (12) What's that? You want to debug your application?!? This isn't too bad. Just launch both your "classic" GWT Launcher in debug mode and the "SuperDevMode" GWT Launcher in normal mode. Server-side code needs break-points in IDEA, and client-side break-points need to be added using Chrome's Developer Tools (you'll need to make sure "sourceMaps" are enabled, but this appears to be the default in Chrome 35). Accessing Chrome's debugger: ? Debugging: ? Simple! It takes a bit of getting used to debugging client-side stuff in Chrome, and server-side stuff in IDEA, but it's not terrible (although don't expect to be able to introspect everything in Chrome like you used to in IDEA). I hope this helps (probably more so as others find "DevMode" stops working for them.... and when we move to GWT 2.6.1 --- for IE10 support --- so it is coming sooner than later). Cheers, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: compiling.png Type: image/png Size: 73762 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0010.png -------------- next part -------------- A non-text attachment was scrubbed... Name: superdevmode.png Type: image/png Size: 44394 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0011.png -------------- next part -------------- A non-text attachment was scrubbed... Name: remove-codeserv.png Type: image/png Size: 70858 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0012.png -------------- next part -------------- A non-text attachment was scrubbed... Name: normal-devmode-launch.png Type: image/png Size: 67463 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0013.png -------------- next part -------------- A non-text attachment was scrubbed... Name: debugging.png Type: image/png Size: 237629 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0014.png -------------- next part -------------- A non-text attachment was scrubbed... Name: ready.png Type: image/png Size: 71834 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0015.png -------------- next part -------------- A non-text attachment was scrubbed... Name: dev-tools.png Type: image/png Size: 130501 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0016.png -------------- next part -------------- A non-text attachment was scrubbed... Name: superdevmodel-launch.png Type: image/png Size: 87598 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0017.png -------------- next part -------------- A non-text attachment was scrubbed... Name: done.png Type: image/png Size: 339820 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0018.png -------------- next part -------------- A non-text attachment was scrubbed... Name: devmode.png Type: image/png Size: 46934 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20140523/4713f861/attachment-0019.png