<?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: Async multi instance runs in 1 transaction in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181871#M135001</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;BR /&gt;&lt;SPAN&gt;As a workaround, we placed a serviceTask in front of the exclusive gateway. This serviceTask now does the java call and sets a boolean variable that is used in the exclusive gateway. Now we dont get a timeout, as the serviceTask makes sure a different transaction is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still I find it very strange that a callActivity of a multi-instance with async=true runs the exclusive gateway of ALL instances in 1 transaction…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 10:03:56 GMT</pubDate>
    <dc:creator>stainii</dc:creator>
    <dc:date>2015-03-18T10:03:56Z</dc:date>
    <item>
      <title>Async multi instance runs in 1 transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181870#M135000</link>
      <description>Hello,We use Spring 3.2 and Activiti 5.17. Our transactionmanager has a timeout of 5 seconds. We have a multi-instance for 3 items and each item starts with an exclusive gateway check. This read-only check takes 2 seconds. We would expect that every item runs in a separate transaction. But we see a</description>
      <pubDate>Tue, 17 Mar 2015 12:52:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181870#M135000</guid>
      <dc:creator>stainii</dc:creator>
      <dc:date>2015-03-17T12:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Async multi instance runs in 1 transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181871#M135001</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;BR /&gt;&lt;SPAN&gt;As a workaround, we placed a serviceTask in front of the exclusive gateway. This serviceTask now does the java call and sets a boolean variable that is used in the exclusive gateway. Now we dont get a timeout, as the serviceTask makes sure a different transaction is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still I find it very strange that a callActivity of a multi-instance with async=true runs the exclusive gateway of ALL instances in 1 transaction…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:03:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181871#M135001</guid>
      <dc:creator>stainii</dc:creator>
      <dc:date>2015-03-18T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Async multi instance runs in 1 transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181872#M135002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Activiti does not start multiple threads/transactions for a multi instance. This is related to how Activiti is designed: &lt;/SPAN&gt;&lt;A href="http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency" rel="nofollow noopener noreferrer"&gt;http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm assuming this is a multi instance subprocess? If so, it might help to make the elements in the subprocess async (haven't tried it)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:42:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181872#M135002</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-24T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Async multi instance runs in 1 transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181873#M135003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Making the elements in the multi instace subprocess async did work, indeed. However, it seems that there is still a timeout due to a lot of write queries to the Activiti history tables, which all seemed to happen in 1 transaction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We solved this problem, by not starting 1 process which starts 1500 muli-instances, but by starting the 1500 multi-instances ourselves in a transactionless EJB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:25:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181873#M135003</guid>
      <dc:creator>stainii</dc:creator>
      <dc:date>2015-03-24T13:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Async multi instance runs in 1 transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181874#M135004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1500 multi instances does produce quite some data on the default history level &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:56:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-multi-instance-runs-in-1-transaction/m-p/181874#M135004</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-24T13:56:18Z</dc:date>
    </item>
  </channel>
</rss>

