You are not writing rules - you are using rules to disguise the fact<br>that you are using if statements to process your data.<br><br>What is "droolsRequest" and how is it declared? If this were a real rule,<br>it would be<br>
<br>when<br> DroolsRequest( address.stateCode == "MA" )<br>then<br> ...<br><br>no-loop is nonsense in a rule that doesn't update any WM data.<br><br>-W<br><br><div class="gmail_quote">On 21 August 2012 17:00, Rana <span dir="ltr"><<a href="mailto:ven12344@yahoo.com" target="_blank">ven12344@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is the example<br>
<br>
rule "AndroGel Provider State"<br>
no-loop true<br>
salience 95<br>
agenda-group "AndroGel"<br>
when<br>
eval( droolsRequest.address.stateCode == "MA" )<br>
then<br>
logging();<br>
drools.halt();<br>
end<br>
<br>
the other rule is very similar but for a different Agenda Group<br>
<br>
rule "Pradaxa Provider State"<br>
no-loop true<br>
salience 95<br>
agenda-group "Pradaxa"<br>
when<br>
eval( droolsRequest.address.stateCode == "MA" )<br>
then<br>
logging();<br>
drools.halt();<br>
end<br>
<br>
In this case it is firing the Pradaxa rule and giving me the wrong output.<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/fireUntilHalt-is-halt-forever-tp4019146p4019313.html" target="_blank">http://drools.46999.n3.nabble.com/fireUntilHalt-is-halt-forever-tp4019146p4019313.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>