cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to assign a constant to a task

pacozf
Champ in-the-making
Champ in-the-making
Hello,

I need to assign a max perform time to every task in a process. The  perform time could be changed by an Admin who adjust it in function of the real spend time. I don't find any way to assign this value in Alfresco bpmn editor and neither in bpmn xml file. ¿Can activiti store values for each task id (ie.  "sid-46D69340-5E24-4956-9DE0-34C2BAEDE677") ?
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
I can't understand very well how do you want to use this value later,

if we're talking only about storing a value for each task then you can just use an "extension element" which could be added to each task when the process is deployed for example. (see 18.2. Hooking into process parsing http://www.activiti.org/userguide/)

pacozf
Champ in-the-making
Champ in-the-making
Thanks Vasile,

i need to have a optimal spend time for each task so the supervisor can compare the real spend time with the optimal time. Finally I have created a auxiliary database table who relate optimal time with bpmn task id.
i.e:
sid-46D69340-5E24-4956-9DE0-34C2BAEDE677   200000 ms
…..

When the task ends I can compare Optimal Time vs  Duration (column duration_ in act_hi_taskinst).

Maybe Hooking is better approach, I will study it.