There is the little documented "enabled" attribute too...<div><br></div><div><a href="http://drools-java-rules-engine.46999.n3.nabble.com/executing-ruleflow-with-AgendaFilter-td60084.html">http://drools-java-rules-engine.46999.n3.nabble.com/executing-ruleflow-with-AgendaFilter-td60084.html</a></div>
<div><br></div><div>But agenda group would provide what you're after (unless you need a single rule in two groups).<br><div><br><div class="gmail_quote">2010/10/28 Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Look at the agenda-group attribute. Setting the focus makes just the group's rules<br>eligible for firing. Falling back to the "MAIN" (default) group is automatic, after<br>
all group rules have been "exhausted". I think this is what you mean with your #2<br>
<br>Solution 1 could be used, too; efficiency's not a problem.<br><br>-W<br><font color="#888888"><br>-W</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 28 October 2010 02:08, Tina Vießmann <span dir="ltr"><<a href="mailto:tviessmann@stud.hs-bremen.de" target="_blank">tviessmann@stud.hs-bremen.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Hi,<br>
<br>
I'm thinking about how to activate/deactivate parts of the rule set<br>
during runtime. I'm doing some brainstorming about that and would be<br>
happy, if I could get more experienced input. ;-)<br>
<br>
What I want to do:<br>
I have several rules where I process 4 different objects separate and<br>
some rules processing combinations of the 4 objects. Now I want to be<br>
able to activate/decativate the processing of e.g. one of the objects at<br>
runtime when my application receives a specific command.<br>
How can I do that?<br>
<br>
My thoughts:<br>
1.) I thought about maybe inserting a fact that states if the processing<br>
of a object is disabled. If I'm including the fact in the rules<br>
conditions, the rules including the specific object are prevent from<br>
firing. But I could imagine that is results in performance costs because<br>
its always checked in every rule condition if the specific processing is<br>
(de)activated.<br>
2.) Is it possible to (de)activate the execution of rules for a specific<br>
object using some grouping...<br>
3.) Is it possible to rebuild the knowledge base during runtime using<br>
templates and incremental change-set processing. Or something alike...<br>
(Because the separate processing of the 4 objects is kind of identical.)<br>
<br>
Thanks for any input! :)<br>
<br>
Tina<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</blockquote></div><br>
</div></div><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></blockquote></div><br></div></div>