AnsweredAssumed Answered

Form Property Value

Question asked by lambav on Apr 15, 2014
Latest reply on Apr 22, 2014 by jbarrez
Hi ,
I have few issues.
1.  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.
<activiti:formProperty id="state" name="State" type="string" default="PENDING" variable="state" writable="false"></activiti:formProperty>
but if I use this property again in next user task
<activiti:formProperty id="state" name="State" type="string" value="COMPLETED" variable="state" writable="false"></activiti:formProperty>
it does not change

2. I need a task in which I do not need a user input at all and just want to change the state. that I was changing in user task. I tried a script task and that is also not setting the state property to me.
<scriptTask id="scripttask1" name="Terminated" activiti:autoStoreVariables="false">
          execution.setVariable("state", "TERMINATED")

Would be great help if get a quick response.