Hello,
Thank you for your response, I understand how the sliding window works now.
However, when I use the code you wrote I get the following error:
Exception in thread "main" java.lang.RuntimeException: Unable to resolve
ObjectType 'List' : [Rule name='Rule2']
Unable to Analyse Expression $last2:
[Error: unable to resolve method using strict-mode:
java.lang.Object.$last2()]
My rule looks like this:
rule "Rule2"
when
$last2: List() from collect( Notif() over window:length(2) )then
$nNewONT : Number() from accumulate ( Notif( specificProblem
== "New ONT" ) from $last2, count() )
...
end
Do Lists require any additional code?...
View this message in context: http://drools.46999.n3.nabble.com/Sliding-Length-Windows-tp3438408p3467432.html
Thanks in advance,
Diana
--
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users