[rules-users] Conditional 'not' invalid for event streams?

Barry Kaplan groups1 at memelet.com
Sun Aug 30 20:46:25 EDT 2009


I'm trying to formulate a condition like:

	$se : StartEvent()                               
		from entry-point "stream"
		
	$fe : FinishedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se) 
		from entry-point "stream"
		  
	not AbortedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se) 
		from entry-point "stream"

A compile error is issued due to the use of 'not' on the last clause. Is
this not supported? Is there another way to obtain this behavior.

Even this simple clause is not value:

        not AbortedEvent()  from entry-point "stream"


----
The corresponding esper for this would be something like:

    select * from pattern [every s=StartEvent -> 
        (f=FinishedEvent(exchangeId = s.echangeId) where timer:within(30
sec)
            and not AbortedEvent(exchangeId = s.echangeId) where
timer:within(30 sec)]

-- 
View this message in context: http://www.nabble.com/Conditional-%27not%27-invalid-for-event-streams--tp25217095p25217095.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list