cancel
Showing results for 
Search instead for 
Did you mean: 

How can i show previous task value in current task?

vamsinipun
Star Contributor
Star Contributor

Hi,

   I am using activiti in spring. i have two tasks in my process. they are usertask1 and usertask2. In usertask1, i have some fields. In usertask2, i need to display those values but one filed value in editable manner. How can i show previous task value in current task? and the value change is maintained in history or not?

1 REPLY 1

kalpesh_c2
Star Collaborator
Star Collaborator

Hi,Vamsi Krishna

You can set your variable of workflow instance like this in task listeners:

execution.setVariable('variable_name', task.getVariable('current_var_name'));

and then this to get the property into the task:
var variable_name = execution.getVariable('variable_name');

and set this variable_name value to your editable property in create event task listener.

Thanks,
Kalpesh,
ContCentric