<?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 on the startProcessInstanceByKey in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203211#M156341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All API-calls are synchronous, executed by the calling thread. All calls to the API you do from within a JavaDelegate (or any other listener that is called as part of the process) are run in the same transaction AND thread. This is by design, to make sure process state is consistent between wait-states. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to have the second process started in another thread, make the first activity in process B asynchronous. The process B will be started synchronously in process A's transaction, but won't run the actual activity - rather, it's added as a job and executed in another thread and this will continue running process B, independent of process A's state/execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A better way might be to use a call-activity, instead of starting the process B using the runtimeService. Marking this call activity as async=true will have the subprocess be executed in a separate thread (by the job-executor). This will make process B an integral part of process A and can be used to wait on the completion of process B, executing other stuff in process A (eg. using parallel gateway in A)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 07:57:24 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-07-25T07:57:24Z</dc:date>
    <item>
      <title>Question on the startProcessInstanceByKey</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203210#M156340</link>
      <description>There is a process Instance which is running, for sake of discussion I call this process instance as "A" and within this I have to get Process Instance running "B" in a separate thread. So what I did was once I started the process A, in one of the service task of Process A, am coding to something li</description>
      <pubDate>Thu, 24 Jul 2014 22:45:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203210#M156340</guid>
      <dc:creator>sathish1</dc:creator>
      <dc:date>2014-07-24T22:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question on the startProcessInstanceByKey</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203211#M156341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All API-calls are synchronous, executed by the calling thread. All calls to the API you do from within a JavaDelegate (or any other listener that is called as part of the process) are run in the same transaction AND thread. This is by design, to make sure process state is consistent between wait-states. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to have the second process started in another thread, make the first activity in process B asynchronous. The process B will be started synchronously in process A's transaction, but won't run the actual activity - rather, it's added as a job and executed in another thread and this will continue running process B, independent of process A's state/execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A better way might be to use a call-activity, instead of starting the process B using the runtimeService. Marking this call activity as async=true will have the subprocess be executed in a separate thread (by the job-executor). This will make process B an integral part of process A and can be used to wait on the completion of process B, executing other stuff in process A (eg. using parallel gateway in A)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 07:57:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203211#M156341</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-25T07:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Question on the startProcessInstanceByKey</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203212#M156342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it. Moved the start process to Call-activity. Really appreciate the time with your explanation. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 19:05:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203212#M156342</guid>
      <dc:creator>sathish1</dc:creator>
      <dc:date>2014-07-25T19:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on the startProcessInstanceByKey</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203213#M156343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No worries, glad to help &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 07:51:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-the-startprocessinstancebykey/m-p/203213#M156343</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-29T07:51:50Z</dc:date>
    </item>
  </channel>
</rss>

