Re: [rules-users] when should we the not operator.

2011-08-04 Thread Esteban Aliverti
Which version of Drools are you using? How are you inserting the facts? How are you interacting with the knowledge session? The rule seems correct to me. Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.word

Re: [rules-users] when should we the not operator.

2011-08-04 Thread arun1979
Any ideas, Thanks arun -- View this message in context: http://drools.46999.n3.nabble.com/when-should-we-the-not-operator-tp3225995p3226353.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-us

Re: [rules-users] when should we the not operator.

2011-08-04 Thread arun1979
I am using the stream mode as depicted by the code below *configuration.setOption(EventProcessingOption.STREAM); * Both EventX and EventY are of the same type. Actually my mistake the rule is like this declare EventX @role( event ) @timestamp( eventDate ) @expires( 2m ) end rule "t

Re: [rules-users] when should we the not operator.

2011-08-04 Thread Esteban Aliverti
2 questions: Is EventY also declared as event? Are you using STREAM mode? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Thu, Aug 4, 2011 at 6:59 PM, arun1979 wrote: > Below is the code

[rules-users] when should we the not operator.

2011-08-04 Thread arun1979
Below is the code declare EventX @role( event ) @timestamp( eventDate ) @expires( 2m ) end rule "test rule" no-loop when event : EventX(eventType == 'XYZ', $oId :Id) not ( EventY(eventType == 'ABC', Id == $oId, this after[0s,8s] event)) then //fire the rule. code never reac