<?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: Form Property Value in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152407#M107058</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;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="scripttask1" name="Terminated" scriptFormat="juel" activiti:resultVariable="status"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;TERMINATED&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this won't work, create jUnit test and attach it to the thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 06:03:38 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2014-04-16T06:03:38Z</dc:date>
    <item>
      <title>Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152404#M107055</link>
      <description>Hi ,I have few issues. 1.&amp;nbsp; I am having a state variable in my workflow which I want to change at every user task without taking input from user.But somehow that is not happening.&amp;lt;activiti:formProperty id="state" name="State" type="string" default="PENDING" variable="state" writable="false"&amp;gt;&amp;lt;</description>
      <pubDate>Tue, 15 Apr 2014 04:13:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152404#M107055</guid>
      <dc:creator>lambav</dc:creator>
      <dc:date>2014-04-15T04:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152405#M107056</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 taken process definition from activiti sources:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;activiti:resultVariable="newProcessVariableName"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;definitions id="definitions"&lt;BR /&gt;&amp;nbsp; xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp; xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp; xmlns:modeler="&lt;A href="http://activiti.com/modeler" rel="nofollow noopener noreferrer"&gt;http://activiti.com/modeler&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp; modeler:version="2.0"&lt;BR /&gt;&amp;nbsp; targetNamespace="Examples"&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;process id="setScriptResultToProcessVariable"&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="theStart" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="theScriptTaskWithExistingProcessVariableName" scriptFormat="juel" activiti:resultVariable="existingProcessVariableName"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;#{echo}&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="theScriptTaskWithNewProcessVariableName" scriptFormat="juel" activiti:resultVariable="newProcessVariableName"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;#{execution.id}&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="theScriptTaskWithNoResultVariable" scriptFormat="juel"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;#{echo}&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="theTask" name="keep-alive task" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="theEnd" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" sourceRef="theStart" targetRef="theScriptTaskWithExistingProcessVariableName" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" sourceRef="theScriptTaskWithExistingProcessVariableName" targetRef="theScriptTaskWithNewProcessVariableName" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="theScriptTaskWithNewProcessVariableName" targetRef="theScriptTaskWithNoResultVariable" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow6" sourceRef="theScriptTaskWithNoResultVariable" targetRef="theTask" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow7" sourceRef="theTask" targetRef="theEnd" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 07:09:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152405#M107056</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-15T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152406#M107057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt; &amp;lt;startEvent id="startevent1" name="Start" activiti:initiator="employeeName"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:formProperty id="state" name="State" type="string" default="PENDING"&amp;gt;&amp;lt;/activiti:formProperty&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;scriptTask id="scripttask1" name="Terminated" scriptFormat="juel" activiti:resultVariable="state"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status="TERMINATED";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("state", status);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to change the state variable value to some other value. But the value of state is not getting changed. I am trying to do it in the same way you mentioned. But state value is same "PENDING".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover I want to change this value in usertask too. But that is also not getting changed. Can you please send me exact snippet. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 07:43:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152406#M107057</guid>
      <dc:creator>lambav</dc:creator>
      <dc:date>2014-04-15T07:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152407#M107058</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;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="scripttask1" name="Terminated" scriptFormat="juel" activiti:resultVariable="status"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;TERMINATED&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this won't work, create jUnit test and attach it to the thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 06:03:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152407#M107058</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-16T06:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152408#M107059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not working. It is just a normal use-case. I have never thought it will be so difficult to update a form variable without taking input from user again. Cant i just update the variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I am not able to update a variable in another user task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I am even not able to update a variable in script task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I put questions and then I need to wait for several hours to get a reply. and then I am not getting the right ans. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 06:39:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152408#M107059</guid>
      <dc:creator>lambav</dc:creator>
      <dc:date>2014-04-17T06:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152409#M107060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I put questions and then I need to wait for several hours to get a reply. and then I am not getting the right ans&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;People on the forum try really hard to answer all question, show some respect please. We're an open-source product and you're paying nothing, don't expect 24/7 instant response. Try reading the user guide first…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use a a script-task, use groovy or javascript as language instead, for richer support (execution.setVariable() will just work). Or, use Java to have compiled service-tasks… &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152409#M107060</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-04-22T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152410#M107061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, If you did not like my comments. I understand that you are busy and I am paying nothing. I have full respect for you guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I spent like 3 days on this issue. and read the user guide ( not complete though) but I did not find any answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got this reply after 5 days. And that reply is again answering to my second question and first question is still not answered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 . I am not able to update a variable in another user task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have one form variable for which I took an input from user. Then in next user task. I just want to update that value with some default value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I am even not able to update a variable in script task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you do something like execution.setVariable()&amp;nbsp; . Updated value of variable is not shown when you go and check it in activiti-explorer my instances. form properties. But When I went to database to check the variable value it is showing me the updated one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So seems to be a bug in activiti-explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my use case was just to update a variable , I tried it through user task and then through script task both.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of frustation, I expected that whatever I will get in reply would be the answer to my question even if it takes 5 days. Sorry for my comments. hope you understand my point too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:21:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152410#M107061</guid>
      <dc:creator>lambav</dc:creator>
      <dc:date>2014-04-22T10:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property Value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152411#M107062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; I got this reply after 5 days. And that reply is again answering to my second question and first question is still not answered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You asked this question in the easter holiday. Practically the whole of US and Europe is having a holiday (including us). As Fred said, as an OSS project we can't give any SLA's on giving responses we do … during time which our employer pays us for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Yes, we understand. The variable should be available, we have unit tests for this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Your script task looks allright. In Explorer, you are probably seeing the audit data (which cannot change, it's audit data).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the variable values should be shown as updated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in general you are trying to update a variable which was submitted as a form value, right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both a task listener / service task with or without scripts work. If not, please prove it with a unit tets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; hope you understand my point too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:58:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-value/m-p/152411#M107062</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-22T10:58:53Z</dc:date>
    </item>
  </channel>
</rss>

