Wilson Akio Higashino created DROOLS-746:
--------------------------------------------
Summary: Window operators - Type safety
Key: DROOLS-746
URL:
https://issues.jboss.org/browse/DROOLS-746
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.2.0.Final
Environment: OS: Mac OS Yosemite 10.10.2
Java: 1.7.0_75 / 1.8.0_25
Reporter: Wilson Akio Higashino
Assignee: Mario Fusco
It seems the rule compiler is not correctly checking type safety when using window
operators to define rule conditions.
I defined a rule using the following code (note that I incorrectly used
"time:window" to define the window, instead of "window:time"):
declare SensorReading
@role(event)
@timestamp(timestamp)
end
rule "boilers"
when
$b1: (SensorReading(sensorId == 1L && status == SensorStatus.ON) over
time:window(10s))
then
....
end
The rule has been compiled and executed, but not following the correct window semantics.
The forum link contains a full description of the (unexpected) behaviour I found when
defining rule like this.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)