]
Mario Fusco updated DROOLS-1723:
--------------------------------
Sprint: 2017 Week 34-35
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}