[jboss-jira] [JBoss JIRA] (DROOLS-1723) Rule compiler does not fail for misspelled sliding window predicates

Mario Fusco (JIRA) issues at jboss.org
Wed Sep 6 03:50:00 EDT 2017


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

Mario Fusco updated DROOLS-1723:
--------------------------------
    Affects Version/s: 7.3.0.Final


> Rule compiler does not fail for misspelled sliding window predicates
> --------------------------------------------------------------------
>
>                 Key: DROOLS-1723
>                 URL: https://issues.jboss.org/browse/DROOLS-1723
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.3.0.Final
>         Environment: DRL files
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>
> Rule engine compiles the following DRL with no exception, despite the erroneous expression *window:len*.
> From behavior, it seems that the last part of the condition is simply disregarded.
> {code}
> rule "Risky Event"
> no-loop 
> 	when
> 		$plcEvent: PLCEvent( input2 > 10.0 ) over window:len(3)
> 	then
> 		insert(new RiskyEvent($plcEvent));
> 				
> end
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list