Acquire external worker jobs
POST {{baseUrl}}/external-jobs
Acquire external worker jobs for a specific topic with a particular worker id. The number of jobs to be acquired can be specified in the request along with the lock duration and number of possible retries.
Request Body
{"lockDuration"=>"PT10M", "topic"=>"Upload Invoice", "workerId"=>"orderWorker-1", "numberOfTasks"=>1, "numberOfRetries"=>10}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"links":{"empty":true},"content":[{"id":"056f6c05-65b3-4d49-a55b-61b323a2ebe6","variables":[{"name":"SampleVariableName","value":{},"type":"string"},{"name":"SampleVariableName","value":{},"type":"string"}],"processDefinitionId":"SampleDeployment:1:976626f9-3391-11ea-b509-eeee0affefe7","processInstanceId":"1e09e53c-cf6a-11eb-ab94-50e08558ee22","executionId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","elementName":"Order Execution","retries":3,"elementId":"d91e60a2-1fed-4c84-96a2-1ff117fbe2dd","createTime":"2020-05-04T16:35:10.474Z","tenantId":"827afd64-9915-4e16-ad6f-8dfb604deebe","subscriptionId":"827afd64-9915-4e16-ad6f-8dfb604deebe","dueDate":"2021-05-04T16:35:10.474Z","correlationId":"0077ec6b-19d7-498f-9eda-97a29f82ffab","lockExpirationTime":"2020-05-04T16:35:10.474Z","lockOwner":"orderWorker-1","exceptionMessage":"null","topic":"Upload Invoice","links":{"empty":false}},{"id":"056f6c05-65b3-4d49-a55b-61b323a2ebe6","variables":[{"name":"SampleVariableName","value":{},"type":"string"},{"name":"SampleVariableName","value":{},"type":"string"}],"processDefinitionId":"SampleDeployment:1:976626f9-3391-11ea-b509-eeee0affefe7","processInstanceId":"1e09e53c-cf6a-11eb-ab94-50e08558ee22","executionId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","elementName":"Order Execution","retries":3,"elementId":"d91e60a2-1fed-4c84-96a2-1ff117fbe2dd","createTime":"2020-05-04T16:35:10.474Z","tenantId":"827afd64-9915-4e16-ad6f-8dfb604deebe","subscriptionId":"827afd64-9915-4e16-ad6f-8dfb604deebe","dueDate":"2021-05-04T16:35:10.474Z","correlationId":"0077ec6b-19d7-498f-9eda-97a29f82ffab","lockExpirationTime":"2020-05-04T16:35:10.474Z","lockOwner":"orderWorker-1","exceptionMessage":"null","topic":"Upload Invoice","links":{"empty":true}}]}