<?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: ServiceTask async join problem on MySQL in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185414#M138544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't seem to be able to run your project. For example the pom.xml has 5.15 as Activiti version, while the async executor was introduced later. Also got a Spring error. Could you check if the project runs for you? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, from your logging it seems like two process engines are booting up? That would explain the concurrent transaction exception … &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 19:51:38 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-07-14T19:51:38Z</dc:date>
    <item>
      <title>ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185413#M138543</link>
      <description>I am experiencing problem with simple process:[start] -&amp;gt; [excl-gateway] -&amp;gt; [user task] -&amp;gt; [excl-gateway] -&amp;gt; [end]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; [async svctask]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -^‍‍‍‍the problem is, when async svc task finishesit is still in list of executors and msg in logorg.activiti.engine.impl</description>
      <pubDate>Tue, 14 Jul 2015 12:00:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185413#M138543</guid>
      <dc:creator>huksley</dc:creator>
      <dc:date>2015-07-14T12:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185414#M138544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't seem to be able to run your project. For example the pom.xml has 5.15 as Activiti version, while the async executor was introduced later. Also got a Spring error. Could you check if the project runs for you? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, from your logging it seems like two process engines are booting up? That would explain the concurrent transaction exception … &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:51:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185414#M138544</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-14T19:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185415#M138545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fixed maven config - upgraded Activiti version, added MySQL connector as artefact.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After running mvn compile; mvn test - error persists on Mac OS - Java 1.6.0_65, MySQL 5.5.28&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might need to change src/test/resources/activiti.cfg.xml to suit your environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About two instances… I follow unittest template. Running single test instance. No other process access database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 05:24:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185415#M138545</guid>
      <dc:creator>huksley</dc:creator>
      <dc:date>2015-07-15T05:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185416#M138546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried on MySQL 5.6.25 on Windows - same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried on H2 Server mode, using url jdbc:h2:tcp://localhost/~/activiti - NO ERROR&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 11:06:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185416#M138546</guid>
      <dc:creator>huksley</dc:creator>
      <dc:date>2015-07-15T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185417#M138547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fixed project. Maybe my process definition is incorrect?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:25:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185417#M138547</guid>
      <dc:creator>huksley</dc:creator>
      <dc:date>2015-07-22T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185418#M138548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, perfect, now I could run it straight away without any problem, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens is that, after the process instance is started, both the 'task complete' and the 'async service task happen at the same time, in two different threads. One of the two will 'win', as they both need to join in the joining parallel gateway. In this case, the async job often loses (you see an optimistic locking exception in the log), and the task complete wins. At that point, the due date is recalculated (+ 5 minutes) to retry later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A workaround for this pattern is to make the joining parallel gateway async and exclusive:&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;&amp;lt;parallelGateway id="parallelgateway2"&amp;nbsp; activiti:async="true" activiti:exclusive="true"&amp;gt;&amp;lt;/parallelGateway&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;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 12:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185418#M138548</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-23T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185419#M138549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for information and help. Is there any best practices on this? What I try to accomplish is to make in parallel user reviewing loan request and automatic security checking. Maybe I better use messaging/signaling?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:46:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185419#M138549</guid>
      <dc:creator>huksley</dc:creator>
      <dc:date>2015-07-23T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceTask async join problem on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185420#M138550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Making the joining gateway async and exclusive is a good idea anyway for this pattern, that avoids having concurrent joins (which is the issue here). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean with messaging/signalling? It can mean a lot of things &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 11:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/servicetask-async-join-problem-on-mysql/m-p/185420#M138550</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-28T11:35:27Z</dc:date>
    </item>
  </channel>
</rss>

