<?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: Multiinstance on callactivity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63166#M39578</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;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to clarify:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;callActivity id="callactivity1" name="Call activity" calledElement="CallAct1" &lt;/SPAN&gt;&lt;STRONG style="color: #BF0000;"&gt;activiti:async="true"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;async continuation on call activity level works only if one of the task (should it be the first task?) is receive or user task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to run each instance of call activity sequentially but across instances parallel. In your option 2, if I specify async continuation on the first script task in embedded call-activity, would it do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CallAct1.bpmn20.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="CallAct1" name="CallAct1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask1" name="Service Task X" activiti:class="com.activiti.tasks.XDelegate" &lt;/SPAN&gt;&lt;STRONG style="color: #BF0000;"&gt;async="true"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask2" name="Service Task Y" activiti:class="com.activiti.tasks.YDelegate"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask3" name="Service Task Z" activiti:class="com.activiti.tasks.ZDelegate"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="servicetask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow2" name="" sourceRef="servicetask1" targetRef="servicetask2"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow3" name="" sourceRef="servicetask2" targetRef="servicetask3"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow4" name="" sourceRef="servicetask3" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/definitions&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;By default Activiti executes automatic tasks like a service task and a call activity in the same transaction.&lt;BR /&gt;That's also true when you use a multi instance construct. So even if you set sequential to false, the multi instance in your example will execute sequential.&lt;BR /&gt;There are 2 "solutions" to this. You can add a non-automatic task, like a receive task or a user task. This will cause the transaction to be committed and a new multi instance item will be processed.&lt;BR /&gt;Or you can use the asynchronous continuation functionality that's available in trunk and in a few days in 5.8 on one of the service tasks so that the transaction will be committed and a new multi instance item will be processed.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2011 17:01:05 GMT</pubDate>
    <dc:creator>workflowuser</dc:creator>
    <dc:date>2011-10-19T17:01:05Z</dc:date>
    <item>
      <title>Multiinstance on callactivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63164#M39576</link>
      <description>Hi,I am trying multi-instance on call activiti and am not able to understand the result. Help appreciated:I am using ACT-126 code base.mainwf.bpmn20.xml==============&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.</description>
      <pubDate>Wed, 19 Oct 2011 01:23:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63164#M39576</guid>
      <dc:creator>workflowuser</dc:creator>
      <dc:date>2011-10-19T01:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiinstance on callactivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63165#M39577</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;By default Activiti executes automatic tasks like a service task and a call activity in the same transaction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's also true when you use a multi instance construct. So even if you set sequential to false, the multi instance in your example will execute sequential.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are 2 "solutions" to this. You can add a non-automatic task, like a receive task or a user task. This will cause the transaction to be committed and a new multi instance item will be processed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can use the asynchronous continuation functionality that's available in trunk and in a few days in 5.8 on one of the service tasks so that the transaction will be committed and a new multi instance item will be processed.&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>Wed, 19 Oct 2011 08:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63165#M39577</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-10-19T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiinstance on callactivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63166#M39578</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;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to clarify:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;callActivity id="callactivity1" name="Call activity" calledElement="CallAct1" &lt;/SPAN&gt;&lt;STRONG style="color: #BF0000;"&gt;activiti:async="true"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;async continuation on call activity level works only if one of the task (should it be the first task?) is receive or user task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to run each instance of call activity sequentially but across instances parallel. In your option 2, if I specify async continuation on the first script task in embedded call-activity, would it do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CallAct1.bpmn20.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="CallAct1" name="CallAct1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask1" name="Service Task X" activiti:class="com.activiti.tasks.XDelegate" &lt;/SPAN&gt;&lt;STRONG style="color: #BF0000;"&gt;async="true"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask2" name="Service Task Y" activiti:class="com.activiti.tasks.YDelegate"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask3" name="Service Task Z" activiti:class="com.activiti.tasks.ZDelegate"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="servicetask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow2" name="" sourceRef="servicetask1" targetRef="servicetask2"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow3" name="" sourceRef="servicetask2" targetRef="servicetask3"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow4" name="" sourceRef="servicetask3" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/definitions&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;By default Activiti executes automatic tasks like a service task and a call activity in the same transaction.&lt;BR /&gt;That's also true when you use a multi instance construct. So even if you set sequential to false, the multi instance in your example will execute sequential.&lt;BR /&gt;There are 2 "solutions" to this. You can add a non-automatic task, like a receive task or a user task. This will cause the transaction to be committed and a new multi instance item will be processed.&lt;BR /&gt;Or you can use the asynchronous continuation functionality that's available in trunk and in a few days in 5.8 on one of the service tasks so that the transaction will be committed and a new multi instance item will be processed.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 17:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63166#M39578</guid>
      <dc:creator>workflowuser</dc:creator>
      <dc:date>2011-10-19T17:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiinstance on callactivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63167#M39579</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 have the very same need. Did you solve by your own the issue? If yes, could you please say how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 14:16:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63167#M39579</guid>
      <dc:creator>malulish</dc:creator>
      <dc:date>2011-11-25T14:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiinstance on callactivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63168#M39580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am currently using the following workaround in cases where a process uses multiinstance callactivity or sub-process in the main process and need to get hold of all the results from the called processes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;1) Encapsulate all input parameters to your callactivity or subprocess in a Java POJO. Have two additional fields: resultKeyVariable (String) and callerExecutionId (String) in the POJO. &lt;BR /&gt;resultKeyVariable field will contain a "key" unique to each execution of callactivity called in loop. &lt;BR /&gt;activiti:collection will be set to a list of such POJOs lets call it "myInputCollection". &lt;BR /&gt;So each elementVariable is this POJO instance, lets call it eachInput.&lt;BR /&gt;activity:in="eachInput"&lt;BR /&gt;&lt;BR /&gt;Elsewhere in code before you call multiinstance activity:&lt;BR /&gt;&lt;CODE&gt;ArrayList&amp;lt;EachInputClass&amp;gt; myInputCollection = new ArrayList&amp;lt;EachInputClass&amp;gt;()&lt;BR /&gt;&lt;BR /&gt;EachInputClass eachInput1 = new EachInput();&lt;BR /&gt;eachInput1.email = "jb@mymail.com";&lt;BR /&gt;eachInput1.username = "jimbarnes";&lt;BR /&gt;eachInput1.resultKeyVariable = "emailsendresult_jbatmymaildotcom_jimbarnes";&lt;BR /&gt;eachInput.callerExecutionId = execution.getId();&lt;BR /&gt;//next one&lt;BR /&gt;EachInputClass eachInput2 = new EachInput();&lt;BR /&gt;eachInput2.username = "raghuraman@mymail.com";&lt;BR /&gt;eachInput2.username = "ragu";&lt;BR /&gt;eacchInput2.resultKeyVariable = "emailsendresult_raghuramanatmymaildotcom_ragu";&lt;BR /&gt;&lt;BR /&gt;execution.setVariable("myInputCollection",myInputCollection);&lt;/CODE&gt;&lt;BR /&gt;finally, in the bpmn xml:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:in source="eachInput" target="eachInput"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="myInputCollection" activiti:elementVariable="eachInput"/&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) In the sub process or called activity, retrieve the input POJO which we will call "eachInput" , finish your logic and then finally, before the end event, insert an additional JavaDelegate, which does the following&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Object myresult == ..//my results&lt;BR /&gt;String resultKeyVariable = (String) eachInput.resultKeyVariable;&lt;BR /&gt;String callerExecutionId = (String) eachInput.callerExecutionId;&lt;BR /&gt;runtimeService.setVariable(callerExecutionId, resultKeyVariable,myresult);&lt;/CODE&gt;&lt;BR /&gt;3) In the calling process after all the callactivities are done, retrieve the results thus:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;for(Object each: myInputCollection)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Object myresult = (Object)&amp;nbsp;&amp;nbsp; execution.getVariable(each.resultKeyVariable);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;}&lt;/CODE&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 23:01:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-on-callactivity/m-p/63168#M39580</guid>
      <dc:creator>araghuraman</dc:creator>
      <dc:date>2013-02-05T23:01:38Z</dc:date>
    </item>
  </channel>
</rss>

