<?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 Exception Handling in Asynchronous Task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-in-asynchronous-task/m-p/244813#M197943</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 asynchronous service task just before an end event in our activiti process. When there is any exception in async task, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it is not caught by 'error end event' or 'error boundary event' and also process is never ended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per understanding from user guide, if process reaches the async task , process will be put on wait-state and it will ends &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;only if it get acknowledgement from the async task. What if I didn't get the acknowledgement due to error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is working as stated when the async task completes successfully. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so my questions are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) How to handle the exception in async service task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If any runtime exception occurs in async task, is there a way to stop the process manually because &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to load my server with too many active process instance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the BPMN file [ loanProcess.txt ] with this post .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 07:07:17 GMT</pubDate>
    <dc:creator>bala1010</dc:creator>
    <dc:date>2016-06-20T07:07:17Z</dc:date>
    <item>
      <title>Exception Handling in Asynchronous Task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-in-asynchronous-task/m-p/244813#M197943</link>
      <description>Hi,We have asynchronous service task just before an end event in our activiti process. When there is any exception in async task, it is not caught by 'error end event' or 'error boundary event' and also process is never ended.As per understanding from user guide, if process reaches the async task ,</description>
      <pubDate>Mon, 20 Jun 2016 07:07:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-in-asynchronous-task/m-p/244813#M197943</guid>
      <dc:creator>bala1010</dc:creator>
      <dc:date>2016-06-20T07:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling in Asynchronous Task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-in-asynchronous-task/m-p/244814#M197944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp; What if I didn't get the acknowledgement due to error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The async task will be retried 3 times (configurable amount) and then it's considered dead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) you can catch it and map it to a Bpmn Error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) You can query for jobs that have an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:25:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-in-asynchronous-task/m-p/244814#M197944</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-22T09:25:59Z</dc:date>
    </item>
  </channel>
</rss>

