Folks,

I need to use agenda filter to execute a particular rule:

rule "My Rule"
        ruleflow-group "Validation"
        when
                Object()
        then
                ...     
end

The rule flow "Validation" is defined.

I am doing the following:

StatefulSession session =
RuleBaseFacade.getInstance().newStatefulSession();
session.insert(new Object());
session.startProcess("Validation");
session.fireAllRules(new RuleNameEqualsAgendaFilter("My Rule"));

But it doesn't fire this rule.

Also I tried this with no success as well:

StatefulSession session =
RuleBaseFacade.getInstance().newStatefulSession();
session.insert(new Object());
session.fireAllRules(new RuleNameEqualsAgendaFilter("My Rule"));


How can I make it work?

Thanks,

-Sergey



**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to