I think that you should be able to.

$zCollection: ArrayList() from collect(Z over window:length(z_length))

$xCollection:ArrayList() from collect(X over window:length(y) from $ZCollection)

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.

Wendy



From: Andre <morpheusandre@web.de>
To: rules-users@lists.jboss.org
Sent: Sat, July 2, 2011 11:08:56 AM
Subject: [rules-users] sliding window combination ?

hi,

is it possible to combine sliding windows ?

like:
if in timewindow x occur  y(length-window) of z elements  which have the
same string in z.name then do something ...




--
View this message in context: http://drools.46999.n3.nabble.com/sliding-window-combination-tp3132340p3132340.html
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