The short and sweet answer is no. <br><br><div class="gmail_quote">On Mon, Aug 11, 2008 at 7:22 AM, DroolUser <span dir="ltr">&lt;<a href="mailto:jyotu.p@gmail.com">jyotu.p@gmail.com</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>
Hi,<br>
I&#39;m using drools for testing if the few attributes of my MO are not null.<br>
<br>
I construct the rule in the .drl file in following way :<br>
<br>
rule &quot;name&quot;<br>
when<br>
        condition1<br>
        condition2<br>
        condition3<br>
        condition4<br>
then<br>
        consequence<br>
end<br>
<br>
I have observed that the drool engine verifies the conditions line by line<br>
(in the sequence they have written). The moment condition fails, control<br>
comes back to the calling method.<br>
<br>
I don&#39;t want this. I want the control to execute each and every condition<br>
whether true or false and maintain a record of passed/failed conditions.<br>
Something like this  :<br>
rule &quot;name&quot;<br>
when<br>
        condition1<br>
                log the test result  --- This statement should get executed<br>
even if condition 1 fails and      control should go to condition 2<br>
        condition2<br>
                log the test result<br>
        condition3<br>
                log the test result<br>
        condition4<br>
                log the test result<br>
then<br>
        consequence<br>
end<br>
<br>
Is this possible in Drools ?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Can-drools-comtinue-testing-even-if-one-of-the-conditions-fail---tp18923764p18923764.html" target="_blank">http://www.nabble.com/Can-drools-comtinue-testing-even-if-one-of-the-conditions-fail---tp18923764p18923764.html</a><br>

Sent from the drools - dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></blockquote></div><br>