<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">Neater than my version, and I can confirm that my test is happy with the result. :)</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">rule "<span style="text-decoration: underline; ">Wenn</span>&nbsp;<span style="text-decoration: underline; ">der</span>&nbsp;BMI&nbsp;<span style="text-decoration: underline; ">des</span>&nbsp;<span style="text-decoration: underline; ">Patienten</span>&nbsp;&gt;= 18.5&nbsp;<span style="text-decoration: underline; ">und</span>&nbsp;&lt; 25&nbsp;<span style="text-decoration: underline; ">ist</span>,&nbsp;<span style="text-decoration: underline; ">dann</span>&nbsp;<span style="text-decoration: underline; ">gehört</span>&nbsp;<span style="text-decoration: underline; ">der</span>&nbsp;Patient&nbsp;<span style="text-decoration: underline; ">der</span>&nbsp;<span style="text-decoration: underline; ">Kategorie</span>&nbsp;'<span style="text-decoration: underline; ">Normalgewicht</span>' an&nbsp;<span style="text-decoration: underline; ">und</span>&nbsp;hat&nbsp;<span style="text-decoration: underline; ">ein</span>&nbsp;'<span style="text-decoration: underline; ">durchschnittliches</span>'&nbsp;<span style="text-decoration: underline; ">Risiko</span>&nbsp;<span style="text-decoration: underline; ">für</span>&nbsp;<span style="text-decoration: underline; ">Begleiterkrankungen</span>&nbsp;<span style="text-decoration: underline; ">des</span>&nbsp;<span style="text-decoration: underline; ">Übergewichts</span>"</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">        </span>no-loop</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">        </span>when</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                </span>MessdatenVonPatient($patient : patient &amp;&amp; (getMessdaten().getBmi() &gt;= 18.5) &amp;&amp; (getMessdaten().getBmi() &lt; 25))</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                </span>$krankheitsbildVonPatient : KrankheitsbildVonPatient(</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                        </span>patient == $patient</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                </span>)</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">        </span>then</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                </span>modify( $krankheitsbildVonPatient ) {</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">&nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre; ">                        </span>getKrankheitsbild().setAdipositasGrad("<span style="text-decoration: underline; ">Normalgewicht</span>"),</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                        </span>getKrankheitsbild().setRisikoBegleiterkrankungGrad(1)</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">                </span>}</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">end</div></div><div><br></div><br><div><div>On 31 Aug 2012, at 10:57, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Not tried, but this should also be possible:<br><br>modify( $krankheitsbildVonPatient ){<br> &nbsp;&nbsp;getKrankheitsbild().setAdipositasGrad("Normalgewicht"),<br> &nbsp;&nbsp;getKrankheitsbild().setRisikoBegleiterkrankungGrad(1)<br>}<br><br>-W<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote></div><br></body></html>