<?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 multiInstanceLoopCharacteristics not executed concurrently in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178768#M131898</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;I created a service task with multiInstanceLoopCharacteristics. It is working fine but I found that task instances are executed sequentially not concurrently although I set isSequential="false" .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The task configuration is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="XXX" name="XXX" activiti:delegateExpression="${xxx}" activiti:exclusive="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="xxxList" activiti:elementVariable="xxxRequest"&amp;gt;&amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The engine is 5.16.4&amp;nbsp; .&amp;nbsp; The project is with spring framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;depends-on="dataSource,transactionManager"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="databaseType" value="h2" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="databaseSchemaUpdate" value="create-drop" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="history" value="full" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="deploymentResources" value="classpath*:activiti/*.bpmn" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried adding sleep and long loop in task code and the tasks are always executed in sequential.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From log I can see task instances are created at the same time. However, somehow they are executed in order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.b.b.MultiInstanceActivityBehavior - Multi-instance 'Activity(XXXTask)' initialized. Details: loopCounter=0, nrOrCompletedInstances=0,nrOfActiveInstances=4,nrOfInstances=4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.p.entity.ExecutionEntity - Child execution ScopeExecution[38] created with parent &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.b.b.MultiInstanceActivityBehavior - Multi-instance 'Activity(XXXTask)' initialized. Details: loopCounter=1, nrOrCompletedInstances=0,nrOfActiveInstances=4,nrOfInstances=4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.p.entity.ExecutionEntity - Child execution ScopeExecution[39] created with parent &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.b.b.MultiInstanceActivityBehavior - Multi-instance 'Activity(XXXTask)' initialized. Details: loopCounter=2, nrOrCompletedInstances=0,nrOfActiveInstances=4,nrOfInstances=4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.p.entity.ExecutionEntity - Child execution ScopeExecution[40] created with parent &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13:01:16.881 [DefaultThreadPool-2] DEBUG o.a.e.i.b.b.MultiInstanceActivityBehavior - Multi-instance 'Activity(XXXTask)' initialized. Details: loopCounter=3, nrOrCompletedInstances=0,nrOfActiveInstances=4,nrOfInstances=4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any high level configuration in engine needs to set?&amp;nbsp;&amp;nbsp; Can someone please help? Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 21:07:45 GMT</pubDate>
    <dc:creator>akirafei</dc:creator>
    <dc:date>2015-01-05T21:07:45Z</dc:date>
    <item>
      <title>multiInstanceLoopCharacteristics not executed concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178768#M131898</link>
      <description>Hi,I created a service task with multiInstanceLoopCharacteristics. It is working fine but I found that task instances are executed sequentially not concurrently although I set isSequential="false" .The task configuration is&amp;lt;serviceTask id="XXX" name="XXX" activiti:delegateExpression="${xxx}" acti</description>
      <pubDate>Mon, 05 Jan 2015 21:07:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178768#M131898</guid>
      <dc:creator>akirafei</dc:creator>
      <dc:date>2015-01-05T21:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: multiInstanceLoopCharacteristics not executed concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178769#M131899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The task configuration is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="XXXTask" name="XXXTask" activiti:delegateExpression="${XXXTask}" activiti:exclusive="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="xxxRequestList" activiti:elementVariable="xxxRequest"&amp;gt;&amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The engine configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; depends-on="dataSource,transactionManager"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="databaseType" value="h2" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="create-drop" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="history" value="full" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="deploymentResources" value="classpath*:activiti/*.bpmn" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; depends-on="processEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 21:13:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178769#M131899</guid>
      <dc:creator>akirafei</dc:creator>
      <dc:date>2015-01-05T21:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: multiInstanceLoopCharacteristics not executed concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178770#M131900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tasks are always executed in some sequential order. Tasks in an multi instance construct are no exeception to this rule. Think of 10 user tasks that are started as multi instance tasks. Each task is started (one after the other) and then blocks, because it needs a user decision. So you have 10 active tasks. Now think of 10 user tasks that are executed sequentially. In this case you would only have 1 active user task at a time. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 06:44:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178770#M131900</guid>
      <dc:creator>ollib</dc:creator>
      <dc:date>2015-01-06T06:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: multiInstanceLoopCharacteristics not executed concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178771#M131901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks ollib for the reply.&amp;nbsp;&amp;nbsp;&amp;nbsp; Then what does the property is_Sequential mean?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to have parallel executed multi instance pattern since they do not have dependencies and performance is critical to me. Is there any solution in activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 19:08:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178771#M131901</guid>
      <dc:creator>akirafei</dc:creator>
      <dc:date>2015-01-06T19:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: multiInstanceLoopCharacteristics not executed concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178772#M131902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think that a workflow system is the best choice if you are really after realtime concurrency. Parallel vs sequential is more a concept. Two tasks a and b are sequential if b cannot be started until a has ended. Two tasks a and b are parallel if they can be started independently from each other. This doesn't mean that they start exactly at the same time technically. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:03:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstanceloopcharacteristics-not-executed-concurrently/m-p/178772#M131902</guid>
      <dc:creator>ollib</dc:creator>
      <dc:date>2015-01-07T06:03:42Z</dc:date>
    </item>
  </channel>
</rss>

