Thanks for the feedback, guys.<br><br>Leonardo.<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 8:41 AM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Another option would be the addition of a single &quot;Trigger&quot; fact, inserted along<br>

with your regular facts, added as an additional pattern to all rules,<br>
and retracted<br>
in each RHS.<br>
<br>
You might also consider using Event processing to terminate the Engine&#39;s<br>
run after the first AfterActivationFiredEvent.<br>
<br>
-W<br>
<br>
<br>
2010/7/14 Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; you can also add an extra property to your facts to check and add condition<br>
&gt; to check that property. (like a processed flag)<br>
&gt; Greetings<br>
&gt;<br>
&gt;<br>
&gt; 2010/7/13 Leonardo Gomes &lt;<a href="mailto:leonardo.f.gomes@gmail.com">leonardo.f.gomes@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Droolers,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to avoid loops and looking at different possibilities (no-loop,<br>
&gt;&gt; activation-group, lock-on-active, etc.).<br>
&gt;&gt;<br>
&gt;&gt; &gt;Scenario I want to avoid:<br>
&gt;&gt;<br>
&gt;&gt; For example, the initial facts trigger *rule 1*, which inserts new facts<br>
&gt;&gt; that will trigger *rule 2*, which will then insert facts that would<br>
&gt;&gt; re-trigger *rule 1*.<br>
&gt;&gt;<br>
&gt;&gt; &gt;Possibilities I tried:<br>
&gt;&gt;<br>
&gt;&gt; no-loop -&gt; just prevents the re-activation of the same rule<br>
&gt;&gt; lock-on-active -&gt; I can&#39;t know which rules should have lock-on-active set<br>
&gt;&gt; to true, since I don&#39;t know what will be the initial facts.<br>
&gt;&gt;<br>
&gt;&gt; &gt;What I&#39;m trying to achieve:<br>
&gt;&gt;<br>
&gt;&gt; All rules in my rule set should execute only once. So, a rule inserts new<br>
&gt;&gt; facts only rules that haven&#39;t executed so far, should be activated.<br>
&gt;&gt;<br>
&gt;&gt; Is there a way to do that, let&#39;s say &#39;out-of-the-box&#39;, with DRL?<br>
&gt;&gt;<br>
&gt;&gt; Thank you,<br>
&gt;&gt; Leo.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;  - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
&gt;  - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
&gt;  - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
&gt;<br>
&gt;  - Salatino &quot;Salaboy&quot; Mauricio -<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<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>
</div></div></blockquote></div><br>