<?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 getting null value for variable from Delegate Execution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114569#M80718</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;In the activiti workflow,I have one sub process. This sub process has a service task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Service task has a java class as a delegate and it implements JavaDelegate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I do execution.getVariable("myvariable"), It returns null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here when I debug the execution,it displays like concurrentExecution[1234].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable is set out of the sub process and outer classes have scopeExecution[1234] as DelegateExecution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help to understand the difference between two ,i.e Concurrent Execution and Scope Execution ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also any pointer to resolve this issue would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maulee.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 12:01:15 GMT</pubDate>
    <dc:creator>maulee17</dc:creator>
    <dc:date>2012-07-31T12:01:15Z</dc:date>
    <item>
      <title>getting null value for variable from Delegate Execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114569#M80718</link>
      <description>Hi,In the activiti workflow,I have one sub process. This sub process has a service task. Service task has a java class as a delegate and it implements JavaDelegate.when I do execution.getVariable("myvariable"), It returns null. Here when I debug the execution,it displays like concurrentExecution[123</description>
      <pubDate>Tue, 31 Jul 2012 12:01:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114569#M80718</guid>
      <dc:creator>maulee17</dc:creator>
      <dc:date>2012-07-31T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: getting null value for variable from Delegate Execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114570#M80719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The scope-execution for a sub-process is created, having as parent, the execution that created the subprocess. in your case, this is a ConcurrentExecution. A concurrentExecution is used when, e.g. a parallel gateway created 2 separate paths of execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In normal cases, if a variable is not present on the child-execution, it asks it's parent-execution if the variable is available, and so on until the root of the execution-tree has been reached. However, when dealing with call-activities, the parent execution (which created the child-execution) isn't exposed. use the activiti:in and 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 declarations for this (to get variables in and out of subprocess-scope), see user guide.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 12:08:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114570#M80719</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-31T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting null value for variable from Delegate Execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114571#M80720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks frederikheremans for quick explanation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am using an embedded sub process. In this case both the process context are shared. right ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also If I am not wrong activiti:in and 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 I can use with call activity only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-for-variable-from-delegate-execution/m-p/114571#M80720</guid>
      <dc:creator>maulee17</dc:creator>
      <dc:date>2012-07-31T13:39:52Z</dc:date>
    </item>
  </channel>
</rss>

