<font size="2"><font face="verdana,sans-serif">Hi,</font></font><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">First of all, thank you both for your answers.</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">@mauricio:</font></font></div><div><font size="2"><font face="verdana,sans-serif">I&#39;m currently not using drools flow, only expert, so i&#39;m not very familiar with the approach you suggested. Isn&#39;t it possible to achieve this goal just by using drools expert?</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">@Wolfgang:</font></font></div><div><font size="2"><font face="verdana,sans-serif">My problem is that i cannot have the different rule groups stacked. I may do as you suggested, but i&#39;ll have rules firing from other agenda-groups after the first agenda-group activations are all gone (because they go into the stack as well, right?). What i&#39;m looking for is a way to isolate the execution and just fire the rules within a specific set (aka just one group). Does this make any sense?</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">Thank you for your support. I appreciate all the help i can get.</font></font></div><div><font size="2"><font face="verdana,sans-serif">_ miguel</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif"><br></font></font><br>
<div class="gmail_quote">On Tue, May 4, 2010 at 4:46 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;ve been using agenda groups without any trouble for a similar problem, doing<br>
  setFocus( ... );<br>
  insert( ... );... insert( ... );<br>
  fireAllRules();<br>
repeatedly.<br>
<br>
You don&#39;t have to be afraid of the focus stack growing indefinitely:You control<br>
the &quot;push&quot; (setFocus()), and if an agenda group&#39;s activations are all gone, the<br>
group is automatically popped from the stack.<br>
<br>
-W<br>
<br>
2010/5/4 Miguel Machado &lt;<a href="mailto:mls.machado@gmail.com">mls.machado@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi there,<br>
&gt; I&#39;m having some trouble implementing the desired workflow of rule firing in<br>
&gt; an application using drools expert. I&#39;ve read the thread about the<br>
&gt; difference between ruleflow groups and agenda groups, but it is still<br>
&gt; unclear to me how to achieve what i need.<br>
&gt; What i intend to have is the ability to fire a specific set of rules<br>
&gt; according to the object i&#39;m inserting into the ksession.<br>
&gt; I do not want to use agenda-groups because it stacks all the agenda groups<br>
&gt; declared on the rule file (as far as i understand) and therefore it may fire<br>
&gt; activations i do not want to be fired. Instead, i want to isolate them<br>
&gt; completely. I tried using ruleflow groups for this, but i cannot find a way<br>
&gt; to activate a specific group programmatically, before calling<br>
&gt; fireAllRules(), the way i can with agenda-groups (setFocus() method).<br>
&gt; That being said, i&#39;m asking for help in trying to use either one of<br>
&gt; ruleflow/agenda groups or even both in order to get things working the way i<br>
&gt; described.<br>
&gt; Thanks in advance,<br>
&gt; _ miguel<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&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><br clear="all"><br>-- <br>&quot;To understand what is recursion you must first understand recursion&quot;<br>
</div>