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

Mauricio Salatino salaboy at gmail.com
Tue May 4 11:45:21 EDT 2010


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 but the agenda
group is without focus, the rules will never fire.


2010/5/4 Miguel Machado <mls.machado at gmail.com>

> 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<http://bit.ly/bKMRSq> 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 ability to fire a specific set of rules
> according to the object i'm inserting into the ksession.
>
> I do not want to use agenda-groups because it stacks all the agenda groups
> declared on the rule file (as far as i understand) and therefore it may fire
> activations i do not want to be fired. Instead, i want to isolate them
> completely. I tried using ruleflow groups for this, but i cannot find a way
> to activate a specific group programmatically, before calling
> fireAllRules(), the way i can with agenda-groups (setFocus() method).
>
> That being said, i'm asking for help in trying to use either one of
> ruleflow/agenda groups or even both in order to get things working the way i
> described.
>
> Thanks in advance,
> _ miguel
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100504/13181df4/attachment.html 


More information about the rules-users mailing list