<?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: Call activity (but not a subprocess) multiple times in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114764#M80887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has indeed been fixed: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1156" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1156&lt;/A&gt;&lt;SPAN&gt;, so it will be in 5.10 &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 07:07:30 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-08-03T07:07:30Z</dc:date>
    <item>
      <title>Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114756#M80879</link>
      <description>I have the following activiti flows:mainflowdefault-processprocess-type-aprocess-type-b'mainflow' will call 'default-process' twice (using Call Activiti, not subprocess). Once with an input param 'type-a' and once with the param 'type-b'The default-process will execute a few steps, and then call ano</description>
      <pubDate>Tue, 05 Jun 2012 13:09:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114756#M80879</guid>
      <dc:creator>lars1</dc:creator>
      <dc:date>2012-06-05T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114757#M80880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would need to see some process XML to better understand what you're doing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:03:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114757#M80880</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-06T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114758#M80881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;oké, I'll try to explain it a little better with some xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a main process. This process will call the "subProcessBase" twice (in parallel), but with a different parameter value for the var processKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The subProcessBase will call another subProcess (typeA or typeB) based on the value of processKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test these processes, the process typeA will be called twice, typeB will not be called at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="mainProcess"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;callActivity id="callSubProcessTypeA"&amp;nbsp; calledElement="subProcessBase"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;activiti:in sourceExpression="typeA" target="processKey"&amp;gt;&amp;lt;/activiti:in&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/callActivity&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;callActivity id="callSubProcessTypeB"&amp;nbsp; calledElement="subProcessBase"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;activiti:in sourceExpression="typeB" target="processKey"&amp;gt;&amp;lt;/activiti:in&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/callActivity&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="subProcessBase"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;callActivity id="callSubProcess"&amp;nbsp; calledElement="${processKey}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/callActivity&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="typeA"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="typeB"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 07:54:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114758#M80881</guid>
      <dc:creator>lars1</dc:creator>
      <dc:date>2012-06-07T07:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114759#M80882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That should indeed just work … so I'm smelling a bug there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you pour it into a unit test so I can verify it at my side?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:32:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114759#M80882</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-07T08:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114760#M80883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I made a small testcase demonstrating this. Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See attachment&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 08:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114760#M80883</guid>
      <dc:creator>lars1</dc:creator>
      <dc:date>2012-06-08T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114761#M80884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any news on this issue? I don't know if this has been submitted as a bug, but I think this is a real issue so it would be a shame to just ignore this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 13:20:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114761#M80884</guid>
      <dc:creator>lars1</dc:creator>
      <dc:date>2012-07-19T13:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114762#M80885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any update on this? I have the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the process once everything seems alright. But if I run it multiple times, the following executions calls the sub activity with the value of the variable from the first execution. I have logged the variable just before the CallActivity element, and it contains the correct value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe will there a bugfix in 5.10?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 14:34:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114762#M80885</guid>
      <dc:creator>urgelacko</dc:creator>
      <dc:date>2012-08-02T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114763#M80886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any update on this? I have the same issue.&lt;BR /&gt;&lt;BR /&gt;When I run the process once everything seems alright. But if I run it multiple times, the following executions calls the sub activity with the value of the variable from the first execution. I have logged the variable just before the CallActivity element, and it contains the correct value.&lt;BR /&gt;&lt;BR /&gt;Maybe will there a bugfix in 5.10?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have debugged into the CallActivityBehavior class, and I found that the following statement generates the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;if ((processDefinitonKey == null) &amp;amp;&amp;amp; (processDefinitionExpression != null)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processDefinitonKey = (String) processDefinitionExpression.getValue(execution);&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;After the first run, the processDefinitonKey is not null, so it wouldn't reevaluate the processDefinitionExpression. I have thought the CallActivityBehavior should be constructed in every new processInstance scope. Otherwise it should be stateless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I wrong somewhere? If yes, what should I do different?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 14:43:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114763#M80886</guid>
      <dc:creator>urgelacko</dc:creator>
      <dc:date>2012-08-02T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114764#M80887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has indeed been fixed: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1156" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1156&lt;/A&gt;&lt;SPAN&gt;, so it will be in 5.10 &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 07:07:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114764#M80887</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-08-03T07:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Call activity (but not a subprocess) multiple times</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114765#M80888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This has indeed been fixed: &lt;A href="http://jira.codehaus.org/browse/ACT-1156" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1156&lt;/A&gt;, so it will be in 5.10 &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Great news! Big thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep up the good work &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 08:30:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-activity-but-not-a-subprocess-multiple-times/m-p/114765#M80888</guid>
      <dc:creator>urgelacko</dc:creator>
      <dc:date>2012-08-06T08:30:11Z</dc:date>
    </item>
  </channel>
</rss>

