<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>I think that you should be able to. <br><br>$zCollection: ArrayList() from collect(Z over window:length(z_length))<br><br>$xCollection:ArrayList() from collect(X over window:length(y) from $ZCollection)<br><br>I'm sorry I did not check the syntax so it might not be quite right but I've done accumulates over collections made in another line before and it worked.<br><br>Wendy<br><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Andre &lt;morpheusandre@web.de&gt;<br><b><span style="font-weight: bold;">To:</span></b> rules-users@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sat, July 2,
 2011 11:08:56 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [rules-users] sliding window combination ?<br></font><br>
hi,<br><br>is it possible to combine sliding windows ? <br><br>like: <br>if in timewindow x occur&nbsp; y(length-window) of z elements&nbsp; which have the<br>same string in <a target="_blank" href="http://z.name">z.name</a> then do something ...<br> <br> <br><br><br>--<br><span>View this message in context: <a target="_blank" href="http://drools.46999.n3.nabble.com/sliding-window-combination-tp3132340p3132340.html">http://drools.46999.n3.nabble.com/sliding-window-combination-tp3132340p3132340.html</a></span><br>Sent from the Drools: User forum mailing list archive at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div>



</div></body></html>