[rules-users] firing specific rule

Manukyan, Sergey SManukyan at lear.com
Thu Oct 18 11:11:53 EDT 2007


 

Manukyan, Sergey wrote: 

 

Manukyan, Sergey's message received 10/17/2007 5:13 PM:

  

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...

 

 

How is it supposed to be done?

	    

 
  A couple of reasons a rule won't fire: if the facts aren't
asserted or      the conditions aren't met.
               
               Scott, both conditions are met. The problem is in
               filtering agenda to a single rule, and it only happens
when rules have
               ruleflow-group defined... 
  

If a rule defines a ruleflow-group then it can only fire when that
ruleflow-group is active. So the ruleflow-group, when active, place's
its activations onto the Agenda where when the rule is attempted to be
fired the AgendaFilter may stop that rule from firing.

                                                            

                                                            The
ruleflow-group is active. Here is what I do:

 

                                    session.insert(fact);

 
session.startProcess("Validation");

 
session.fireAllRules(new RuleNameEqualsAgendaFilter("My specific rule I
want to be fired"));  // doesn't fire any rule

                                                            

                                                            Looks right
to you?

                                                            

                                                                        

                                                            







**********************
** 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071018/4561f6dc/attachment.html 


More information about the rules-users mailing list