<?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: Global variable accessed by beanshell or/and javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264051#M217181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried also defining the controller and variable mapping but I can't load definition after I add those tags into process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem with second approach (aspects) is that I start workflow from javascript. Can I somehow get start-task in javascript and set the aspect property there?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 14:53:18 GMT</pubDate>
    <dc:creator>matjazmuhic</dc:creator>
    <dc:date>2010-12-01T14:53:18Z</dc:date>
    <item>
      <title>Global variable accessed by beanshell or/and javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264049#M217179</link>
      <description>I wanna have a global scoped variable that all tasks can access either inside javascript or beanshell script. I have this code and I get null for requiredApprovePercent variable&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tart task with defined variable: requiredApprovePercent&amp;lt;start-state name="start"&amp;gt;&amp;nbsp; &amp;lt;task name="agfo:submitForRev</description>
      <pubDate>Wed, 01 Dec 2010 07:54:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264049#M217179</guid>
      <dc:creator>matjazmuhic</dc:creator>
      <dc:date>2010-12-01T07:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable accessed by beanshell or/and javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264050#M217180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to read the JBPM documentation with respect to the mapping between "process variables" and "task variables".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In alfresco we tend to define an aspect that contains all the "global variables", look at the existing workflows for examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 10:08:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264050#M217180</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-12-01T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable accessed by beanshell or/and javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264051#M217181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried also defining the controller and variable mapping but I can't load definition after I add those tags into process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem with second approach (aspects) is that I start workflow from javascript. Can I somehow get start-task in javascript and set the aspect property there?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 14:53:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264051#M217181</guid>
      <dc:creator>matjazmuhic</dc:creator>
      <dc:date>2010-12-01T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable accessed by beanshell or/and javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264052#M217182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;MRogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you elaborate on aspects and "Global Variables".&amp;nbsp;&amp;nbsp; My understanding of global variables is that there is one copy of the value that can be accessed at any scope.&amp;nbsp;&amp;nbsp; An aspect is a definition that is applied to a type.&amp;nbsp; When applied each type gets its own copy so an aspect is NOT global.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at workflowmodel.xml which has the aspect applied to two different types.&amp;nbsp; Can you provide a code example of how to create and acess global variables?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2011 17:23:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/global-variable-accessed-by-beanshell-or-and-javascript/m-p/264052#M217182</guid>
      <dc:creator>cfox</dc:creator>
      <dc:date>2011-05-08T17:23:45Z</dc:date>
    </item>
  </channel>
</rss>

