<?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 How to handle mail host unavailability exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-handle-mail-host-unavailability-exception/m-p/219281#M172411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We've got my e-mail server settings configured for the Activiti webapp we're using and mail tasks are doing fine, but there's a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it goes offline (our admins are doing some maitenance from time to time) and if Activiti tries to send an e-mail when the server is unavailable, webapp throws an exception and does a rollback to the last usertask, throwing an exception originating to Apache Commons Mail classes - you can see the stack trace in the attachment file. It does not happen frequently but we need a way to handle it properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to handle this exception correctly and without those nasty rollbacks? Does boundary error event on the mail task catch it? I've found out that there is a field 'ignoreException' in mail task description which may be set to 'true' and the exception will be ignored but this makes failure handling complicated - in the case I should check the variable with failure message and litter BPMN definitions. Does Activiti have some system-wide setting on ignoring email failures?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 11:50:40 GMT</pubDate>
    <dc:creator>lossril</dc:creator>
    <dc:date>2016-07-27T11:50:40Z</dc:date>
    <item>
      <title>How to handle mail host unavailability exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-handle-mail-host-unavailability-exception/m-p/219281#M172411</link>
      <description>Hello.We've got my e-mail server settings configured for the Activiti webapp we're using and mail tasks are doing fine, but there's a problem.Sometimes it goes offline (our admins are doing some maitenance from time to time) and if Activiti tries to send an e-mail when the server is unavailable, web</description>
      <pubDate>Wed, 27 Jul 2016 11:50:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-handle-mail-host-unavailability-exception/m-p/219281#M172411</guid>
      <dc:creator>lossril</dc:creator>
      <dc:date>2016-07-27T11:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle mail host unavailability exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-handle-mail-host-unavailability-exception/m-p/219282#M172412</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;We have a similar situation in our application and the way we handled it is as below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- In the service task which sends out an email, I will have a try-catch block and when an exception occurs, I put the stack trace(trim to 4k chars) into a process variable and set a flag in process variables to true. And when this service task gets completed, I check for the flag variable and if its true, I send these exception details over to a user/team with an option to retry. So when they do so,&amp;nbsp; I will hit the email service task again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the email service task executes without any exception, I set the flag to false and hence the flow takes a happy path. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps you in your case. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:00:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-handle-mail-host-unavailability-exception/m-p/219282#M172412</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-07-27T12:00:17Z</dc:date>
    </item>
  </channel>
</rss>

