[jboss-jira] [JBoss JIRA] (DROOLS-746) Window operators - Type safety
Petr Široký (JIRA)
issues at jboss.org
Tue Jan 2 08:45:00 EST 2018
[ https://issues.jboss.org/browse/DROOLS-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petr Široký reassigned DROOLS-746:
----------------------------------
Assignee: (was: Petr Široký)
> 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
>
> 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
(v7.5.0#75005)
More information about the jboss-jira
mailing list