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) )
$nNewONT : Number() from accumulate ( Notif( specificProblem
== "New ONT" ) from $last2, count() )
then
...
end
Do Lists require any additional code?...
Thanks in advance,
Diana
--
View this message in context:
http://drools.46999.n3.nabble.com/Sliding-Length-Windows-tp3438408p346743...
Sent from the Drools: User forum mailing list archive at
Nabble.com.