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