<?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 How to access execution variables from subprocess in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152048#M106729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a few variables set on the DelegateExecution and I would like to be able to read them from my subprocesses which are invoked through a call activity on the main process. How do I ideally set up the call activity and subprocess to allow me to use calls such execution.getVariable("foobar") and execution.setVariable("foobar", foobar)? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 01:57:38 GMT</pubDate>
    <dc:creator>hiravgandhi</dc:creator>
    <dc:date>2013-12-12T01:57:38Z</dc:date>
    <item>
      <title>How to access execution variables from subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152048#M106729</link>
      <description>I have a few variables set on the DelegateExecution and I would like to be able to read them from my subprocesses which are invoked through a call activity on the main process. How do I ideally set up the call activity and subprocess to allow me to use calls such execution.getVariable("foobar") and</description>
      <pubDate>Thu, 12 Dec 2013 01:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152048#M106729</guid>
      <dc:creator>hiravgandhi</dc:creator>
      <dc:date>2013-12-12T01:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to access execution variables from subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152049#M106730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to define which variables you want to "receive" from the parent-process to use in the sub-process. And if you want to have variables from the sub-process flushed to the parent when the subprocess ends, you'll have to declare them as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See userguide for the exact format: &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnCallActivity" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnCallActivity&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;callActivity id="callSubProcess" calledElement="checkCreditProcess" &amp;gt;&lt;BR /&gt;&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;lt;activiti:in source="someVariableInMainProcess" target="nameOfVariableInSubProcess" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:smileysurprised:ut source="someVariableInSubProcss" target="nameOfVariableInMainProcess" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/callActivity&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 07:38:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152049#M106730</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-12T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to access execution variables from subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152050#M106731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am a little confused. What is the scope of these variables being passed? For example, if I want to pass certain variables that are on the execution variable, do I pass execution as a whole (target="execution"), is there some special syntax to just pass certain variables that live in execution (target="${execution.getVariables('foobar')}") or is it assumed that the variable I am passing lives in execution? (target="foobar")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 18:22:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152050#M106731</guid>
      <dc:creator>hiravgandhi</dc:creator>
      <dc:date>2013-12-12T18:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to access execution variables from subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152051#M106732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using activiti:in, it's assumed that the variable with the name defined in source lives on the execution that creates the call-activity OR in a parent of that execution (goos all the way up to the process-instance). The value you put in "target" is the name of a variable that will be created in the sub-process when it's started, based on the source variable-value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using activiti&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;ut, the source contains a variable name that is present in the sub-process root-execution. The value in "target" is the name of the variable that will be set on the execution that created the sub-process in the first place, based on the value of the source-variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that make sense? So the "source" and "target" except a variable name, not an expression. If you want to have a custom "source", which is not just a variable, you should use "sourceExpression":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:in sourceExpression="${myBean.calculateDistanceTo(destinationAdress)}" target="distance" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use the code above, the sub-process will be started with a single variable set, called "distance". The value of the variable contains the result of the calculateDistanceTo on the "myBean", passing in the process-variable "destinationAdress" to the function-call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 08:05:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152051#M106732</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-13T08:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access execution variables from subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152052#M106733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the documentation, and as it is written in this thread, I need to configure the callActivity task with the variables I want to transfer to the subProcess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what should I do if I want to provide all the variables declared in the parent to the subProcess and if I don't know in advance which these variables will be ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 14:58:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152052#M106733</guid>
      <dc:creator>guillaume1</dc:creator>
      <dc:date>2014-05-15T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access execution variables from subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152053#M106734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;duplicate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 20:51:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-execution-variables-from-subprocess/m-p/152053#M106734</guid>
      <dc:creator>takt</dc:creator>
      <dc:date>2014-07-24T20:51:40Z</dc:date>
    </item>
  </channel>
</rss>

