[jboss-jira] [JBoss JIRA] (DROOLS-746) Window operators - Type safety

Mark Proctor (JIRA) issues at jboss.org
Thu Jul 23 09:06:03 EDT 2015


     [ https://issues.jboss.org/browse/DROOLS-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor reassigned DROOLS-746:
-----------------------------------

    Assignee: Petr Široký  (was: Mario Fusco)


> 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: Petr Široký
>
> 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.15#6346)



More information about the jboss-jira mailing list