Hi all,
I'm a newbie for drools.
And i want to know how to fire a subset of rules in KB,
suppose there are three rules named A,B,C, and I want to fire rule A only.
by the way,
suppose there is a drl file containing rule, and i have set up KB, and call fireAllRules
through statefulKnowledgeSession. After that, the rule file is changed, how to load rules
dynamicly?
Is there any solution?
Thanks in advance!
best regards.
2010-06-07
wenjinchao
Show replies by date
If you want to fire only a subset of rule,
you can use ruleflow-group, and you have to use Agenda to define the ruleflow-group to
use.
You'll find more infos in the drools-expert documentation on how to use those two.
________________________________
De : rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] De
la part de wenjinchao
Envoyé : lundi 7 juin 2010 11:28
À : rules-users
Objet : [rules-users] how to fire a subset of rules in KB?
Hi all,
I'm a newbie for drools.
And i want to know how to fire a subset of rules in KB,
suppose there are three rules named A,B,C, and I want to fire rule A only.
by the way,
suppose there is a drl file containing rule, and i have set up KB, and call fireAllRules
through statefulKnowledgeSession. After that, the rule file is changed, how to load rules
dynamicly?
Is there any solution?
Thanks in advance!
best regards.
2010-06-07
________________________________
wenjinchao
</PRE><p style="font-family:arial;color:grey"
style="font-size:13px">This message contains information that may be
privileged or confidential and is the property of the Capgemini Group. It is intended only
for the person to whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the sender
immediately and delete all copies of this message.</p><PRE>