<?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: Parallel Gateway and asynchronous continuations in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72386#M47034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes i've seen it, but the given solution ("retrying") it's not the solution i'm looking for. I'm testing this in the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- eclipse plugin 5.8 (activiti.cfg.xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– job executor configurations –&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;- engine 5.8&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://dl.dropbox.com/u/175705/Screen%20shot%202011-10-30%20at%206.03.10%20PM.png" rel="nofollow noopener noreferrer"&gt;http://dl.dropbox.com/u/175705/Screen%20shot%202011-10-30%20at%206.03.10%20PM.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With A,B and C asynchronous, I want to start the 3 tasks at the same time and when the 3 finish their job, task D is executed. It's a simple example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Oct 2011 18:07:15 GMT</pubDate>
    <dc:creator>filipearaujo</dc:creator>
    <dc:date>2011-10-30T18:07:15Z</dc:date>
    <item>
      <title>Parallel Gateway and asynchronous continuations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72384#M47032</link>
      <description>Hi,I'm trying to create a parallel gateway with three sequence flows with destination a service task with asynchronous continuation.But unfortunately it gives me this exception&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ct 29, 2011 2:12:11 AM org.activiti.engine.impl.interceptor.CommandContext closeSEVERE: Error while closing command contex</description>
      <pubDate>Sat, 29 Oct 2011 00:47:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72384#M47032</guid>
      <dc:creator>filipearaujo</dc:creator>
      <dc:date>2011-10-29T00:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Gateway and asynchronous continuations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72385#M47033</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;I've just answered a post on the forum with the same exception: see &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2596" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2596&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you test this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 15:32:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72385#M47033</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-10-29T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Gateway and asynchronous continuations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72386#M47034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes i've seen it, but the given solution ("retrying") it's not the solution i'm looking for. I'm testing this in the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- eclipse plugin 5.8 (activiti.cfg.xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– job executor configurations –&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;- engine 5.8&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://dl.dropbox.com/u/175705/Screen%20shot%202011-10-30%20at%206.03.10%20PM.png" rel="nofollow noopener noreferrer"&gt;http://dl.dropbox.com/u/175705/Screen%20shot%202011-10-30%20at%206.03.10%20PM.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With A,B and C asynchronous, I want to start the 3 tasks at the same time and when the 3 finish their job, task D is executed. It's a simple example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2011 18:07:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72386#M47034</guid>
      <dc:creator>filipearaujo</dc:creator>
      <dc:date>2011-10-30T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Gateway and asynchronous continuations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72387#M47035</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;You're right. The parallel gateway / async continuation combination seems to the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll look into this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 08:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72387#M47035</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-10-31T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Gateway and asynchronous continuations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72388#M47036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We lack support for exclusive jobs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens is that 3 jobs are created and executed by the job executor concurrently. The job executor has a thread pool to which it delegates the actual execution of the jobs. So in this case 3 threads are going to execute one service task each. To do this, they check out the ExecutionEntity in three different transactions. Now there is a race condition: whichever of the transactions is first will be able to commit, the other ones fail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this is both expected and unexpected behavior: form the point of view of engine-persistence it is expected, from the point of view of the user it is maybe unexpected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I moved the discussion about how to handle this to the developer forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=2652&amp;amp;start=0" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=2652&amp;amp;start=0&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 08:38:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-gateway-and-asynchronous-continuations/m-p/72388#M47036</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-02T08:38:54Z</dc:date>
    </item>
  </channel>
</rss>

