<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'm currently not using drools flow, only expert, so i'm not very familiar with the approach you suggested. Isn'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'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'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"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'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't have to be afraid of the focus stack growing indefinitely:You control<br>
the "push" (setFocus()), and if an agenda group's activations are all gone, the<br>
group is automatically popped from the stack.<br>
<br>
-W<br>
<br>
2010/5/4 Miguel Machado <<a href="mailto:mls.machado@gmail.com">mls.machado@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi there,<br>
> I'm having some trouble implementing the desired workflow of rule firing in<br>
> an application using drools expert. I've read the thread about the<br>
> difference between ruleflow groups and agenda groups, but it is still<br>
> unclear to me how to achieve what i need.<br>
> What i intend to have is the ability to fire a specific set of rules<br>
> according to the object i'm inserting into the ksession.<br>
> I do not want to use agenda-groups because it stacks all the agenda groups<br>
> declared on the rule file (as far as i understand) and therefore it may fire<br>
> activations i do not want to be fired. Instead, i want to isolate them<br>
> completely. I tried using ruleflow groups for this, but i cannot find a way<br>
> to activate a specific group programmatically, before calling<br>
> fireAllRules(), the way i can with agenda-groups (setFocus() method).<br>
> That being said, i'm asking for help in trying to use either one of<br>
> ruleflow/agenda groups or even both in order to get things working the way i<br>
> described.<br>
> Thanks in advance,<br>
> _ miguel<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<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><br clear="all"><br>-- <br>"To understand what is recursion you must first understand recursion"<br>
</div>