<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Timer triggered more than it should after an exception (infinite loop some times).
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/milhaim">Miloud Haimoune</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/741803#741803">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Maciej,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Many thanks for your help , I was trying to upgrade  to jbpm  5.3 but I got some issues (hibernate with postgres).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For this issue :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>- I'm throwing an exception from the rule just for test (this issue could happen in real life) and I understand  I should not throw exceptions from rules.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>- In step 1 in the process definition a have this script action: System.out.println("PROCESS  step 1 "+kcontext.getProcessInstance()... I have this log trace many times in 60 second (timer period) and some times it does not stop(I should have only one).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here some logs  :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">2012-06-14<strong> 16:28:49,812</strong> INFO  [STDOUT] (pool-16-thread-1) PROCESS  <strong>step 1 </strong>Workflow<strong>ProcessInstance6</strong> [processId=LoopBug,state=1] : after timer triggered  : 3</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,814 INFO  [STDOUT] (pool-16-thread-1)  Fire all rules  for process instance: 6</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,819 INFO  [STDOUT] (pool-16-thread-1) PROCESS   Step 2: after rules  validated  : </span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,834 INFO  [STDOUT] (pool-16-thread-1) PROCESS  step 1 WorkflowProcessInstance11 [processId=LoopBug,state=1] : after timer triggered  : 4</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,836 INFO  [STDOUT] (pool-16-thread-1)  Fire all rules  for process instance: 11</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,840 INFO  [STDOUT] (pool-16-thread-1) PROCESS   Step 2: after rules  validated  : </span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,855 INFO  [STDOUT] (pool-16-thread-1) PROCESS  step 1 WorkflowProcessInstance16 [processId=LoopBug,state=1] : after timer triggered  : 4</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,857 INFO  [STDOUT] (pool-16-thread-1)  Fire all rules  for process instance: 16</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,861 INFO  [STDOUT] (pool-16-thread-1) PROCESS   Step 2: after rules  validated  : </span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,875 INFO  [STDOUT] (pool-16-thread-1) PROCESS  step 1 WorkflowProcessInstance1 [processId=LoopBug,state=1] : after timer triggered  : 6</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,878 INFO  [STDOUT] (pool-16-thread-1)  Fire all rules  for process instance: 1</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,883 INFO  [STDOUT] (pool-16-thread-1) PROCESS   Step 2: after rules  validated  : </span></p><p><span style="font-size: 8pt;">2012-06-14 <strong>16:28:49,896</strong> INFO  [STDOUT] (pool-16-thread-1) PROCESS  <strong>step 1</strong> Workflow<strong>ProcessInstance6</strong> [processId=LoopBug,state=1] : after timer triggered  : 4</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,899 INFO  [STDOUT] (pool-16-thread-1)  Fire all rules  for process instance: 6</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,903 INFO  [STDOUT] (pool-16-thread-1) PROCESS   Step 2: after rules  validated  : </span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,915 INFO  [STDOUT] (pool-16-thread-1) PROCESS  step 1 WorkflowProcessInstance11 [processId=LoopBug,state=1] : after timer triggered  : 5</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,918 INFO  [STDOUT] (pool-16-thread-1)  Fire all rules  for process instance: 11</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,922 INFO  [STDOUT] (pool-16-thread-1) PROCESS   Step 2: after rules  validated  : </span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,936 INFO  [STDOUT] (pool-16-thread-1) PROCESS  step 1 WorkflowProcessInstance16 [processId=LoopBug,state=1] : after timer triggered  : 5</span></p><p><span style="font-size: 8pt;">2012-06-14 16:28:49,940 INFO  [STDOUT] (pool-16-thre</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>step 1 is executed 30 time for each process instance  in less than 2 seconds.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">The complite log file (end of the file)</span></p><p><span style="font-size: 8pt;"><br/></span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/741803#741803">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>