<?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: How to multi instance on sub process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96813#M66557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first of all I'm new to BPM, I'm learning! Than sorry if I'm not completely aware of the subject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;First of all, did you read &lt;A href="http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency" rel="nofollow noopener noreferrer"&gt;http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency&lt;/A&gt; ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes I read the FAQ before to write the process; but it seem a bit outdated or I didn't read correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's written "In the future we envision configurations that allow for asynchronous execution of the service methods", what you mean with service methods? are you speaking about tasks in some way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's also written " Asynchronous continuations will be introduced to allow for a more fine grained demarcation of transactions for those situations where it is needed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The User Guide document about this &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#asyncContinuations" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#asyncContinuations&lt;/A&gt;&lt;SPAN&gt;. For this reason I'm thinking Activiti is a step forward the FAQ.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So yes, your subprocesses will be executed sequentially in the engine.&lt;BR /&gt;However, the difference with 'isSequential='true'' is that now all your subprocesses are created at once. In the 'true' case, one subprocess will be created, and when that is finished, the second one will be created.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing a bit the process I obtained something different; I changed the configuration of the first task in the subprocess:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="scripttask2" name="simple printout" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy"&amp;gt; …&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In this way I'm obtaining some kind of concurrency, is this a correct way to obtain concurrency? but seem to be limited in number of thread used (3). Can this value be changed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm obtaining also some exceptions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiOptimisticLockingException: ExecutionEntity[7713] was updated by another transaction concurrently&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Explained here &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4124&amp;amp;p=16187&amp;amp;hilit=ActivitiOptimisticLockingException#p16187" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4124&amp;amp;p=16187&amp;amp;hilit=ActivitiOptimisticLockingException#p16187&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think I can resolve this with the suggestions proposed by ' frederikheremans'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will continue reading forums, to me seem other people are interested in concurrency and the User Guide seem not extensively clear on this. I think you should point the reader to "the BPMN" way to manage concurrency, also using external references.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;n.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 10:54:24 GMT</pubDate>
    <dc:creator>nbuso</dc:creator>
    <dc:date>2012-11-02T10:54:24Z</dc:date>
    <item>
      <title>How to multi instance on sub process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96811#M66555</link>
      <description>Hi,I'm trying to obtain concurrent execution of a subprocess, but the behaviour is not what expected; this is how the subprocess is defined:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;subProcess id="PerDomainSubProcess" name="PerDomainSubProcess" activiti:async="true"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false"</description>
      <pubDate>Wed, 31 Oct 2012 13:08:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96811#M66555</guid>
      <dc:creator>nbuso</dc:creator>
      <dc:date>2012-10-31T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to multi instance on sub process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96812#M66556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, did you read &lt;/SPAN&gt;&lt;A href="http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency" rel="nofollow noopener noreferrer"&gt;http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency&lt;/A&gt;&lt;SPAN&gt; ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So yes, your subprocesses will be executed sequentially in the engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the difference with 'isSequential='true'' is that now all your subprocesses are created at once. In the 'true' case, one subprocess will be created, and when that is finished, the second one will be created.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 08:41:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96812#M66556</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-11-02T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to multi instance on sub process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96813#M66557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first of all I'm new to BPM, I'm learning! Than sorry if I'm not completely aware of the subject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;First of all, did you read &lt;A href="http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency" rel="nofollow noopener noreferrer"&gt;http://activiti.org/faq.html#WhatIsTheDifferenceBetweenProcessConcurrencyAndJavaConcurrency&lt;/A&gt; ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes I read the FAQ before to write the process; but it seem a bit outdated or I didn't read correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's written "In the future we envision configurations that allow for asynchronous execution of the service methods", what you mean with service methods? are you speaking about tasks in some way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's also written " Asynchronous continuations will be introduced to allow for a more fine grained demarcation of transactions for those situations where it is needed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The User Guide document about this &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#asyncContinuations" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#asyncContinuations&lt;/A&gt;&lt;SPAN&gt;. For this reason I'm thinking Activiti is a step forward the FAQ.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So yes, your subprocesses will be executed sequentially in the engine.&lt;BR /&gt;However, the difference with 'isSequential='true'' is that now all your subprocesses are created at once. In the 'true' case, one subprocess will be created, and when that is finished, the second one will be created.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing a bit the process I obtained something different; I changed the configuration of the first task in the subprocess:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="scripttask2" name="simple printout" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy"&amp;gt; …&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In this way I'm obtaining some kind of concurrency, is this a correct way to obtain concurrency? but seem to be limited in number of thread used (3). Can this value be changed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm obtaining also some exceptions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiOptimisticLockingException: ExecutionEntity[7713] was updated by another transaction concurrently&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Explained here &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4124&amp;amp;p=16187&amp;amp;hilit=ActivitiOptimisticLockingException#p16187" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4124&amp;amp;p=16187&amp;amp;hilit=ActivitiOptimisticLockingException#p16187&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think I can resolve this with the suggestions proposed by ' frederikheremans'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will continue reading forums, to me seem other people are interested in concurrency and the User Guide seem not extensively clear on this. I think you should point the reader to "the BPMN" way to manage concurrency, also using external references.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;n.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 10:54:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96813#M66557</guid>
      <dc:creator>nbuso</dc:creator>
      <dc:date>2012-11-02T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to multi instance on sub process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96814#M66558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In this way I'm obtaining some kind of concurrency, is this a correct way to obtain concurrency? but seem to be limited in number of thread used (3). Can this value be changed?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. In some way. Async continuations are also a way of 'designing' your processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must ask yourself before introducing it: do I really need threading? In most cases, we see that people don't really need threading added to their business processes, and having 'business concurrency' is often way more appropriate (that was actually the section I linked to in the FAQ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm obtaining also some exceptions:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, these are expected when you introduce concurrency.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 07:54:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-multi-instance-on-sub-process/m-p/96814#M66558</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-11-05T07:54:59Z</dc:date>
    </item>
  </channel>
</rss>

