cancel
Showing results for 
Search instead for 
Did you mean: 

Store variables in each task

afaraz
Champ in-the-making
Champ in-the-making
I have a process which has several tasks. In each task i want to store Comments/Remarks provided by the user, Reason (Some Predefined Values (Combo)) and Action selected by the user.

I already have a user interface developed for the this. I want to pass these three values to be passes to the Activiti. I want these variables to be a part of history. so that i can retrieve these value later and show them in some History UI.

Please can you guys share some good approaches to do that.

Regards,
Faraz
5 REPLIES 5

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
use the api to store the values and set history to full to be able to retrieve them afterwards

afaraz
Champ in-the-making
Champ in-the-making
use the api to store the values and set history to full to be able to retrieve them afterwards

but How can i use the APi to store value ? Can you point me to some link please ?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
almost ALL the examples and things mentioned in the normal docs do this. So please look at them first

afaraz
Champ in-the-making
Champ in-the-making
almost ALL the examples and things mentioned in the normal docs do this. So please look at them first

Will this statement do that ?

taskService.setVariableLocal(taskId , variableName, variableValue);

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
why don't you give it a try? It's not like the world is going to blow up if it fails (even not if it works)