[rules-users] Expert: Modify the result of a collect Operation
Jörg Herbst
herbsthannover at googlemail.com
Tue Apr 20 12:46:15 EDT 2010
Hi,
I'm trying to change the result of a collect operation, is this possible?
This is my sample rule:
rule "Select the only remaining value for
each feature Key"
when
# Check all not selected features
feature : ExpertFeature(selected==false)
# if there is one enable feature select
this one
list : ArrayList (size == 1) from
collect( ExpertFeature(disabled == false, featureKey==feature.featureKey,
selected==false) )
then
# this is not working
modify( list ) {setSelected(true);}
end
Thanks
Joerg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100420/b619919d/attachment.html
More information about the rules-users
mailing list