How can i show previous task value in current task?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Established Member

How can i show previous task value in current task?

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
Highlighted
Senior Member

Re: How can i show previous task value in current task?

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