<?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 Async process start in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49842#M28817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Activiti Team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is about asynchronous process start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I understand the Activiti API the only way to start a process instance is by calling either&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeService.startProcessInstanceByKey(…) or RuntimeService.startProcessInstanceById(…)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But those methods run in a synchronous manner until they encounter a wait state, and after that they return a processInstance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to start the process and and get the processInstance even before executing the first task? So that it will look like async execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe I misunderstand the API. Please correct me if I'm wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Nov 2011 08:25:26 GMT</pubDate>
    <dc:creator>alexbt</dc:creator>
    <dc:date>2011-11-13T08:25:26Z</dc:date>
    <item>
      <title>Async process start</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49842#M28817</link>
      <description>Hello Activiti Team,My question is about asynchronous process start.As far as I understand the Activiti API the only way to start a process instance is by calling eitherRuntimeService.startProcessInstanceByKey(…) or RuntimeService.startProcessInstanceById(…)But those methods run in a synchronous man</description>
      <pubDate>Sun, 13 Nov 2011 08:25:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49842#M28817</guid>
      <dc:creator>alexbt</dc:creator>
      <dc:date>2011-11-13T08:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Async process start</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49843#M28818</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;No you are right. What you can do is use the async attribute on the first task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So then the process will be started, and the start event will be processed and the first sequence flow will be taken. But when the first task needs to be processed, it will do it asynchronously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you get the process instance back from the startProcessInstanceByKey method before the process engine will execute the first task.&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>Sun, 13 Nov 2011 09:25:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49843#M28818</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-11-13T09:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Async process start</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49844#M28819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you very much for the fast reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, your book is a great help for me. Looking forward to reading the unpublished chapters &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2011 10:18:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-process-start/m-p/49844#M28819</guid>
      <dc:creator>alexbt</dc:creator>
      <dc:date>2011-11-13T10:18:25Z</dc:date>
    </item>
  </channel>
</rss>

