<?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: Question about parallel gateway in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7862#M2435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this link, but it unfortunately does not clarify the situation. The described use case is exactly what i want to do - i have a process that will be driven by asynchronous events. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i working with human user tasks the synchronisation over the database is certainly good enough. But in my case the events will be produced by a measuring system and probability for such clash is significantly higher.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem i see is that the database can not afford the synchronisation in real time in principle… &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp; What is needed is activiti engine synchronize the joinig parallel paths over an java monitor object or a semaphore. Is it realistic in any way? Can i as user of api influence it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Vladimir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Aug 2010 07:54:12 GMT</pubDate>
    <dc:creator>vladi</dc:creator>
    <dc:date>2010-08-24T07:54:12Z</dc:date>
    <item>
      <title>Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7860#M2433</link>
      <description>Hi,i have tryed a very simple process with parallel gateway and two user task an each path:&amp;lt;process id="concurency"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;startEvent id="start" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;parallelGateway id="fork" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;userTask name="task_1" id="task_1" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;parallelGateway id="join" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;</description>
      <pubDate>Mon, 23 Aug 2010 09:33:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7860#M2433</guid>
      <dc:creator>vladi</dc:creator>
      <dc:date>2010-08-23T09:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7861#M2434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;process concurrency != multithreaded program execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as you state correctly, activiti engine uses the db for synchronization.&amp;nbsp; a process is executed in transactional steps.&amp;nbsp; each step is calculated with a single thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;because this question is&amp;nbsp; asked frequently, i wrote the answer in a faq: &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;let me know if this helps you further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 06:44:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7861#M2434</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-08-24T06:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7862#M2435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this link, but it unfortunately does not clarify the situation. The described use case is exactly what i want to do - i have a process that will be driven by asynchronous events. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i working with human user tasks the synchronisation over the database is certainly good enough. But in my case the events will be produced by a measuring system and probability for such clash is significantly higher.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem i see is that the database can not afford the synchronisation in real time in principle… &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp; What is needed is activiti engine synchronize the joinig parallel paths over an java monitor object or a semaphore. Is it realistic in any way? Can i as user of api influence it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Vladimir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 07:54:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7862#M2435</guid>
      <dc:creator>vladi</dc:creator>
      <dc:date>2010-08-24T07:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7863#M2436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is needed is activiti engine synchronize the joinig parallel paths over an java monitor object or a semaphore. Is it realistic in any way?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Nope.&amp;nbsp; That doesn't work in a cluster.&amp;nbsp; Databases have decades research on optimisations to handle the concurrent access. They are much better then anything we could provide in that respect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your process and software design can also greatly reduce the number of potential optimistic locking failures.&amp;nbsp; I don't see yet how leveraging the DB for purposes that it is good at (isolation and concurrency) can be bad.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 10:08:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7863#M2436</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-08-24T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7864#M2437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The test case above shows the process execution is stuck at the merging gateway when both tasks are completed at the same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems there is no exception thrown so we can't detect there is a problem with process execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no rollback done on one of the task completions either, otherwise we would still have one of the user tasks in the list, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Tom: do you think this is supposed to work with the current version of Activiti (and the test case is wrong or we are having a configuration issue etc.) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 12:09:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7864#M2437</guid>
      <dc:creator>ruediger_hain</dc:creator>
      <dc:date>2010-08-24T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7865#M2438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try remodelling your test code without the workers and make it run with only 1 single test thread.&amp;nbsp; Then you should be able get more insight or otherwise better explain your problem here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 15:40:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7865#M2438</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-08-25T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question about parallel gateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7866#M2439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Imagine, you have two usertasks are completed by two different users at the same time. The testcase above simulate this situation. Or two asynchronous messages arrives at the same. You can't running it in your application in a single thread, it can be two different web sessions or the like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would expect a proper Exception signaling a conflict will be thrown by activiti, in order to i can retry the operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 13:11:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-parallel-gateway/m-p/7866#M2439</guid>
      <dc:creator>vladi</dc:creator>
      <dc:date>2010-08-26T13:11:44Z</dc:date>
    </item>
  </channel>
</rss>

