cancel
Showing results for 
Search instead for 
Did you mean: 

How to add comments while creating process?

sherlock
Champ in-the-making
Champ in-the-making
Hi,

I am using activiti-cdi to start the process. I didn't find anyway to add comments to the newly created task.

Help Please….



Regards
Sherlock.
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
On the taskService:

void addComment(String taskId,
              String processInstanceId,
              String message)

But I assume you're looking for something CDI specific?

sherlock
Champ in-the-making
Champ in-the-making
hi jorambarrez,
                            Thanks for the reply.  Yes I'm looking for adding comments while calling startProcessBykey method in BusinessProcess. My situation is while creating the new task i want to add comments to it , but not after the task created.

jbarrez
Star Contributor
Star Contributor
I'm afraid that's not possible out of the box. You could probably do it, but it will require some custom coding (ie extra command, anotation, etc…)