Acquire External Worker Jobs
Swagger UIyaml/external-job-api/ acquire/ jobsRequest body application/json · AcquireExternalWorkerJobRequest
topicstringrequiredAcquire jobs with the given topic
Example: order
lockDurationstringrequiredThe acquired jobs will be locked with this lock duration. ISO-8601 duration format PnDTnHnMn.nS with days considered to be exactly 24 hours.
Example: PT10M
workerIdstringrequiredThe id of the external worker that would be used for locking the job
Example: orderWorker1
numberOfTasksinteger (int32)The number of tasks that should be acquired. Default is 1.
Example: 1
numberOfRetriesinteger (int32)The number of retries if an optimistic lock exception occurs during acquiring. Default is 5
Example: 10
scopeTypestringOnly acquire jobs with the given scope type
Example: cmmn
Responses
Indicates the jobs were acquired and locked. · AcquiredExternalWorkerJobResponse[]
A list of AcquiredExternalWorkerJobResponse:
idstringrequiredThe id of the external job
Example: 8
urlstringrequiredThe url of the external job
Example: http://localhost:8182/external-job-api/jobs/8
correlationIdstringThe correlation id of the external job
Example: 50
processInstanceIdstringThe process instance id for the external job
Example: 5
processDefinitionIdstringThe process definition id for the external job
Example: customerProcess:1:4
executionIdstringThe execution id for the external job
Example: 7
scopeIdstringThe scope id for the external job
Example: 20
subScopeIdstringThe sub scope id for the external job
Example: 21
scopeDefinitionIdstringThe scope definition id for the external job
Example: customerCase:1:39
scopeTypestringThe scope type for the external job
Example: cmmn
elementIdstringThe id of the element in the model
Example: customer
elementNamestringThe name of the element in the model
Example: Process Customer Task
retriesinteger (int32)The remaining number of retries
Example: 3
exceptionMessagestringThe exception message for the job
Example: null
dueDatestring (date-time)The due date for the job
Example: 2021-05-04T16:35:10.474Z
createTimestring (date-time)The creation time of the job
Example: 2020-05-04T16:35:10.474Z
tenantIdstringThe tenant if of the job
Example: flowable
lockOwnerstringThe id of the lock owner. If not set then the job is not locked
Example: worker1
lockExpirationTimestring (date-time)The time when the lock expires
Example: 2020-05-04T16:35:10.474Z
variablesEngineRestVariable[]The variables from the scope of the job
requiredGrey names have no description in the spec