<?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 Retry an email task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retry-an-email-task/m-p/245313#M198443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement where I have an email task and I want it to retry for 5 times until it throws some exception (may be due to some network issue). If after 5 times also, we get an exception than continue the flow as it was supposed to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a sprint boot app with activiti dependency&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can you pls answer below queries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. how can I change the default retry count from 3 to 5?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. how can I get number of retries remaining for a particular job in email executor (Java Delegate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I am able to get crack both these conditions than I can append try catch in email task and on reaching the threshold, I can catch the exception and continue the flow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 08:23:44 GMT</pubDate>
    <dc:creator>himanshu_agarwa</dc:creator>
    <dc:date>2016-11-17T08:23:44Z</dc:date>
    <item>
      <title>Retry an email task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retry-an-email-task/m-p/245313#M198443</link>
      <description>Hi Team,I have a requirement where I have an email task and I want it to retry for 5 times until it throws some exception (may be due to some network issue). If after 5 times also, we get an exception than continue the flow as it was supposed to.I have a sprint boot app with activiti dependencySo, c</description>
      <pubDate>Thu, 17 Nov 2016 08:23:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retry-an-email-task/m-p/245313#M198443</guid>
      <dc:creator>himanshu_agarwa</dc:creator>
      <dc:date>2016-11-17T08:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Retry an email task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retry-an-email-task/m-p/245314#M198444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The retry count for both Job and Timer threads is actually hard coded in the JobEntity.java class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp; public static final int DEFAULT_RETRIES = 3;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change it here and recompile the engine.&lt;BR /&gt;In order to check the number of retries remaining, you can use the managementService.createJobQuery() to retrieve a list of jobs. The retry count is an exposed parameter in the returned list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 16:25:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retry-an-email-task/m-p/245314#M198444</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-27T16:25:14Z</dc:date>
    </item>
  </channel>
</rss>

