lock
POST/external-task/:id/lock
Lock an external task by a given id for a specified worker and amount of time.
Request
Responses
- 204
- 400
- 404
Request successful.
In case the lock duration is negative or the external task is already locked by
a different worker, an exception of type InvalidRequestException is 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.