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