cancel
Showing results for 
Search instead for 
Did you mean: 

Log/History on setAssignee

jotapdiez
Champ in-the-making
Champ in-the-making
Hi All!!

I want to keep a track when a task change from hand. So, when I do
taskService.setAssigne
o
task.setAssigne(..)
and
taskService.save
just change the
ASSIGNEE_
on
ACT_RU_TASK
  and the assignment is lost (from who to who) also the time is lost.

I don't want to build my own tracker when an assigne event is fired. So, If <strong>Activiti</strong> support this, I really appreciate this information.

Thanks in Advance
Regards Juan Pablo From Argentina.
Sorry about my english
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Yes that is supported. See the userguide on task listeners, event 'assignment'

jotapdiez
Champ in-the-making
Champ in-the-making
Thanks for the answer.

So, I have to build my own listener.

I need to have my  own db? Or I can write variables on the assigned task? What is the best way to keep this information for future use just with Activiti API?

Thanks a lot

jbarrez
Star Contributor
Star Contributor
Yes, you ned to implement your own listener (just implement the interface).

You don't need your own db. You can do task.setVariable() and it will be stored as part of the parocess.