[rules-users] Better way to write a constrained collect?

David Sinclair dsinclair at chariotsolutions.com
Wed Dec 17 12:58:19 EST 2008


I have the when part of a rule

Cluster($ipAddressCollection : ipAddressCollection != null)
$ipAddressUsage : IPAddressUsage(guid in
(IPAddressUsage.CUSTOMER_MANAGEMENT,

IPAddressUsage.CUSTOMER_BACKUP,

IPAddressUsage.CUSTOMER_PRODUCTION,

IPAddressUsage.CUSTOMER_HEARTBEAT))
java.util.LinkedList(size == 0) from collect( IPAddress(ipAddressUsage ==
$ipAddressUsage) from $ipAddressCollection.ipAddresses)

This works fine, but I would like to constrain the IPAddress's usage within
the collect, as opposed to joining.

Anyone know if this is possible?

thanks

dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081217/e4196208/attachment.html 


More information about the rules-users mailing list