<?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: Instance variables not updating in ScriptTask in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175223#M128353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you please create a unit test showing this issue and create a JIRA for it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That would make it easier for us to reproduce it and fix it when applicable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The deployment won't change the XML contents, are you sure this is a valid issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 12:37:00 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2014-03-12T12:37:00Z</dc:date>
    <item>
      <title>Instance variables not updating in ScriptTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175222#M128352</link>
      <description>(Sorry if this ends up being a double post … the original one never appeared)The simplified attached model has a very simple ScriptTask that tries to update a process variable.The variable value is never updated.Methods tried:1) execution.setVariable. The attached model uses the execution.setVariabl</description>
      <pubDate>Tue, 11 Mar 2014 17:50:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175222#M128352</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-03-11T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Instance variables not updating in ScriptTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175223#M128353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you please create a unit test showing this issue and create a JIRA for it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That would make it easier for us to reproduce it and fix it when applicable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The deployment won't change the XML contents, are you sure this is a valid issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 12:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175223#M128353</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-03-12T12:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Instance variables not updating in ScriptTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175224#M128354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will create a unit test for #1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 is easy for to reproduce:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Through the ActivitiExplorer; import the provided model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Through the ActivitiExplorer; deploy the provided model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) At the deployments screen in the ActivitiExplorer, each model has three links.&amp;nbsp; One for the process definition and 2 resources.&amp;nbsp; For the just-deployed model, export the .XML from the resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Diff the imported model and the exported model.&amp;nbsp; You'll notice that activiti:autoStoreVariables is now "false"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 15:15:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175224#M128354</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-03-12T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Instance variables not updating in ScriptTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175225#M128355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean with import the provided model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you directly deploy the process definition to the Activiti Engine via the Management section?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you first import the model into the model workspace the model is parsed for editing for the Activiti Modeler. The autoStoreVariables attribute is not part of this conversion yet so that's why you see this behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 15:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175225#M128355</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-03-12T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Instance variables not updating in ScriptTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175226#M128356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; What do you mean with import the provided model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From the ActivitiExplorer … Processes/Model Workspace/Import&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; Why don't you directly deploy the process definition to the Activiti Engine via the Management section?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Because I didn't know it was there.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I normally deploy immediately after editing in the Designer and the the "deploy" option is right there on "Model Workspace" so it didn't occur to me to look for another place to import or deploy a model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; The autoStoreVariables attribute is not part of this conversion yet so that's why you see this behaviour&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this something you're recommending I always do, or is the problem strictly with the original model import?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, if I use activiti:autoStoreVariables="true", it sounds like I will need to adopt the following pattern when using the Designer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Export model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Edit file to restore attribute to "true"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Rename model file to remove the version numbers appended by OS (upload is restricted to .bar, .zip, .bpmn and .bpmn20.xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Switch to Manage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Deploy from Deployments/Upload New&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your support,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Lee&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 17:40:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175226#M128356</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-03-12T17:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Instance variables not updating in ScriptTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175227#M128357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jira ticket with test … &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1948" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1948&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 00:26:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/instance-variables-not-updating-in-scripttask/m-p/175227#M128357</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-03-13T00:26:11Z</dc:date>
    </item>
  </channel>
</rss>

