Lock External Task
Lock an external task by a given id for a specified worker and amount of time. Note: Attempting to lock an already locked external task with the same worker will succeed and a new lock duration will be set, starting from the current moment.
|The id of the external task.
A JSON object with the following properties:
|The duration to lock the external task for in milliseconds.
|The ID of a worker who is locking the external task.
This method returns no content.
|In case the lock duration is negative or the external task is already locked by
a different worker, an exception of type
returned. See the Introduction
for the error response format.
|Returned if the task does not exist. This could indicate a wrong task id as well as a cancelled task, e.g., due to a caught BPMN boundary event. See the Introduction for the error response format.
Status 204. No content.