you can also add an extra property to your facts to check and add condition to check that property. (like a processed flag)<div><br></div><div>Greetings<br><div><div><br><br><div class="gmail_quote">2010/7/13 Leonardo Gomes <span dir="ltr"><<a href="mailto:leonardo.f.gomes@gmail.com" target="_blank">leonardo.f.gomes@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Droolers,<br><br>I'm trying to avoid loops and looking at different possibilities (no-loop, 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 that will trigger *rule 2*, which will then insert facts that would 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 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 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" target="_blank">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></blockquote></div><br><br clear="all"><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>
</div>
</div></div>