Edson, this is very similar to my post, but i guess you forgot the exists (see my post), the requirement is for the rule to fire just one time! ;-)<div>Regards<br><br><div class="gmail_quote">2010/6/18 Edson Tirelli <span dir="ltr">&lt;<a href="mailto:tirelli@post.com">tirelli@post.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">   There is a solution that is much simpler:<div><br></div><div>when</div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">    TblVersichKlinik( ( versicherung != null &amp;&amp; versicherung != &quot; &quot; ) || (zusatzversicherung !=null &amp;&amp; zusatzversicherung != &quot; &quot;) )</span></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse">then</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">...</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse">end<br></span></font><br></div><div>   []s</div><div>   Edson</div><div><br><div class="gmail_quote">
2010/6/18 skasab2s <span dir="ltr">&lt;<a href="mailto:skasab2s@smail.inf.fh-brs.de" target="_blank">skasab2s@smail.inf.fh-brs.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Hi guys,<br>
<br>
many thanks for your replies! Sorry, my solution was other:<br>
<br>
declare EnsuranceExists<br>
        value: boolean<br>
end<br>
<br>
// ------------ Initialisation Rule(s). ---------------<br>
rule &quot;Always insert initial $ensuranceExists&quot; salience 100<br>
        when<br>
<br>
        then<br>
                EnsuranceExists $ensuranceExists = new EnsuranceExists();<br>
                $ensuranceExists.setValue(false);<br>
                insert($ensuranceExists);<br>
end<br>
<br>
<br>
rule &quot;Check ensurance&quot; salience 95<br>
        when<br>
                (( TblVersichKlinik(<br>
<div>                versicherung != null, versicherung != &quot; &quot;))<br>
                or<br>
                (TblVersichKlinik(<br>
                zusatzversicherung !=null, zusatzversicherung != &quot; &quot;)) )<br>
</div>                $ensuranceExists : EnsuranceExists(value == false)<br>
        then<br>
                $EnsuranceExists.setValue(true);<br>
                update($ensuranceExists);<br>
end<br>
<br>
// End result<br>
rule &quot;All data is valid&quot; salience 90<br>
        when<br>
            ...<br>
            EnsuranceExists (value == true)<br>
            ...<br>
<br>
        then<br>
This way, the  rule &quot;Check ensurance&quot; can be fired many times, without<br>
affecting the end result.<br>
<br>
Once again thanks for your advices anyway.<br>
<br>
Many regards,<br>
<br>
skasab2s.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905902.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905902.html</a><br>


</font><div><div></div><div>Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
</div>
<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>
<br></blockquote></div><br></div>