Drooks ORs are not short circuited. They are treated individually. You could rewrite the rule to check for the &quot;other part of the or&quot;<br><br>( TblVersichKlinik(versicherung != null, versicherung != &quot; &quot;, zusatzversicherung == null)<br>

or<br>
(TblVersichKlinik(zusatzversicherung !=null, zusatzversicherung != &quot; &quot;, versicherung  == null)) )<br>
<br><br><div class="gmail_quote">On Fri, Jun 18, 2010 at 10:46 AM, skasab2s <span dir="ltr">&lt;<a href="mailto:skasab2s@smail.inf.fh-brs.de">skasab2s@smail.inf.fh-brs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello,<br>
<br>
we are using Drools Expert. We have a rule which should fire if at least one<br>
of the object attributes are not empty. This is my pattern:<br>
<br>
( TblVersichKlinik(versicherung != null, versicherung != &quot; &quot;)<br>
or<br>
(TblVersichKlinik(zusatzversicherung !=null, zusatzversicherung != &quot; &quot;)) )<br>
<br>
The problem is the following: when BOTH conditions are fulfilled, the rule<br>
fires twice, so I get redundant results in my final result, and this is not<br>
wanted.<br>
<br>
Is there a way to solve the problem? Any ideas ?<br>
<br>
Thanks a lot and many regards!<br>
<br>
skasab2s<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905689.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905689.html</a><br>

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">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>
</font></blockquote></div><br>