<?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 Camel task not called in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118243#M83398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad it works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 15:02:16 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-06-04T15:02:16Z</dc:date>
    <item>
      <title>Async Camel task not called</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118240#M83395</link>
      <description>Hi, I have an issue with calling async camel service tasks, which is fairly similar to this thread: http://forums.activiti.org/content/async-service-task-not-executingI have a diagram with parallel gateway forking into two branches, on each branch there are two camel service tasks, followed by join</description>
      <pubDate>Fri, 24 May 2013 09:25:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118240#M83395</guid>
      <dc:creator>tomas_surovec</dc:creator>
      <dc:date>2013-05-24T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Async Camel task not called</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118241#M83396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your job-executor on? Because async activities are executed by that, the call that causes the activities to be queued for execution, returns immediately. That's why the API-call returns…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:41:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118241#M83396</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-06-04T13:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Async Camel task not called</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118242#M83397</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;yes, that was the issue, thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:54:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118242#M83397</guid>
      <dc:creator>tomas_surovec</dc:creator>
      <dc:date>2013-06-04T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Async Camel task not called</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118243#M83398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad it works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 15:02:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118243#M83398</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-06-04T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Async Camel task not called</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118244#M83399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although I have another problem: the setup is fairly simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;START ———&amp;gt; ServiceTask A ————-&amp;gt; ServiceTask B ————–&amp;gt; END&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;both service tasks are camel tasks that just call a prototype bean's method that just writes out thread id and sleeps for a few seconds on that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thread. Now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) A, B async = false -&amp;gt; serial call as expected on the same "main" thread&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) A async = false, B async = true -&amp;gt; serial call, second call on different thread (as expected) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) A async = true, B async = false -&amp;gt; serial call (not expected), second call on the same thread as the first (also not expected behavior)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) A, B async = true -&amp;gt; B isn't called at all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(btw. acitviti:exclusive="false" always)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that async service task call means that the service is called asynchronously from main thread (the service call being &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;executed on a different thread) and the main thread continues without blocking, i.e. in 3) it should start executing B immediately and on different &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thread than A. Apparently async calls don't work the way I thought - my question is how can I manage to start executing both A and B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;concurrently? In other words I want that both service tasks use their own thread, different from "main" thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 16:21:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118244#M83399</guid>
      <dc:creator>tomas_surovec</dc:creator>
      <dc:date>2013-06-04T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Async Camel task not called</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118245#M83400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Async indeed means that the activity is executed in another thread, returning control to the main-thread and committing process-state up until the point where the async should start. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3 -&amp;gt; The second task will only be executed once the asynchronous A is complete. When the A is completed by the job-executor thread, it executes B as well on that thread (and any subsequent non-async activities until a wait state or process-end has been reached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to have both A and B executing at the same time, use a parallel gateway and async=true.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 12:25:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-camel-task-not-called/m-p/118245#M83400</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-06-06T12:25:36Z</dc:date>
    </item>
  </channel>
</rss>

