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 manohar.kokk...@tcs.com Hi, I am trying to execute Banking Tutorial Example given in Drools expert(*

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] 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

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

2010-08-16 Thread Tan Hui Onn
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 hui...@gmail.com wrote: Some additional note to my question. The intended clustering need not to support session failover

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, nanic23

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 hui...@gmail.com wrote: Hi Nick, You are absolutely right that the timer

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