<?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: Exception Handling of Asynchronous Processes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138992#M97412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I came across &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1046" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1046&lt;/A&gt;&lt;SPAN&gt;, I think the FailedJobCommandFactory is what I was looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will have a look at it and report back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 09:22:31 GMT</pubDate>
    <dc:creator>flavio_donze</dc:creator>
    <dc:date>2013-04-22T09:22:31Z</dc:date>
    <item>
      <title>Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138988#M97408</link>
      <description>HelloAfter the discussion here http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6334 about transaction deadlocks, I ended up setting my callActivity activiti:async="true". This solved my deadlock problem, but now I'm facing the problem of handling exceptions.The workflow that caused the deadloc</description>
      <pubDate>Fri, 12 Apr 2013 11:51:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138988#M97408</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2013-04-12T11:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138989#M97409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that you don't really know when the execution will actually happen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the load is high, it might even take a while before it is picked up by the job executor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you need to ask yourself what would be the wanted behavior:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Do you want to show it in the UI directly? If so, we will have to dig deeper in why the deadlock happens&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Is email sending enough?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Do you want to create a dedicated UI for failed processes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also now I get three mails, since the job executor tries three times to execute the workflow.&lt;BR /&gt;Is it possible to disable this behaviour?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes: by default there is a retry interceptor configured when you execute any API call (and thus a Command).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can remove this interceptor, change or tweak it. Or add your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Similarly you could add your own interceptor that does something with the exception that happens during process execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That way you can catch it (even when its done async) and do something accordingly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 10:01:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138989#M97409</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-15T10:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138990#M97410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we could get rid of the deadlock, showing the exception in the UI would be a good option. This is how I have it right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added a test case in the deadlock thread: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6334&amp;amp;p=23640" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6334&amp;amp;p=23640&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise sending an email is an ok solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked into the retry interceptor and found these two classes org.activiti.engine.impl.interceptor.RetryInterceptor and org.activiti.engine.impl.interceptor.JtaRetryInterceptor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did set breakpoints all over those classes but I never enter it, I also did not find any other place where this handling could be done. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you point me to the right class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some documentation about this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greets and thanks for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flavio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 07:13:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138990#M97410</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2013-04-17T07:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138991#M97411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;i&amp;gt;Could you point me to the right class?&amp;lt;/i&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked and you are indeed right. The retry interceptor is not set by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I then remembered it has to do with jobs: jobs have a retries fields that is decreased when a job execution fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;i&amp;gt;Is there some documentation about this?&amp;lt;/i&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I'm sorry. That stuff could indeed use docs. I put it on my todo list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 11:07:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138991#M97411</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-18T11:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138992#M97412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I came across &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1046" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1046&lt;/A&gt;&lt;SPAN&gt;, I think the FailedJobCommandFactory is what I was looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will have a look at it and report back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 09:22:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138992#M97412</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2013-04-22T09:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138993#M97413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote a blog about the exception handling: &lt;/SPAN&gt;&lt;A href="http://flaviodonze.blogspot.ch/2013/04/activiti-overall-exception-handlingin.html" rel="nofollow noopener noreferrer"&gt;http://flaviodonze.blogspot.ch/2013/04/activiti-overall-exception-handlingin.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 06:17:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138993#M97413</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2013-04-23T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling of Asynchronous Processes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138994#M97414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for sharing your experiences!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 07:34:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-of-asynchronous-processes/m-p/138994#M97414</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-24T07:34:50Z</dc:date>
    </item>
  </channel>
</rss>

