Geoffrey,
Look at agenda-groups and rule-flows.
[]s
Edson
Can I fire a partial set of rules?
Say I have 3 rules: fastRuleA, fastRuleB, slowRuleC.
What's the best way to only fire the group of fastRule1 and fastRule2?
AgendaFilter looks like a good way of doing this, but:
If between 2 rule fires, I change a fact, but change it back to it's
original state, will the rule be not refire, just like if I hadn't
changed it temporary? for example fact1 is used in slowRuleC:
fireAllRules(); // fires slowRuleC
fact1.a++;
fact1.a--;
fireAllRules(); // does not fire slowRuleC?
Does still apply if I fire other rules meanwhile?
fireAllRules(); // fires slowRuleC
fact1.a++;
fireAllRules(notSlowRuleCAgendaFilter); // slowRuleC is ignored
// if I did not filter it out it would have fired of course
fact1.a--;
fireAllRules(); // does not fire slowRuleC? or does it?
// a hasn't is the same since the last time slowRuleC was fired
--
With kind regards,
Geoffrey De Smet
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users