Re: [rules-users] Exception in Banking Tutorial in Drools expert guide...

2011-09-23 Thread Tan Hui Onn
Obviously, it should be for (int i=0; i < facts.length;i++), right? 2011/9/23 Manohar Kokkula > Hi, > > I am trying to execute Banking Tutorial Example given in Drools expert(* > http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e7769 > *

Re: [rules-users] Is there any way to find out last two events with some common properties

2011-01-19 Thread Tan Hui Onn
Below is my idea. The rule check that there is 1) no event between E1 and E2 and 2) no event after E2 which induce that E1 and E2 are the last 2 event. I think it should work but I didn't test it. rule "Props" when $E1 : MyEvent(prop1 == "MyProp") from entry-point MyStream $E2

Re: [rules-users] Embedded Drools into clustered application

2010-08-16 Thread Tan Hui Onn
deployment and distribution of > your knowledge session across the grid and also do that transparently for > your application :) > Greetings. > > On Mon, Aug 16, 2010 at 2:20 AM, Tan Hui Onn wrote: >> >> Some additional note to my question. The intended clustering nee

Re: [rules-users] Is Drools 5.1 backward compatible with 5.0.1?

2010-08-16 Thread Tan Hui Onn
Are the test cases failed because of java.lang.NullPointerException at org.drools.command.runtime.BatchExecutionCommand.execute(BatchExecutionCommand.java:142) at org.drools.command.runtime.BatchExecutionCommand.execute(BatchExecutionCommand.java:1) at org.drools.impl.Sta

Re: [rules-users] Embedded Drools into clustered application

2010-08-15 Thread Tan Hui Onn
Some additional note to my question. The intended clustering need not to support session failover. In other words, the session states will not be replicated from one server to another. On Fri, Aug 13, 2010 at 8:36 PM, cafebabe wrote: > > Hi, > Based on my understanding from reading some drools po

Re: [rules-users] Using Drools for Business Rules Validation

2010-07-29 Thread Tan Hui Onn
Hi, I am not sure whether you are aware of Drools DSL, it seems it can fit well to you problem. http://www.packtpub.com/article/human-readable-rules-with-drools-jboss-rules-part1 Best regards, Tan Hui Onn On Wed, Jul 28, 2010 at 11:59 PM, pm-lemos wrote: > > Hi everybody, > >

Re: [rules-users] Timers' Week :)

2010-07-23 Thread Tan Hui Onn
Hi Nick and Kris, I tested with latest codes from trunk, both Nick's test (Timer with ksession.fireUntilHalt()) and PersistentStatefulSessionTest.testPersistenceTimer() are working now (i.e "Timer Triggered" was printed). Thanks and best regards, Hui Onn On Thu, Jul 22, 2010 at 6:58 AM, nanic2

Re: [rules-users] Implementing Timers With Drools Persistence Enabled

2010-07-15 Thread Tan Hui Onn
I just found out that this is a (fixed) known issue: https://jira.jboss.org/browse/JBRULES-2552 Deadlock when using fireUntilHalt on SingleSessionCommandService On Tue, Jul 13, 2010 at 7:49 PM, Tan Hui Onn wrote: > Hi Nick, > > You are absolutely right that the timer is not tri

Re: [rules-users] Implementing Timers With Drools Persistence Enabled

2010-07-13 Thread Tan Hui Onn
Hi Nick, You are absolutely right that the timer is not triggered in CommandBasedStatefulKnowledgeSession (which is used for JPA persistence). I have spent some time to troubleshoot it. There is some finding regarding to this problem. Maybe other experts are willing to solve it. In org.drools.per