[jboss-jira] [JBoss JIRA] (JBRULES-3564) Sliding window filters not applied correctly
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Fri Jun 29 11:34:12 EDT 2012
Edson Tirelli created JBRULES-3564:
--------------------------------------
Summary: Sliding window filters not applied correctly
Key: JBRULES-3564
URL: https://issues.jboss.org/browse/JBRULES-3564
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.4.0.Final
Reporter: Edson Tirelli
Assignee: Edson Tirelli
Fix For: 5.5.0.Beta1
REPORTED BY WOLFGANG
--------------------------------
It should be pretty obvious that the rule should not fire after the
insertion of a single fact.
{code:title=Sample.drl}declare MyEvent
@role(event)
end
rule FaultsCoincide
when
f1 : MyEvent( key == "type1" ) over window:length( 1 )
f2 : MyEvent( key == "type2" ) over window:length( 1 )
then
System.out.println( ">>> f1=" + f1 + " f2=" + f2 );
if( f2.getKey().equals( "type1" ) ) System.out.println( "*** BUG ***" );
end{code}
{code}insert MyEvent<type1,ALARM>
>>> f1=MyEvent<type1,ALARM> f2=MyEvent<type1,ALARM>
*** BUG ***
insert MyEvent<type2,ALARM>
>>> f1=MyEvent<type2,ALARM> f2=MyEvent<type2,ALARM>
>>> f1=MyEvent<type2,ALARM> f2=MyEvent<type1,ALARM>
*** BUG ***{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list