<?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: Multi-instance doesn't work in callActivity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30723#M15792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have the same problem, does anybody have an idea XD. Thx… :cry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried this in the subprocess:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${items[loopCounter] == "1"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'loopCounter'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 16:47:56 GMT</pubDate>
    <dc:creator>jaiwo99</dc:creator>
    <dc:date>2012-02-20T16:47:56Z</dc:date>
    <item>
      <title>Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30715#M15784</link>
      <description>Hi,In the document of 5.3, it has been said that Multi-instance works with callactivity. The following simple test scenario can invoke callactivity multiple times, but it seems like the result of the sub process couldn't write back to the main process as follows:</description>
      <pubDate>Fri, 18 Mar 2011 13:46:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30715#M15784</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2011-03-18T13:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30716#M15785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ryu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'does&amp;nbsp; not work' is kind of unclear… a test can fail for all kinds of reasons. So instead of just pasting a small bpmn snippet, it would be better if you have a real full testcase, bpmn, java unit test etc… e.g. in the form of a maven project&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 14:01:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30716#M15785</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-18T14:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30717#M15786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ronald,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my bad. I have a very simple test as follows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The process takes a list as variable: &lt;/SPAN&gt;&lt;STRONG&gt;nameList&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;List&amp;lt;String&amp;gt; nameList = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;&amp;nbsp; nameList.add("kermit");&lt;BR /&gt;&amp;nbsp; nameList.add("frozzy");&lt;/CODE&gt;&lt;SPAN&gt;2. For each elements in the &lt;/SPAN&gt;&lt;EM&gt;nameList&lt;/EM&gt;&lt;SPAN&gt;, the main process calls a subprocess as belows&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callActivity id="callactivity2" name="Call activity" calledElement="loopCallActivitiesSub"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="true" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activiti:collection="nameList" activiti:elementVariable="thisName"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:in source="thisName" target="name" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:smileysurprised:ut source="name" target="name" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/callActivity&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;3. subprocess has a scriptTask to modify the input &lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;SPAN&gt; and write back to the main process&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;name = "hello_" + name;&lt;/CODE&gt;&lt;SPAN&gt;ERROR:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Without &lt;/SPAN&gt;&lt;EM&gt;multiInstanceLoopCharacteristics&lt;/EM&gt;&lt;SPAN&gt;, process returns an expected result: the "&lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;SPAN&gt;" variable was modified by the sub process (callActivity works normally as always)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. With &lt;/SPAN&gt;&lt;EM&gt;multiInstanceLoopCharacteristics&lt;/EM&gt;&lt;SPAN&gt;: returns&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.ActivitiException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'extensionElements'. No child element is expected at this point. | diagrams/loopCallActivities.bpmn20.xml | line 10 | column 23&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;so I move the element &lt;/SPAN&gt;&lt;STRONG&gt;extensionElements&lt;/STRONG&gt;&lt;SPAN&gt; up above the element &lt;/SPAN&gt;&lt;STRONG&gt;multiInstanceLoopCharacteristics&lt;/STRONG&gt;&lt;SPAN&gt; (but still within &lt;/SPAN&gt;&lt;EM&gt;callActivity&lt;/EM&gt;&lt;SPAN&gt;), then the "&lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;SPAN&gt;" variable wasn't modified by the sub process. I expected: &lt;/SPAN&gt;&lt;STRONG&gt;"hello_frozzy"&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 14:45:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30717#M15786</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2011-03-18T14:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30718#M15787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when I debugg, the &lt;/SPAN&gt;&lt;EM&gt;callActivity&lt;/EM&gt;&lt;SPAN&gt; has been called and its scriptTask is executed for 3 times. But its output &lt;/SPAN&gt;&lt;STRONG&gt;never writes back&lt;/STRONG&gt;&lt;SPAN&gt; to the main process variable "&lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 15:41:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30718#M15787</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2011-03-18T15:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30719#M15788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And of course, when there are multi subprocess, there are multi outputs back to the main process. Please clarify how Activiti will handle such situation so that output results from sub processes don't overwritten each other.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 09:51:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30719#M15788</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2011-03-21T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30720#M15789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;And of course, when there are multi subprocess, there are multi outputs back to the main process. Please clarify how Activiti will handle such situation so that output results from sub processes don't overwritten each other.&lt;BR /&gt;Please help!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Using different variable names is the only thing I can think of for now&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 16:29:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30720#M15789</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-21T16:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30721#M15790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at your process, the output variable name for the call activity is always the same, so your result is logical.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Ronald suggests, using another variables for each of the instances would solve it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 17:10:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30721#M15790</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-21T17:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30722#M15791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, I tried every way to write the output of each subprocess in different variables of the main process. The question is how. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;activiti:smileysurprised:ut source="thisName" target="name[loopCounter]" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;activiti:smileysurprised:ut source="thisName" target="${name[loopCounter]}" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;SPAN&gt; is a String array and &lt;/SPAN&gt;&lt;EM&gt;loopCounter&lt;/EM&gt;&lt;SPAN&gt; indicates the "index in the for-each loop of that particular instance" (described in the document)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Result: the &lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;SPAN&gt; array prints null&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 10:21:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30722#M15791</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2011-03-22T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30723#M15792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have the same problem, does anybody have an idea XD. Thx… :cry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried this in the subprocess:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${items[loopCounter] == "1"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'loopCounter'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 16:47:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30723#M15792</guid>
      <dc:creator>jaiwo99</dc:creator>
      <dc:date>2012-02-20T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance doesn't work in callActivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30724#M15793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it's a multiInstance-callActivity all output parameters will be ignored. Only the class CallActivityBehavior has a routine that handles defined output parameters. The Parallel- and SequentialMultiInstanceBehavior ignore them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it is not possible to process several objects within a callActivity and "overwrite" the output parameter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 09:18:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-doesn-t-work-in-callactivity/m-p/30724#M15793</guid>
      <dc:creator>bzeuner</dc:creator>
      <dc:date>2013-09-04T09:18:51Z</dc:date>
    </item>
  </channel>
</rss>

