<?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: Do something when max retries is reached for a task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232486#M185616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;- try to implement your custom org.activiti.engine.impl.jobexecutor.FailedJobCommandFactory. Add it to the process engine configuration. In the created command when retries are 0 -&amp;gt; throw BpmnError.&lt;BR /&gt;- Listen to JOB_RETRIES_DECREMENTED entity event and when there is 0 -&amp;gt; throw BpmnError event.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Just tried that : The BpmnError is thrown but my error handling branch is not triggered…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 10:08:54 GMT</pubDate>
    <dc:creator>spartan</dc:creator>
    <dc:date>2016-05-25T10:08:54Z</dc:date>
    <item>
      <title>Do something when max retries is reached for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232483#M185613</link>
      <description>I would like to move the execution point to another branch of the workflow when the max number of automatic retries is reached for a service task. I guess I have to add an "errorBoundaryEvent" to the monitored service task and that I could handle the routing from the delegate ; if {max retry is reac</description>
      <pubDate>Tue, 24 May 2016 10:06:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232483#M185613</guid>
      <dc:creator>spartan</dc:creator>
      <dc:date>2016-05-24T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Do something when max retries is reached for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232484#M185614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I ended up implementing that logic in the delegate. I'm throwing a BpmnError when max repeat is reached. The errror handling branch is then started (by a errorBoundaryEvent).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that now it ends up with a "RollbackException: Transaction marked as rollbackOnly"… &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 17:41:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232484#M185614</guid>
      <dc:creator>spartan</dc:creator>
      <dc:date>2016-05-24T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Do something when max retries is reached for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232485#M185615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Spartan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are many possibilities e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- try to implement your custom &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.impl.jobexecutor.FailedJobCommandFactory&lt;/CODE&gt;&lt;SPAN&gt;. Add it to the process engine configuration. In the created command when retries are 0 -&amp;gt; throw BpmnError.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Listen to JOB_RETRIES_DECREMENTED entity event and when there is 0 -&amp;gt; throw BpmnError event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 19:26:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232485#M185615</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-24T19:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Do something when max retries is reached for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232486#M185616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;- try to implement your custom org.activiti.engine.impl.jobexecutor.FailedJobCommandFactory. Add it to the process engine configuration. In the created command when retries are 0 -&amp;gt; throw BpmnError.&lt;BR /&gt;- Listen to JOB_RETRIES_DECREMENTED entity event and when there is 0 -&amp;gt; throw BpmnError event.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Just tried that : The BpmnError is thrown but my error handling branch is not triggered…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:08:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232486#M185616</guid>
      <dc:creator>spartan</dc:creator>
      <dc:date>2016-05-25T10:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Do something when max retries is reached for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232487#M185617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you create jUnit test for your case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 11:26:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-something-when-max-retries-is-reached-for-a-task/m-p/232487#M185617</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-25T11:26:04Z</dc:date>
    </item>
  </channel>
</rss>

