Re: [rules-users] expert: usage of ruleflow-groups

2010-05-06 Thread miguel machado
oh! I'm so sorry... typos in XML are impossible to detect :( Again, thank you so much for your help. I'll correct this and will use the agenda-groups the way you suggested. _ miguel On Wed, May 5, 2010 at 10:01 AM, Wolfgang Laun wrote: > How did you specify the agenda group in the XML? There

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-05 Thread Wolfgang Laun
How did you specify the agenda group in the XML? There aren't much checks being done in XML handling, so it's easy to slip up. Here's how I interpret the XML schema: ... -W 2010/5/5 miguel machado : > Hi, > Yeah, i think this might be a bug indeed. I just tried converting to DRL > usin

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-05 Thread miguel machado
Hi, Yeah, i think this might be a bug indeed. I just tried converting to DRL using the "dumper" and the agenda-group item doesn't show up in the generated DRL file. It is possible that that this tag isn't being interpreted for the same reason it isn't being converted into the DRL format. Can someo

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-05 Thread Wolfgang Laun
2010/5/5 miguel machado : > Hi again, > 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... > * this is the stack as soon as i insert my objects: | MAIN | > * this is the stack as soon as i

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-05 Thread miguel machado
Hi again, 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... * this is the stack as soon as i insert my objects: | MAIN | * this is the stack as soon as i setFocus on a specific agenda-grou

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Wolfgang Laun
2010/5/5 miguel machado : > Hi, > First of all, thank you both for your answers. > > @Wolfgang: > 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 g

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread miguel machado
Exactly! That's precisely why i'm trying to find a workaround. I have no way to activate a specific set of rules except for stacking up activations using agenda-groups. Any other suggestions? Thank you. 2010/5/4 Mauricio Salatino > if you use the new api's (5.x StatefulKnowledgeSession inste

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread miguel machado
Hi, First of all, thank you both for your answers. @mauricio: 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? @Wolfgang: My problem is that i cannot have the different

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Mauricio Salatino
if you use the new api's (5.x StatefulKnowledgeSession instead of workingMemory) you don't have that methods exposed. 2010/5/4 vasilievip > You could manually activate and deactivate ruleflow groups using > workingMemory.getAgenda().[de]activateRuleflowGroup(name). > workingMemory.getAgenda().[

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread vasilievip
You could manually activate and deactivate ruleflow groups using workingMemory.getAgenda().[de]activateRuleflowGroup(name). workingMemory.getAgenda().[de]activateRuleflowGroup(name). session.fireAllRules(); http://drools-java-rules-engine.46999.n3.nabble.com/Agenda-group-doesn-t-stay-set-td565

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Wolfgang Laun
I've been using agenda groups without any trouble for a similar problem, doing setFocus( ... ); insert( ... );... insert( ... ); fireAllRules(); repeatedly. You don't have to be afraid of the focus stack growing indefinitely:You control the "push" (setFocus()), and if an agenda group's activ

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Mauricio Salatino
Hi miguel, Did you try creating a new Drools Flow process with Rule Tasks inside it to isolate each specific set of rules. Then you can insert the facts into the working memory, start the process and the rules will be executed secuencially. You need to remember also that, if the rules are activated

[rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Miguel Machado
Hi there, I'm having some trouble implementing the desired workflow of rule firing in an application using drools expert. I've read the thread about the difference between ruleflow groups and agenda groups, but it is still unclear to me how to achieve what i need. What i intend to have is the