[rules-users] How to design a rule using collect for filtering? Thanks.

2007-08-10 Thread Anh Vuong
Hi, I'd like to use keyword collect to do my filtering but its behaviour confused me, please advise. I greatly appreciate your help. Problem 1: when eventList : LinkedList(size == 5) from collect( Event(text matches .*rule5.* )) then System.out.println(rule5 is fired +

Re: [rules-users] How to design a rule using collect for filtering? Thanks.

2007-08-15 Thread Anh Vuong
) from collect( Event(text matches .*rule5.* )) then System.out.println(rule5 is fired + eventList.size()); for( int i = 0; i 5; i++ ) { Event e = (Event) eventList.get( i ); retract( e ); } end Hope it helps. Edson 2007/8/10, Anh Vuong [EMAIL PROTECTED

Re: [rules-users] How to design a rule using collect for filtering? Thanks.

2007-08-15 Thread Anh Vuong
http://jira.jboss.com/jira/browse/JBRULES-1086 is created. Edson Tirelli [EMAIL PROTECTED] wrote: This is a regression bug. InitialFact should not be shadowed. Can you please open a JIRA for that? Thank you Edson 2007/8/15, Anh Vuong [EMAIL PROTECTED]:Thanks for your

[rules-users] Are rules with time windows supported? Thanks.

2007-08-20 Thread Anh Vuong
Hi, My understanding is that time window rule is not supported yet in 4.0 after checking the manual and followed some blogs regarding SEP/CEP. I wonder if some workaround can be done for simple case such as collect some similar events over 1 minute. Will time window feature be included soon?

Re: [rules-users] Are rules with time windows supported? Thanks.

2007-08-21 Thread Anh Vuong
. It is a feature that will be included in the next major versions. You can emulate time windows using Time objects, but of course it will require more work as compared to built in time window support. Edson 2007/8/20, Anh Vuong [EMAIL PROTECTED]:Hi, My understanding is that time window

Re: [rules-users] check dups

2007-08-31 Thread Anh Vuong
Can it be the typo in referenceType == $referenceType where $referenceType should be $type1 [EMAIL PROTECTED] wrote: Here is my test Reference ref_test2 = new Reference(); ref_test2.setReferenceType(new ReferenceType(MISC)); ref_test2.setReferenceValue(111222); Reference ref_test3 =