<?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 VariableScope#getVariables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42057#M22553</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've gone through the implementation of org.activiti.engine.delegate.VariableScope#getVariables and the following question came up: if the same name is used for a variable on different scopes in the scope hierarchy, why does the variable furthest up the tree have precedence? Intuitively, I would have imagined that a more 'local' scope has precedence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code I mean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for (VariableInstanceEntity variableInstance: variableInstances.values()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables.put(variableInstance.getName(), variableInstance.getValue());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VariableScopeImpl parentScope = getParentVariableScope();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (parentScope!=null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return parentScope.collectVariables(variables);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for sharing the thoughts behind this implementation 'strategy'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Etienne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jul 2011 05:27:51 GMT</pubDate>
    <dc:creator>etienne</dc:creator>
    <dc:date>2011-07-10T05:27:51Z</dc:date>
    <item>
      <title>VariableScope#getVariables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42057#M22553</link>
      <description>HiI've gone through the implementation of org.activiti.engine.delegate.VariableScope#getVariables and the following question came up: if the same name is used for a variable on different scopes in the scope hierarchy, why does the variable furthest up the tree have precedence? Intuitively, I would h</description>
      <pubDate>Sun, 10 Jul 2011 05:27:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42057#M22553</guid>
      <dc:creator>etienne</dc:creator>
      <dc:date>2011-07-10T05:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: VariableScope#getVariables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42058#M22554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Etienne,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please use the userforum for questions like this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 10:03:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42058#M22554</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-10T10:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: VariableScope#getVariables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42059#M22555</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;Ok. Will do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and regards, Etienne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 09:08:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variablescope-getvariables/m-p/42059#M22555</guid>
      <dc:creator>etienne</dc:creator>
      <dc:date>2011-07-11T09:08:44Z</dc:date>
    </item>
  </channel>
</rss>

