In the REST API, when I move in my workflow from a task to another one thanks to the task action :
POST runtime/tasks/{taskId}
Complete a task - Body JSON:
{ "action" : "complete", "variables" : … }
I would like to retrieve the id of the new task, how can I do please ? At the beginning I thought it was possible with the success response body, but it is with the old id, and not the new one.
Ok, sorry my bad, I've just understood my mistake, or at least in my example, I will retrieve the new task id thanks to the current process instance. Thanks a lot !