Thanks a lot, this way is much more easier and works just as I wanted!<br><br><div class="gmail_quote">2010/4/20 Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I think that there is a simpler way of picking the single<br>
ExpertFeature of some featureKey that is not selected and not<br>
disabled.<br>
<br>
when<br>
candidate : ExpertFeature( selected == false, fk : featureKey,<br>
disabled == false )<br>
not( ExpertFeature( this != candidate, featureKey == fk, selected<br>
== false ) )<br>
then<br>
modify( candidate ){<br>
setSelected( true )<br>
}<br>
<br>
-W<br>
<br>
2010/4/20 Jörg Herbst <<a href="mailto:herbsthannover@googlemail.com">herbsthannover@googlemail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> I'm trying to change the result of a collect operation, is this possible?<br>
><br>
> This is my sample rule:<br>
><br>
> rule "Select the only remaining value for<br>
> each feature Key"<br>
> when<br>
> # Check all not selected features<br>
> feature : ExpertFeature(selected==false)<br>
> # if there is one enable feature select<br>
> this one<br>
> list : ArrayList (size == 1) from<br>
> collect( ExpertFeature(disabled == false, featureKey==feature.featureKey,<br>
> selected==false) )<br>
> then<br>
> # this is not working<br>
> modify( list ) {setSelected(true);}<br>
> end<br>
><br>
> Thanks<br>
> Joerg<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>