cancel
Showing results for 
Search instead for 
Did you mean: 

REST URI FOR ADDING COMMENTS WITH PROCESS INSTANCE ID

sai576
Champ on-the-rise
Champ on-the-rise
REST API for adding comments to task with processInstanceId .In api we are using

taskService.addComment(String taskId,String processInstanceId,String message)

but in REST API how to give the comments like above method.

in userguide   "runtime/tasks/{taskId}/comments" is only available.
6 REPLIES 6

sai576
Champ on-the-rise
Champ on-the-rise
Hi,
And one more thing i want to display in the response all fields in comments  table,how to i do this one, present we are displaying in the response id,url,author,message.While adding comment how to i specify the userid through rest uri ?

Thanks&Regards
Sai Kumar

frederikherema1
Star Contributor
Star Contributor
The userId is automatically picked up based on the authenticated user, calling the REST-api. Process-instance comments are currently not exposed through the REST-API I'm afraid.

sai576
Champ on-the-rise
Champ on-the-rise
Is possible to add feature in next release submit the comments through taskId with  processInstanceId also like
taskService.addComment(String taskId,String processInstanceId,String message) in rest api.Because while tracking comments entire processInstance level it will be helpful.

Thanks&Regards
Sai Kumar

barula
Champ in-the-making
Champ in-the-making
Hi Frederik, first of all, I'd like to thank you for the predisposition to help all of us.
I agree with Sai, As long as the involved users sees the path of execution of a process instance, it would be great to show them all the comments the colleagues added through the course of the process.
The question remains… is there any workaround to this within the current release?

Regards,

Barula

frederikherema1
Star Contributor
Star Contributor
The process-comments are not available through rest currently, can you create an issue for this, so I can take this on?

sai576
Champ on-the-rise
Champ on-the-rise
Hi,

I created jira here http://jira.codehaus.org/browse/ACT-1817

Thanks
Sai Kumar R