<?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 for Async executor in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240490#M193620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;cjose, thank you for you answer! With asyncExecutorActivate it work perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile I do not understand how task processing works if I do not activate Job Executor and do not activate Async Executor. As I see everything works perfectly except custom error handling. Why does it happen? I thought that Job Executor is activated by default.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2016 10:14:58 GMT</pubDate>
    <dc:creator>nixikanius</dc:creator>
    <dc:date>2016-10-31T10:14:58Z</dc:date>
    <item>
      <title>Exception handling for Async executor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240487#M193617</link>
      <description>I want to implement global exception handling like it suggested to do for Job executor (http://flaviodonze.blogspot.ru/2013/04/activiti-overall-exception-handlingin.html). To do this I added configuration in activiti-custom-context.xml for activiti-rest:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;amp;l</description>
      <pubDate>Mon, 17 Oct 2016 14:13:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240487#M193617</guid>
      <dc:creator>nixikanius</dc:creator>
      <dc:date>2016-10-17T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exception handling for Async executor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240488#M193618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anybody can help me? I see in &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/asyncexecutor/ExecuteAsyncRunnable.java" rel="nofollow noopener noreferrer"&gt;sources&lt;/A&gt;&lt;SPAN&gt; there is support for custom error handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CommandConfig commandConfig = commandExecutor.getDefaultConfig().transactionRequiresNew();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FailedJobCommandFactory failedJobCommandFactory = commandContext.getFailedJobCommandFactory();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Command&amp;lt;Object&amp;gt; cmd = failedJobCommandFactory.getCommand(job.getId(), exception);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log.trace("Using FailedJobCommandFactory '" + failedJobCommandFactory.getClass() + "' and command of type '" + cmd.getClass() + "'");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it does not work. In enabled trace level log I do not see any "Using FailedJobCommandFactory" string even using default error handling.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 12:16:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240488#M193618</guid>
      <dc:creator>nixikanius</dc:creator>
      <dc:date>2016-10-25T12:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exception handling for Async executor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240489#M193619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just tested your code by turning on the old job executor &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as well as the new Async Executor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="asyncExecutorEnabled" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="asyncExecutorActivate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In both cases it is behaving correctly where I can see HELLO1! &amp;amp; HELLO2! getting printed in logs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ciju&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 06:03:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240489#M193619</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2016-10-26T06:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exception handling for Async executor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240490#M193620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;cjose, thank you for you answer! With asyncExecutorActivate it work perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile I do not understand how task processing works if I do not activate Job Executor and do not activate Async Executor. As I see everything works perfectly except custom error handling. Why does it happen? I thought that Job Executor is activated by default.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 10:14:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-for-async-executor/m-p/240490#M193620</guid>
      <dc:creator>nixikanius</dc:creator>
      <dc:date>2016-10-31T10:14:58Z</dc:date>
    </item>
  </channel>
</rss>

