<font size="2"><font face="verdana,sans-serif">Hi again,</font></font><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 clearing that up. I didn't think it worked that way because i've tried it before and it didn't work. Anyway, according to what you're saying...</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">* this is the stack as soon as i insert my objects: | MAIN |</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">* this is the stack as soon as i setFocus on a specific agenda-group: | FOCUSED_GROUP | MAIN | (from left to right)</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">* as soon as all activations from FOCUSED_GROUP fire, that agenda-group is popped out of the stack and the rule engine fires the remaining activations from MAIN</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">Is this the way it works? I've tried this before with no success. I get rules firing from agenda-groups that *are not focused before* (besides MAIN, of course). Maybe this has something to do with the rules being declared in XML? Or some kind of bug?</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">Thank you.</font></div><div><font class="Apple-style-span" face="verdana, sans-serif">_ miguel</font></div>
<div><font class="Apple-style-span" face="verdana, sans-serif"><br></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 Wed, May 5, 2010 at 6:40 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> @Wolfgang:</div><div class="im">
> My problem is that i cannot have the different rule groups stacked. I may do<br>
> as you suggested, but i'll have rules firing from other agenda-groups after<br>
> the first agenda-group activations are all gone (because they go into the<br>
> stack as well, right?).<br>
<br>
</div>No, no, no! Nothing goes on the stack unless you setFocus()!<br>
<div class="im"><br>
What i'm looking for is a way to isolate the<br>
> execution and just fire the rules within a specific set (aka just one<br>
> group). Does this make any sense?<br>
<br>
</div>This is *exactly* what my sketchy statement sequence does, in<br>
an existing application.<br>
<font color="#888888">-W<br>
</font><div><div></div><div class="h5"><br>
> Thank you for your support. I appreciate all the help i can get.<br>
> _ miguel<br>
><br>
><br>
><br>
> On Tue, May 4, 2010 at 4:46 PM, Wolfgang Laun <<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>><br>
> wrote:<br>
>><br>
>> I've been using agenda groups without any trouble for a similar problem,<br>
>> 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<br>
>> control<br>
>> the "push" (setFocus()), and if an agenda group's activations are all<br>
>> 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>
>> > Hi there,<br>
>> > I'm having some trouble implementing the desired workflow of rule firing<br>
>> > 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<br>
>> > groups<br>
>> > declared on the rule file (as far as i understand) and therefore it may<br>
>> > 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<br>
>> > 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<br>
>> > way i<br>
>> > described.<br>
>> > Thanks in advance,<br>
>> > _ miguel<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>
><br>
><br>
><br>
> --<br>
> "To understand what is recursion you must first understand recursion"<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><br clear="all"><br>-- <br>"To understand what is recursion you must first understand recursion"<br>
</div>