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

arun1979 t91192004 at yahoo.com
Thu Aug 4 13:55:59 EDT 2011


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 "test rule"
no-loop
when
    event : EventX(eventType == 'XYZ', $oId :Id)
    not ( EventX(eventType == 'ABC',  Id == $oId, this after[0s,8s] event))

then
//fire the rule. code never reaches here if EventX of type 'ABC' does not
occur at all
end 

--
View this message in context: http://drools.46999.n3.nabble.com/when-should-we-the-not-operator-tp3225995p3226173.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list