<div dir="ltr"><div>Add </div><div><br></div><div><div>  no-loop true</div></div><div><br></div><div>on the line after the &quot;rule&quot; directive.</div><div><br></div><div><br></div><div><br></div><div>rule &quot;1&quot;</div>
<div>no-loop true</div><div><br></div><div><br></div><div>Regards</div><div>Chiddu</div><div><br></div><br><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div></div></div></div><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 2:05 PM, brachi <span dir="ltr">&lt;<a href="mailto:brachi.w@sapiens.com" target="_blank">brachi.w@sapiens.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">for this Drools Fact Type:<br>
<br>
/*<br>
declare DvFacts0<br>
@propertyReactive<br>
        IsNUMERIC: Double<br>
        condIsNUMERIC: Double<br>
end*/<br>
<br>
I have this rule:<br>
<br>
/*rule &quot;1&quot;<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
salience -1<br>
    agenda-group &quot;agenda1&quot;<br>
    when<br>
                $condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) )<br>
                $conclusion: DvFacts0( )<br>
    then<br>
                modify($conclusion){setIsNUMERIC(1.0)};<br>
    end*/<br>
<br>
the rule hit just one time without the eval clause, adding the eval cause<br>
this rule to run in infinite loop.<br>
have an idea?<br>
put attention that I add  @propertyReactive on the DVFacts0 to avoid this.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.html" target="_blank">http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.html</a><br>

Sent from the Drools: User forum 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>
</blockquote></div><br></div></div>