<?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 Mail Task Transaction in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123320#M86845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a flow where a user task is executed by the user which takes the flow to a service task. After this task is complete a mail notification is sent. The flow then moves to the next user task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Initially this was all in sync and worked fine. The issue happened when we had a error thrown from the db layer after the first user task completed. This resulted in the transaction rolling back, but the mail notification was sent as the exception happened after the mail task was called. (persisting to the db using Spring/JPA).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the mail task to be async="true" which resolves this issue. The question I had was regarding the mailtask. If the mailtask fails (say mail server is down or some other reason), would this process be stuck. Or after 3 retries will the process move to the next task (2nd user task?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 11:48:12 GMT</pubDate>
    <dc:creator>jatz</dc:creator>
    <dc:date>2013-05-08T11:48:12Z</dc:date>
    <item>
      <title>Mail Task Transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123320#M86845</link>
      <description>We have a flow where a user task is executed by the user which takes the flow to a service task. After this task is complete a mail notification is sent. The flow then moves to the next user task.Initially this was all in sync and worked fine. The issue happened when we had a error thrown from the d</description>
      <pubDate>Wed, 08 May 2013 11:48:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123320#M86845</guid>
      <dc:creator>jatz</dc:creator>
      <dc:date>2013-05-08T11:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task Transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123321#M86846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the async task fails 3 times (the number of retries are configurable by the way), the job is kept in the database with 'retries = 0'. This won't be retries anymore, unless triggered manually by the API (or explorer). If you have async stuff in your process, you should have a mechanism that inspects the failed jobs (see JobQuery, this offers functionality to find those jobs and look at the exception that occurs) on a regular basis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, the process won't move on and will be "waiting".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 07:47:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123321#M86846</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-13T07:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task Transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123322#M86847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That answers my question. Just a question on this - say in our example, the mail task may be an activity to be performed, but its failure not too critical. This would imply that the process can still move to the next state. In this case is the only option currently to extend MailActivitiyBehavior? Would an option on the mail task be helpful to log the exception and continue on?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 08:06:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123322#M86847</guid>
      <dc:creator>jatz</dc:creator>
      <dc:date>2013-05-21T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task Transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123323#M86848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a regular JavaDelegate for this and try-catch-ignore the exception in the execute() method. Activiti will consider the delegate as being executed without errors and continues it's flow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 06:01:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mail-task-transaction/m-p/123323#M86848</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-22T06:01:29Z</dc:date>
    </item>
  </channel>
</rss>

