[rules-users] sliding window combination ?

Wendy Mungovan w.mungovan at yahoo.com
Mon Jul 4 06:18:54 EDT 2011


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 at web.de>
To: rules-users at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110704/2a3eab17/attachment.html 


More information about the rules-users mailing list