<?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: store a scriptTask variable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120841#M85167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;activiti:formProperty id="variable" expression="#{object.variable}" type="long" /&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the variable you should update is "variable", not "object"…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 13:58:00 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-03-07T13:58:00Z</dc:date>
    <item>
      <title>store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120840#M85166</link>
      <description>Hello I try do define a variable with a value in a scriptTask, then I want to set the variable in a userTask to a object, and then to overwrite the old object with the new variable in an other scriptTask.scriptTask:variable= 123456789UserTask:&amp;lt;activiti:formProperty id="variable"&amp;nbsp;&amp;nbsp;&amp;nbsp;expression="#{o</description>
      <pubDate>Wed, 06 Mar 2013 09:13:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120840#M85166</guid>
      <dc:creator>tomi87</dc:creator>
      <dc:date>2013-03-06T09:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120841#M85167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;activiti:formProperty id="variable" expression="#{object.variable}" type="long" /&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the variable you should update is "variable", not "object"…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 13:58:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120841#M85167</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-07T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120842#M85168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand It like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:formProperty id="variable" expression="#{object.variable}" type="long" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&amp;gt; store the variable "variable" in the Object "object" with the value which is given in the scriptTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script&amp;gt;&amp;lt;![CDATA[execution.setVariable("object", execution.getVariable("object"));]]&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&amp;gt;update the Object "object" with the setted variable "variable".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do I have some wrong thoughts ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause I don't know exactly&amp;nbsp; what do you mean…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, is there a more easy way to set the variable with the scriptTask and upload it to the&amp;nbsp; object ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 04:28:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120842#M85168</guid>
      <dc:creator>tomi87</dc:creator>
      <dc:date>2013-03-08T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120843#M85169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No you've lost me…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:formProperty id="variable" expression="#{object.variable}" type="long" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;The line above will: show a form-proprty of type long. When submitted in, the value filled in will be done using the expression. This will look for a process-variable named "object" and set the "variable" property, effectively calling object.setVariable(longValueFilledIn). This can ONLY WORK if there is already a variable named "object" in the process. If not, you'll get an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&amp;lt;![CDATA[execution.setVariable("object", execution.getVariable("object"));]]&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;The script-task will do nothing useful. If will read the "object" variable and write it again immediately without changing the value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what is your use case actually? Seems to me you're trying to use form-properties on a ScriptTask, which just doesn't work. Form-properties can only be used on UserTasks and StartEvents. All other activities are unaware of form-properties and should just use process-variables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:29:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120843#M85169</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-08T10:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120844#M85170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The variable named "object" is already in this project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use this in my UserTask :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:formProperty id="variable" expression="#{object.variable}" type="long" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my test I test If the variable property for "variable", which i set in my scriptTask (&amp;lt;script&amp;gt;studentIdNumber = 123456788;&amp;lt;/script&amp;gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is stored into the Object "object".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there is an other way to set this variable, without using a userTask with activiti:formProperty. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to initialize the variable "variable" with a value and immediately set it into the "object". Can you suggest me a way ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2013 08:41:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120844#M85170</guid>
      <dc:creator>tomi87</dc:creator>
      <dc:date>2013-03-10T08:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120845#M85171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, you can use our API to start a process, providing the "object" as a variable in runtimeService.startProcessInstanceByXXX(id, variables)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 09:34:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120845#M85171</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-12T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120846#M85172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know what you exactly mean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there maybe a way to set the variable in the object just with a scriptTask?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 06:35:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120846#M85172</guid>
      <dc:creator>tomi87</dc:creator>
      <dc:date>2013-03-13T06:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120847#M85173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure thing… The "execution" object is available in your scripts. You can call "execution.setVariable()" in your script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 11:13:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120847#M85173</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-14T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: store a scriptTask variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120848#M85174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thx I get it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 10:26:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/store-a-scripttask-variable/m-p/120848#M85174</guid>
      <dc:creator>tomi87</dc:creator>
      <dc:date>2013-03-15T10:26:57Z</dc:date>
    </item>
  </channel>
</rss>

