<br><font size=2 face="sans-serif">Thanks for your quick response Michael,
I have identified the issue.. </font>
<br>
<br><font size=2 face="sans-serif">while writing rules in Decision table
(Web-guided editor) -&gt; column configuration there is a option <b>Update
engine with changes (</b>Checking this will tell the engine that the value
has changed. This will cause the rules that depend on it to be re-evaluated.
Use with care!). This was checked unintentionally, hence every time it
is going to the same rule.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Michael Anstis &lt;michael.anstis@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Rules Users List &lt;rules-users@lists.jboss.org&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">03/10/2011 10:34 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [rules-users] Infinite loop in rule
condition matching</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">rules-users-bounces@lists.jboss.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Without seeing the rules it would be very hard to determine
what causes your issue.<br>
<br>
&quot;Infinite loops&quot; normally imply there is some degree of circularity
between rules.<br>
<br>
Can you please provide a self contained test case or your rules (DRL form,
preferential).<br>
<br>
Thanks<br>
</font>
<br><font size=3>2011/3/10 Sartaj Shaik &lt;</font><a href=mailto:sartaj.shaik@tcs.com><font size=3 color=blue><u>sartaj.shaik@tcs.com</u></font></a><font size=3>&gt;</font>
<br><font size=2 face="sans-serif"><br>
Hi,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I have written some rules in Decision table (Web-guided editor), and I
have implemented the </font><font size=2 face="Courier New">AgendaFilter</font><font size=2 face="sans-serif">
to fire rules that ends with the rule name specified (</font><font size=2 face="Courier New">EndAgendaFilter)</font><font size=3>
</font><font size=2 face="Courier New"><br>
here is the accept method I have written.</font><font size=3> <br>
</font><font size=2 face="Courier New"><br>
When I fire the rules ends with some &quot;XXXXX&quot;, this accept method
goes into infinite loop and my Sysout prints &quot;Rule 1 XXXXX&quot; infinite
times.</font><font size=3> <br>
</font><font size=2 face="Courier New"><br>
(Note: all the condition variables that i have passed to guvnor matches
with the first row of that rule, hence getting Rule 1 XXXXX)</font><font size=3>
<br>
</font><font size=2 color=#820040 face="Courier New"><b><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public</b></font><font size=2 face="Courier New">
</font><font size=2 color=#820040 face="Courier New"><b>boolean</b></font><font size=2 face="Courier New">
accept(</font><font size=2 color=#820040 face="Courier New"><b>final</b></font><font size=2 face="Courier New">
Activation activation) {</font><font size=3> </font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; System.</font><font size=2 color=#0021bf face="Courier New"><i>out</i></font><font size=2 face="Courier New">.println(activation.getRule().getName());</font><font size=3>
</font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#820040 face="Courier New"><b>if</b></font><font size=2 face="Courier New">
(activation.getRule().getName().endsWith(</font><font size=2 color=#820040 face="Courier New"><b>this</b></font><font size=2 face="Courier New">.</font><font size=2 color=#0021bf face="Courier New">suffix</font><font size=2 face="Courier New">))
{</font><font size=3> </font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>return</b></font><font size=2 face="Courier New">
</font><font size=2 color=#820040 face="Courier New"><b>this</b></font><font size=2 face="Courier New">.</font><font size=2 color=#0021bf face="Courier New">accept</font><font size=2 face="Courier New">;</font><font size=3>
</font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; } </font><font size=2 color=#820040 face="Courier New"><b>else</b></font><font size=2 face="Courier New">
{</font><font size=3> </font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>return</b></font><font size=2 face="Courier New">
!</font><font size=2 color=#820040 face="Courier New"><b>this</b></font><font size=2 face="Courier New">.</font><font size=2 color=#0021bf face="Courier New">accept</font><font size=2 face="Courier New">;</font><font size=3>
</font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; }</font><font size=3> </font><font size=2 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font><font size=3>
<br>
<br>
</font><font size=2 face="Courier New"><br>
All my other rules are working fine, even I have created the same rule
again (same conditions, actions, data etc) it is working properly.</font><font size=3>
<br>
</font><font size=2 face="Courier New"><br>
Don't know what is the root cause, any ideas?</font><font size=3> <br>
</font><font size=2 face="Courier New"><br>
I have 3 similar rules which are failing, and those rules contains lot
of rows, so can't create the new rules for those again to make them work
:(</font><font size=3> <br>
</font><font size=2 face="Courier New"><br>
Please help!!!</font>
<br><tt><font size=3>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
<br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
<br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you<br>
<br>
</font></tt>
<br><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org"><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre>