addComment when process finishen or not start

hi, i want to add a comment when the process was finished or not start , i try to use the taskService.saveComment(),but found has transaction concurrently, so i don’t know how to resolve it.
thanks

Maybe try adding a variable, maybe a list type, and saving comments to that variable. When the task is updated call the saveComment() method for each comments that you want to persists.

ok… have little idea to resolve this problem