Re: [rules-users] Insert fact to be used as semaphore

2013-11-05 Thread Wolfgang Laun
Primarily this is a problem of inaccurate specification, not so much of Drools or programming. Apparently, the specification doesn't say anything about re-raising an alarm after it has been started and stopped. If you have 6 events of level 5, the alarm ought to be started *and* stopped at the same

[rules-users] Insert fact to be used as semaphore

2013-11-05 Thread webfrank
Hi everybody, I'm new to drools and I would like to solve this simple situation: I have a rule which will fire when 3 or more events comes from entry-point with level > 4 in a 10s window: rule "Got 3 events" when not Alarm() t : Number(intValue > 2) from accumulate (