<!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">
Kris Verlaenen wrote:
<blockquote cite="mid:005801c81187$da1d0050$6400a8c0@BORG2" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.6000.16544" name="GENERATOR">
  <style>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
  </style>
  <div><font face="Arial" size="2">Sergey,</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">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:</font></div>
</blockquote>
Now that we have ruleflow, maybe agendafilters should go lower down, so
all it does is cancel the actual firing. but the before and after
events fire, likewise any other managmenet. I think this is needed now.
might change for trunk.<br>
<blockquote cite="mid:005801c81187$da1d0050$6400a8c0@BORG2" type="cite">
  <div><font face="Arial" size="2">&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.</font></div>
  <div><font face="Arial" size="2">&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.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">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.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">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.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Kris</font></div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 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; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a moz-do-not-send="true" title="SManukyan@lear.com"
 href="mailto:SManukyan@lear.com">Manukyan, Sergey</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a moz-do-not-send="true" title="rules-users@lists.jboss.org"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
    </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Wednesday, October 17, 2007 11:13 PM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[rules-users] firing specific rule</div>
    <div><br>
    </div>
    <div class="Section1">
    <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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</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="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</p>
    <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"></span></font>&nbsp;</p>
    <p class="MsoNormal"><b><font face="Arial" size="2"><span
 style="font-weight: bold; font-size: 10pt; font-family: Arial;"></span></font></b>&nbsp;</p>
    <p class="MsoNormal"><b><font face="Arial" size="2"><span
 style="font-weight: bold; font-size: 10pt; font-family: Arial;"></span></font></b>&nbsp;</p>
    </div>
    <table>
      <tbody>
        <tr>
          <td bgcolor="#ffffff"><font color="#000000">**********************<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.<br>
          </font></td>
        </tr>
      </tbody>
    </table>
    <p> </p>
    <hr> _______________________________________________<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><br>
  </blockquote>
  <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>