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 accumulate?
rule "Reset alarm"
when
a : Alarm()
c : Number( intValue > 5) from accumulate (
e : Event( level < 6) over window:time(10s) from entry-point "queue",
count(e)
)
then
channels["reset"].send("Alarm resolved.");
end
--
View this message in context:
http://drools.46999.n3.nabble.com/bound-variable-scope-tp4026652.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.