cancel
Showing results for 
Search instead for 
Did you mean: 

REST Response upon completion of task

mhanrahan
Confirmed Champ
Confirmed Champ
In the 5.14 User Guide, the section titled "Task Actions" in the REST API section, says that the response for an action is the same as for the GET action (Success response body: see response for runtime/tasks/{taskId}. )

When I run a "complete" action on a task, I get a response with no content in it.  Is this intended behavior, as the task no longer belongs to the "runtime" or is this an issue?  The user guide isn't clear on this.
1 REPLY 1

tstephen
Champ on-the-rise
Champ on-the-rise
In common with all REST actions you need to check the status code in the response as well as any payload. If you got 200 then the server is saying your request is successful, no body is needed or expected. So as long as you request was indeed to complete then all is well. Just remember that the same service allows several other task actions as well as complete (as described at http://activiti.org/userguide/index.html#N1444D).

Tim