Manukyan, Sergey wrote:
Folks,
I have to restate the question as didn’t find the answer anywhere and have not get response to it in my previous email.
Using 4.0.2. So I have a set of rules, each with a specific ruleflow-group defined. And I have a rule flow file defined. Altogether everything works fine.
Now I need to fire a single specific rule from this rule set. Using the RuleNameEqualsAgendaFilter didn’t help, it didn’t fire the rule…
You cannot call a rule explicitely, they are not methods.
I know. As I said earlier. All rules fire just fine when I am inserting an object. But when using RuleNameEqualsAgendaFilter(“specific rule name”) – NONE of the rules fire, specifically the single rule I am interested in. Without this filter – that rule fires just fine along with others…. Again this happened when rule has ruleflow-group defined. When ruleflow-group is not defined - it fires again just fine when using RuleNameEqualsAgendaFilter. Is RuleNameEqualsAgendaFilter supposed to work with rules with or without ruleflow-group defined? If so then it looks like a bug to me…
The agenda has
the rules that are ready to fire, you can use a an agenda filter to stop a rule
firing, not to call a rule.
Do you mean using RuleNameEqualsAgendaFilter or anything else?
How is it supposed to be done?
Thanks,
-Sergey
********************** |
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users