[rules-users] bound variable scope

2013-11-05 Thread webfrank
Hi, I have a rule with a "from accumulate" where I bind "e" variable to Event object. I would like to pass "e" to send method of channel like: channels["reset"].send(e); but I got a Rule Compilation error with: "e cannot be resolved". Why I cannot access variable "e" when defined inside from acc

[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 (