Re: [rules-users] Fusion: Insert passed events

2012-03-16 Thread Edson Tirelli
Wolfgang's answer is spot on. Pretend that you are not using an engine... imagine that you are implementing a java method in a java application to handle this use case... how would you do it? Either you use the timestamp at the source or the timestamp at the engine. Either you execute your actio

Re: [rules-users] Fusion: Insert passed events

2012-03-16 Thread javadude
I guess the engine use the insert fact timestamp and not the annotated timestamp for the non-existence of a event. Think it would not be easy to implement the engine, because you need to take care of past and future events. And for past events, both the events where the trigger did not pass yet and

Re: [rules-users] Fusion: Insert passed events

2012-03-14 Thread Wolfgang Laun
Use the "true" time of the event for the event's @imestamp attribute and do not rely on the automatic timestamp added by the engine. Of course, if some event is delayed on the wire, rules checking the absence of an event will still fire incorrectly. -W On 14/03/2012, javadude wrote: > Hi ! > s

[rules-users] Fusion: Insert passed events

2012-03-14 Thread javadude
Hi ! scenario: Event A then Event B. If there is no Event B after 5 min of A then trigger rule. *when time1:(Event) from entry-point xxx not (Event(this after[ 0,5m ] time1)) from entry-point xxx then ... end* For realtime event that works fine, but in real life you have the event coming in d