<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with intermediate catch event and retries in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132610#M93153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How would changing the lockTime to 5 hours explain it? I'm not following , sorry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 19:28:54 GMT</pubDate>
    <dc:creator>fwachs</dc:creator>
    <dc:date>2013-05-22T19:28:54Z</dc:date>
    <item>
      <title>Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132605#M93148</link>
      <description>I have a very simple problem and I'm not sure why it's happening at all.Maybe anyone can enlighten me somehow &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;This is what's going on:- I'm running activiti 5.11- I have configured Activiti to run with 1 retry only and changed&amp;nbsp; JobExecutor.lockTimeInMillis to 5 hours- I have a process that makes a</description>
      <pubDate>Tue, 14 May 2013 19:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132605#M93148</guid>
      <dc:creator>fwachs</dc:creator>
      <dc:date>2013-05-14T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132606#M93149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This way it's more legible. Sorry for posting more than once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "data":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "ID_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "PROC_DEF_ID_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "PROC_INST_ID_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "EXECUTION_ID_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "ACT_ID_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "TASK_ID_": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "CALL_PROC_INST_ID_": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "ACT_NAME_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "ACT_TYPE_": "BLOB",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "ASSIGNEE_": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "START_TIME_": "2013-05-11 20:58:17",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "END_TIME_": "2013-05-12 16:59:17",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "DURATION_": 72060320&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 19:03:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132606#M93149</guid>
      <dc:creator>fwachs</dc:creator>
      <dc:date>2013-05-14T19:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132607#M93150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could it be that the job executor simply doesn't poll quickly enough? I believe the default polling interval is 5 minutes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Revoking retry for good : you'll need to inject your own Job Executor class which extends from the default one and change it to do no retries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:48:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132607#M93150</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-15T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132608#M93151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't you think 72060320 milisecons aka 20hours is a bit too much for a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;intermediateCatchEvent id="timerintermediatecatchevent3" name="TimerCatchEvent"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;PT1M&amp;lt;/timeDuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/intermediateCatchEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can an intervall that is defaulted to 5 minutes take 20 hours (I've got cases on my DB that duration is more than 40hours)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply, I really appreciate it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:18:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132608#M93151</guid>
      <dc:creator>fwachs</dc:creator>
      <dc:date>2013-05-15T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132609#M93152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didnt check the 20 minutes, no. So that is definitely wrong. However if you changed the lockTime to 5 hours, it could explain it right? What happens if you put the time back to the default?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 11:59:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132609#M93152</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-21T11:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132610#M93153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How would changing the lockTime to 5 hours explain it? I'm not following , sorry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 19:28:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132610#M93153</guid>
      <dc:creator>fwachs</dc:creator>
      <dc:date>2013-05-22T19:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132611#M93154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems to me that an activity after the timer-event is taking a long time to complete. SInce the JobExecutor.lockTimeInMillis is set to 5 hours, after 5 hours of executing the first run of the timer-fire, the job-executor, will think the job (which is locked by the first thread) has failed and the job is unlocked. SInce the first thread didn't come back yet, the retry-count isn't decremented and the job-executor will execute the job again (in another tread).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This carries on for 4 times, until one of the jobs succeeds, resulting in 20 hours (I guess). What does the process actually do? And what is the state of the ACT_RU_JOB entry, a couple minutes after the timer is due to fire? If it's locked, the job-excutor is working on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 07:15:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132611#M93154</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-23T07:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132612#M93155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Because if there is a failure, it gets locked for 5 hours? That would explain why you see such a huge delay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence my suggestion to test it with default settings, to rule out that is due to your changes to the job executor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 07:21:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132612#M93155</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-23T07:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132613#M93156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Federico,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my experience I learned that changing the default values of an external system is the last resort to cope with your own problems. Please explain what was the reason to change the value for JobExecutor.lockTimeInMillis - probably there could be another solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the reason the whole process to be retried is … far from "some". You didn't published your process design but let me remind you that "Activiti is going to advance in the process [in a single transaction], until it reaches wait states on each active path of execution" [ Activiti User Guide, Transactions and Concurrency ], i.e. on a transaction roll-back (when an error rise during the process instance execution) Activiti engine retries the activities sequence since the last persisted process state. All this means that if you want to retry only one (the most recent in your case) or a couple of activities then you need to control the persistence state of your process instance. I would suggest you to mark (some of) your activities Asynchronous - then the process state will be persisted on the start of each "asynchronous" activity and the retry (in a case of an error) will start from the last persisted activity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, although some workflow engines are tolerant to long transactions, it is not advisable your activities to run longer than a couple of minutes. If you need some tasks to take longer consider to make them asynchronous (this is not related to the activity property) - use one activity to invoke the task (JMS is one of your friends here) and allow the process immediately to proceed to the next activity where to wait for signal that the task was completed. You can even build a complex logic with time-outs, notifications on task result (failure in particular), and (manually) managed task repetition around such an approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:46:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132613#M93156</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-05-23T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132614#M93157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for your replies, I truly appreciate them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main problem for me is that there are some jobs that for me , shouldn't be retried even if the transaction fails to be stored due to locking exceptions. For example, sending SMSs or emails, I can't have my users getting multiple emails or sms because of an optimistic lock..If it did send the email or sms then that's all I wanted and I don't really care if the revision is ok or not.. Does this make sense to you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Concerning the lockTime, I had a process that had a subprocess that was a for-each to send 10k of emails, and the lock time was really small and since the process couldn't finish sending the emails before that lock time, it restarted…and then it restarted again because it never got to send all the emails again, and so on until I killed the app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I avoid this kind of situations?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 13:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132614#M93157</guid>
      <dc:creator>fwachs</dc:creator>
      <dc:date>2013-05-25T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with intermediate catch event and retries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132615#M93158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Federico,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what I'm talking about - you should (learn to) control the Activiti transactions in your process design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally I would not rely on a workflow engine to send 10K messages for me. I would write or extend my application to handle the mailing tasks instead, and the workflow process to notify when and what have to be sent. Then the workflow activity will need only to inform my application to do the job and to expect the application to notify back that the job is done. Additionally I would design the workflow process to control the time for and the result of the task execution and to notify me on time-out or task failure. Such an approach proved its reliability in our solutions, nevertheless this is nothing more than our approach - you can always find your own but always select your tools wisely (just because the ice is a frozen water like the snow and the ski have an edge similar to the skates doesn't mean that you can successfully skiing with skates or play hockey with ski).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 08:28:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediate-catch-event-and-retries/m-p/132615#M93158</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-05-27T08:28:13Z</dc:date>
    </item>
  </channel>
</rss>

