<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi<br>
<br>
Solution 3 is not a good idea. Build a KB takes time, much more than
filtering rule agenda or adding condition to rules. An adaption of
your solution 3 could be to build 4 different KB, having the
filtered rules in them, and use the suitable KB according to command
received by your application. In Guvnor you can group your rules by
tagging them with categories, and build/snapshot 4 different KB by
filtering on categories. But may be your rules are clearly separated
(ie a rule is in only one KB) ?<br>
<br>
To me, solution 1 is the better than 2, and won't kill your perfs if
you put the additionnal condition first (propagation will be
optimised with RETE network).<br>
<br>
May be if you post some more infos (like kind of rules / objects, if
you have a process identified (thus allowing to use a ruleflow) we
could be more accurate.<br>
<br>
<br>
Le 28/10/2010 02:08, Tina Vießmann a écrit :
<blockquote cite="mid:4CC8BF0A.80300@stud.hs-bremen.de" type="cite">
<pre wrap="">Hi,
I'm thinking about how to activate/deactivate parts of the rule set
during runtime. I'm doing some brainstorming about that and would be
happy, if I could get more experienced input. ;-)
What I want to do:
I have several rules where I process 4 different objects separate and
some rules processing combinations of the 4 objects. Now I want to be
able to activate/decativate the processing of e.g. one of the objects at
runtime when my application receives a specific command.
How can I do that?
My thoughts:
1.) I thought about maybe inserting a fact that states if the processing
of a object is disabled. If I'm including the fact in the rules
conditions, the rules including the specific object are prevent from
firing. But I could imagine that is results in performance costs because
its always checked in every rule condition if the specific processing is
(de)activated.
2.) Is it possible to (de)activate the execution of rules for a specific
object using some grouping...
3.) Is it possible to rebuild the knowledge base during runtime using
templates and incremental change-set processing. Or something alike...
(Because the separate processing of the 4 objects is kind of identical.)
Thanks for any input! :)
Tina
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<!-- @author Hadrien HUGOT -->
<!-- Modèle signature thunderbird et autres -->
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>CARTE DE VISITE</title>
<span style="font-size: 13.5pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">Vincent LEGENDRE</span><br>
<i><span style="font-size: 8.5pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">Consultant Sénior</span></i><br>
<span style="font-size: 4.5pt;"> <br>
</span>
<span style="font-size: 9pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">EURODECISION<o:p></o:p></span><br>
<span style="font-size: 9pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">9A rue de la Porte de Buc 78000 VERSAILLES<br>
Tél. : +33 (0)1 39 07 12 40<br>
Direct : +33 (0)1 39 07 26 16<br>
<a href="www.eurodecision.com">www.eurodecision.com</a></span><br>
<a href="http://www.eurodecision.com/"><span style="font-size:
12pt; font-family: "Times New
Roman","serif"; color: windowtext;
text-decoration: none;"> <img
src="cid:part1.00080300.08080306@eurodecision.com"
alt="EURODECISION" border="no"></span></a><a
href="http://www.eurodecision.com/"><span style="font-size:
12pt; font-family: "Times New
Roman","serif"; color: windowtext;
text-decoration: none;"> </span></a>
</div>
</body>
</html>