<?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 resolve variables outside process context in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117148#M82698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am implementing a "Global Variable" which could be outside the process context and it is not like the process level "global variable" as mentioned in Activiti. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I created a resolver api (based on this post &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=268&amp;amp;view=previous" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=268&amp;amp;view=previous&lt;/A&gt;&lt;SPAN&gt;), just to resolve the global variables passed through contexts other than "process context", ex. from a UI context. But from bpmn file perspective, I don't see any difference for the resolver to resolve when parsing the global variables vs the local variables? since they are already inside the bpmn file, so they are under the process context, correct? If not, please explain. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. if they have difference, how can i identify with the resolver (or please suggestions), this variable is global, not local? I am using some naming convention with a prefix "global_"? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. after i identify that it is a global variable, i was suggested by a coworker, i need to create an interceptor in package org.activiti.engine.impl.persistence.entity.VariableScopeImpl, to check if the variable is global variable, call GlobalVariableResolver in getVariable(), otherwise, no interruption to the method - default to local variable resolver? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank for your help in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2012 04:12:24 GMT</pubDate>
    <dc:creator>newbbie</dc:creator>
    <dc:date>2012-08-02T04:12:24Z</dc:date>
    <item>
      <title>How to resolve variables outside process context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117148#M82698</link>
      <description>I am implementing a "Global Variable" which could be outside the process context and it is not like the process level "global variable" as mentioned in Activiti. 1. I created a resolver api (based on this post http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=268&amp;amp;view=previous), just to reso</description>
      <pubDate>Thu, 02 Aug 2012 04:12:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117148#M82698</guid>
      <dc:creator>newbbie</dc:creator>
      <dc:date>2012-08-02T04:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve variables outside process context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117149#M82699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No need to fiddle around with the Variable-scope. Instead, create a custom ExpressionManager (extending the default one) which adds a new ELResolver to the chain. The ELResolver should "kick in" when the "key" of the property starts with "global_".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4291&amp;amp;p=16719&amp;amp;hilit=expressionManager#p16719" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4291&amp;amp;p=16719&amp;amp;hilit=expressionManager#p16719&lt;/A&gt;&lt;SPAN&gt; for details&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 06:32:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117149#M82699</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-08-02T06:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve variables outside process context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117150#M82700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom resolver, which is backed up by a map. The information of this map comes from some persistent source, ex. a database/registry, does it mean, it is the resolver's responsibility to fetch the data from the database, or the custom expression manager? what is the common way to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2nd question: how to test the following case: "passing a JPA object as an input parameter to a java service task"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newbbie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 18:11:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117150#M82700</guid>
      <dc:creator>newbbie</dc:creator>
      <dc:date>2012-08-05T18:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve variables outside process context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117151#M82701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi newbie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Why don't you look at the Activiti sources and see how it's done there? E.g. look at the classes VariableScopeResolver and VariableScopeResolverFactory. You should see that it's the Resolver's responsibility if I'm not mistaken…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) What exactly do you mean? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 09:50:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117151#M82701</guid>
      <dc:creator>naag</dc:creator>
      <dc:date>2012-08-09T09:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve variables outside process context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117152#M82702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Peter. You are right about the first question. For the second question, I found some tests in the repository, which helped out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newbbie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 22:37:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resolve-variables-outside-process-context/m-p/117152#M82702</guid>
      <dc:creator>newbbie</dc:creator>
      <dc:date>2012-08-16T22:37:32Z</dc:date>
    </item>
  </channel>
</rss>

