<?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 getway fork can't execute task service concurrently in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109762#M77052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your replay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The version of the activiti I used is 5.9.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I change the task 1 to sleep 10 seconds with Thread.sleep(10000), the result is same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method "executeJobs" is called twice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First time, the parameter jobIds has tow elements (I mentioned before, the tow elements are job id of the task1 and task2 in table act_ru_job).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Second time, the parameter jobIds is an empty list. And when I pause at here(breakpoint), I can see the output of task1 and task2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This means, when the first time call the "executeJobs", the tow tasks are all executed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the "threadPoolExecutor" the size is default setting. CoreSize =3, maximumPoolSize=10&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2012 08:22:45 GMT</pubDate>
    <dc:creator>craig_wu9</dc:creator>
    <dc:date>2012-07-24T08:22:45Z</dc:date>
    <item>
      <title>Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109760#M77050</link>
      <description>I got tow task service named task1 and task2, both with activiti:async="true" set. And I have active the JobExecutor at activiti.cfg.xml. But the result is the two tasks executed sequence.It will print task1:1 to task1:49 and pause, then continue to print task1: 50 to task1: 100. After that start to</description>
      <pubDate>Tue, 24 Jul 2012 02:21:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109760#M77050</guid>
      <dc:creator>craig_wu9</dc:creator>
      <dc:date>2012-07-24T02:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109761#M77051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you "know" they are run sequential? The first task will probably be on the queue first, and instantly waits for one second (1000 millis). Have you tried with a longer sleep-time? Does task 2 still gets executed after task1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, double-check you're using an activiti version that support async (I think 5.8 or 5.9). If this doesn't do the trick, debug some more and see if the "executeJobs" method is called twice and check what pool-size is used…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 07:15:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109761#M77051</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-24T07:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109762#M77052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your replay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The version of the activiti I used is 5.9.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I change the task 1 to sleep 10 seconds with Thread.sleep(10000), the result is same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method "executeJobs" is called twice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First time, the parameter jobIds has tow elements (I mentioned before, the tow elements are job id of the task1 and task2 in table act_ru_job).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Second time, the parameter jobIds is an empty list. And when I pause at here(breakpoint), I can see the output of task1 and task2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This means, when the first time call the "executeJobs", the tow tasks are all executed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the "threadPoolExecutor" the size is default setting. CoreSize =3, maximumPoolSize=10&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 08:22:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109762#M77052</guid>
      <dc:creator>craig_wu9</dc:creator>
      <dc:date>2012-07-24T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109763#M77053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Didn't get that the first time that it was TWO (not tow) id's passed in the list. So it makes sense they are executed sequentially, the question is why they are offered to the job-executor in batch instead of each job at a time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#exclusiveJobs" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#exclusiveJobs&lt;/A&gt;&lt;SPAN&gt; &amp;gt; jobs in one process-instance are by default exclusive, read the section there to get an insight of why this is&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 09:29:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109763#M77053</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-24T09:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109764#M77054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Didn't Daniel Meyer implement an 'optimistic-locking-exception-job-executer-retry-to-commit-only' mechanism to circumvent the optimistic locking thing written in the 'why exclusive jobs' part?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-436" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-436&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, I know Activiti is not a multi-threading system, but it limits functionality in that you have to start sending messages to e.g. external jms if you want to have concurrency or???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 09:51:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109764#M77054</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-07-24T09:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109765#M77055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, you can have them execute in parallel, just turn the "exclusive" to false on those async-tasks in the same process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 11:16:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109765#M77055</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-24T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109766#M77056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I know that, but to circumvent troubles due to the OLE, you could configure this 'retry' mechnism, right? (And I do not mean the normal job retry mechanism)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:28:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109766#M77056</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-07-24T13:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109767#M77057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ronald, I'm not aware of this kind of mechanism being in place, but you can be right though…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:30:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109767#M77057</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-24T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109768#M77058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your replay. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got what I want. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But also got an exception&amp;nbsp; &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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;org.activiti.engine.ActivitiOptimisticLockingException: ExecutionEntity[6201] was updated by another transaction concurrently&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 07:29:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109768#M77058</guid>
      <dc:creator>craig_wu9</dc:creator>
      <dc:date>2012-07-25T07:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel getway fork can't execute task service concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109769#M77059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ronald, I'm not aware of this kind of mechanism being in place, but you can be right though…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to find it… and let you know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 19:10:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parallel-getway-fork-can-t-execute-task-service-concurrently/m-p/109769#M77059</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-07-25T19:10:57Z</dc:date>
    </item>
  </channel>
</rss>

