<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Manukyan, Sergey wrote:
<blockquote
 cite="mid:4E03EDD62CB1CB4599E6BD71DBEDFD2002B59F21@usmitry-exm1.corp.lear.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered)">
  <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.emailstyle17
        {font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Sergey,</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">In theory you can use
AgendaFilters in combination with
ruleflow.&nbsp; Note however that the agenda filter will prevent certain
other
activations from firing.&nbsp; As a result, your ruleflow could be blocked
somewhere
by not being able to execute certain activations:</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;* An ruleflow group will
only continue if all its
activations have been completed.&nbsp; Preventing one such activation from
firing (using an AgendaFilter) will prevent the ruleflow group from
completing
and thus the ruleflow from continuing.</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;* Internally, the
ruleflow implementation also uses
rules for executing a ruleflow, like for example when evaluating
conditions in
a split node.&nbsp; You should make sure you do not block these rules from
executing.</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Please know that using
AgendaFilters like this is
discouraged.&nbsp; It can be used for testing and debugging purposes, but
you
should probably not use it like this in production.&nbsp; There are probably
other ways to do what you are trying to do here.</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><font
 color="blue" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: blue;">What would
be the other way to do it?</span></font></p>
  </div>
  </div>
</blockquote>
As kris stated at the moment if you are using ruleflow you can't agenda
filters will break it. Use a semahore fact or something, to control
execution manually.<br>
<blockquote
 cite="mid:4E03EDD62CB1CB4599E6BD71DBEDFD2002B59F21@usmitry-exm1.corp.lear.com"
 type="cite">
  <div class="Section1">
  <div>
  <p class="MsoNormal"><font color="blue" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: blue;"> </span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">If you really want
to&nbsp;fire only one rule for a ruleflow
group, I would suggest you make your AgendaFilter more specific, so it
does not
block rules from other ruleflow groups.&nbsp; You can do this by making your
own implementation of an AgendaFilter, for example a
RuleNameInRuleFlowGroupEqualsAgendaFilter,
which only blocks rules in the same ruleflow group from firing if they
do not
have the right name.</span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font>&nbsp;</p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Kris</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  </div>
  <blockquote
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color black; border-width: medium medium medium 1.5pt; margin: 5pt 0in 5pt 3.75pt; padding: 0in 0in 0in 4pt;">
    <div>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">----- Original Message
----- </span></font></p>
    </div>
    <div style="">
    <p class="MsoNormal"
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><b><font
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; font-weight: bold;">From:</span></font></b><font
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"> <a
 moz-do-not-send="true" href="mailto:SManukyan@lear.com"
 title="SManukyan@lear.com">Manukyan, Sergey</a>
    </span></font></p>
    </div>
    <div>
    <p class="MsoNormal"><b><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; font-weight: bold;">To:</span></font></b><font
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"> <a
 moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org"
 title="rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
    </span></font></p>
    </div>
    <div>
    <p class="MsoNormal"><b><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; font-weight: bold;">Sent:</span></font></b><font
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"> Wednesday, October
17, 2007 11:13 PM</span></font></p>
    </div>
    <div>
    <p class="MsoNormal"><b><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; font-weight: bold;">Subject:</span></font></b><font
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"> [rules-users]
firing specific rule</span></font></p>
    </div>
    <div>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    </div>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Folks,</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">I have to restate the
question as didn&#8217;t find the
answer anywhere and have not get response to it in my previous email.</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Using 4.0.2.&nbsp;&nbsp; So I have
a set of rules, <u>each</u>
with a specific <b><span style="font-weight: bold;">ruleflow-group </span></b>defined.
And I have a rule flow file defined. Altogether everything works fine.</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Now I need to fire a
single specific rule from this rule
set. Using the RuleNameEqualsAgendaFilter didn&#8217;t help, it didn&#8217;t
fire the rule&#8230;</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">How is it supposed to be
done?</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Thanks,</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">-Sergey</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
    <table class="MsoNormalTable" border="0" cellpadding="0">
      <tbody>
        <tr>
          <td
 style="padding: 0.75pt; background: white none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"
 bgcolor="white">
          <p class="MsoNormal"><font color="black"
 face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: black;">**********************<br>
** LEGAL DISCLAIMER **<br>
**********************<br>
          <br>
This E-mail message and any attachments may contain <br>
legally privileged, confidential or proprietary <br>
information. If you are not the intended recipient(s),<br>
or the employee or agent responsible for delivery of <br>
this message to the intended recipient(s), you are <br>
hereby notified that any dissemination, distribution <br>
or copying of this E-mail message is strictly <br>
prohibited. If you have received this message in <br>
error, please immediately notify the sender and <br>
delete this E-mail message from your computer.</span></font></p>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="MsoNormal" style="text-align: center;" align="center"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;">
    <hr align="center" size="2" width="100%"></span></font></div>
    <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">_______________________________________________<br>
rules-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></span></font></p>
  </blockquote>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>