<html><head></head><body>Hi suntrian,<br>
<br>
What you are trying to do seems a little confusing.<br>
<br>
There are other ways to control which rules fire and which dont.<br>
<br>
Perhaps if you explain your problem in business/functional terms,  we can help you write the rules the way drools would expect.<br>
<br>
Thanks<br>
Ramon<br><br><div class="gmail_quote">suntrian &lt;suntrian@126.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">i need to disable a rule when it is triggered using the  function below<br />drools.getRule().setEnabled(EnabledBoolean.ENABLED_FALSE);<br />while <br />*the rule need to be enabled in another rule.*<br />how can i make it?<br /><br /><br /><br />--<br />View this message in context: <a href="http://drools.46999.n3.nabble.com/how-to-enable-and-disable-a-rule-tp4024550.html">http://drools.46999.n3.nabble.com/how-to-enable-and-disable-a-rule-tp4024550.html</a><br />Sent from the Drools: User forum mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br /><hr /><br />rules-users mailing list<br />rules-users@lists.jboss.org<br /><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>