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 events where the backdating of the event would make the trigger
already happened...

Would be interesting to hear the opinion of the core developers.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Fusion-Insert-passed-events-tp3824630p3831195.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[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 delayed, eg. from an interface.

Example:
Event A time: 01:00 (mm:ss) but received at 02:00
Above rule will trigger at 07:00, but the business logic would require it to
be triggered at 06:00

How do I handle this kind of requirement ? 

Thanks
Sven

--
View this message in context: 
http://drools.46999.n3.nabble.com/Fusion-Insert-passed-events-tp3824630p3824630.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users