<?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: Process instance execution happening sequentially in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98850#M68208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My understanding of what may be happening is if your process template is not explicitely tagged with asynchronous, then the process instance will execute to the first wait state in the process using the client thread. Hence in your case you may see that all the process instances start and execute in the context of the looping client thread and thus you will get serial execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the user guide&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"…If you trigger Activiti (i.e. start a process, complete a task, signal an execution), Activiti is going to advance in the process, until it reaches wait states on each active path of execution. More concretely speaking it performs a depth-first search through the process graph and returns if it has reached wait states on every branch of execution. A wait state is a task which is performed "later" which means that Activiti persists the current execution and waits to be triggered again. …"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out the section on asynchronous continuations in the user guide, there's a good diagram which will hopefully clarify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 22:33:17 GMT</pubDate>
    <dc:creator>webcyberrob</dc:creator>
    <dc:date>2012-11-05T22:33:17Z</dc:date>
    <item>
      <title>Process instance execution happening sequentially</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98849#M68207</link>
      <description>Hello,I have a process definition containing a service task that takes a few seconds to run. For performance reasons, I would like to run several instances of this process in parallel. I start each process instance in a for loop:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (SomeEntity e : entities) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG.info("Processing</description>
      <pubDate>Mon, 05 Nov 2012 14:35:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98849#M68207</guid>
      <dc:creator>pavlos</dc:creator>
      <dc:date>2012-11-05T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Process instance execution happening sequentially</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98850#M68208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My understanding of what may be happening is if your process template is not explicitely tagged with asynchronous, then the process instance will execute to the first wait state in the process using the client thread. Hence in your case you may see that all the process instances start and execute in the context of the looping client thread and thus you will get serial execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the user guide&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"…If you trigger Activiti (i.e. start a process, complete a task, signal an execution), Activiti is going to advance in the process, until it reaches wait states on each active path of execution. More concretely speaking it performs a depth-first search through the process graph and returns if it has reached wait states on every branch of execution. A wait state is a task which is performed "later" which means that Activiti persists the current execution and waits to be triggered again. …"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out the section on asynchronous continuations in the user guide, there's a good diagram which will hopefully clarify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:33:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98850#M68208</guid>
      <dc:creator>webcyberrob</dc:creator>
      <dc:date>2012-11-05T22:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Process instance execution happening sequentially</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98851#M68209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your answer, webcyberrob. You're apparently right. Every process instance will be executed in its parent thread. Only the JobExecutor will start jobs in another thread and this will only happen, as you pointed out, if a wait state has been reached, a task has the async flag set to true or a timer event fires.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavlos&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 08:13:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-execution-happening-sequentially/m-p/98851#M68209</guid>
      <dc:creator>pavlos</dc:creator>
      <dc:date>2012-11-06T08:13:32Z</dc:date>
    </item>
  </channel>
</rss>

