Class BaseExternalWorkerJob
java.lang.Object
org.flowable.external.client.impl.BaseExternalWorkerJob
- All Implemented Interfaces:
ExternalWorkerJob
- Direct Known Subclasses:
BaseAcquiredExternalWorkerJob
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the correlation id of a job.Returns the creation datetime of the job.Returns the date on which this job is supposed to be processed.Reference to an element identifier or null if none is set.Reference to an element name or null if none is set.Returns the message of the exception that occurred, the last time the job was executed.getId()Returns the unique identifier for this job.The time when the lock expiresintReturns the number of retries this job has left.Reference to a scope definition identifier or null if none is set.Reference to a scope identifier or null if none is set.Reference to a scope type or null if none is set.Reference to a sub scope identifier or null if none is set.Get the tenant identifier for this job.The id of the worker that has the lock on the jobvoidsetCorrelationId(String correlationId) voidsetCreateTime(Instant createTime) voidsetDueDate(Instant dueDate) voidsetElementId(String elementId) voidsetElementName(String elementName) voidsetExceptionMessage(String exceptionMessage) voidvoidsetLockExpirationTime(Instant lockExpirationTime) voidsetRetries(int retries) voidsetScopeDefinitionId(String scopeDefinitionId) voidsetScopeId(String scopeId) voidsetScopeType(String scopeType) voidsetSubScopeId(String subScopeId) voidsetTenantId(String tenantId) voidsetWorkerId(String workerId)
-
Field Details
-
id
-
correlationId
-
retries
protected int retries -
scopeId
-
scopeType
-
subScopeId
-
scopeDefinitionId
-
tenantId
-
elementId
-
elementName
-
exceptionMessage
-
dueDate
-
createTime
-
workerId
-
lockExpirationTime
-
-
Constructor Details
-
BaseExternalWorkerJob
public BaseExternalWorkerJob()
-
-
Method Details
-
getId
Description copied from interface:ExternalWorkerJobReturns the unique identifier for this job.- Specified by:
getIdin interfaceExternalWorkerJob
-
setId
-
getCorrelationId
Description copied from interface:ExternalWorkerJobReturns the correlation id of a job. The same job can be moved around and have its technical id changed. This id allows tracking that job.- Specified by:
getCorrelationIdin interfaceExternalWorkerJob
-
setCorrelationId
-
getRetries
public int getRetries()Description copied from interface:ExternalWorkerJobReturns the number of retries this job has left. Whenever the jobexecutor fails to execute the job, this value is decremented. When it hits zero, the job is supposed to be dead and not retried again (ie a manual retry is required then).- Specified by:
getRetriesin interfaceExternalWorkerJob
-
setRetries
public void setRetries(int retries) -
getDueDate
Description copied from interface:ExternalWorkerJobReturns the date on which this job is supposed to be processed.- Specified by:
getDueDatein interfaceExternalWorkerJob
-
setDueDate
-
getExceptionMessage
Description copied from interface:ExternalWorkerJobReturns the message of the exception that occurred, the last time the job was executed. Returns null when no exception occurred.To get the full exception stacktrace, use ManagementService#getJobExceptionStacktrace(String)
- Specified by:
getExceptionMessagein interfaceExternalWorkerJob
-
setExceptionMessage
-
getTenantId
Description copied from interface:ExternalWorkerJobGet the tenant identifier for this job.- Specified by:
getTenantIdin interfaceExternalWorkerJob
-
setTenantId
-
getElementId
Description copied from interface:ExternalWorkerJobReference to an element identifier or null if none is set.- Specified by:
getElementIdin interfaceExternalWorkerJob
-
setElementId
-
getElementName
Description copied from interface:ExternalWorkerJobReference to an element name or null if none is set.- Specified by:
getElementNamein interfaceExternalWorkerJob
-
setElementName
-
getScopeId
Description copied from interface:ExternalWorkerJobReference to a scope identifier or null if none is set.- Specified by:
getScopeIdin interfaceExternalWorkerJob
-
setScopeId
-
getSubScopeId
Description copied from interface:ExternalWorkerJobReference to a sub scope identifier or null if none is set.- Specified by:
getSubScopeIdin interfaceExternalWorkerJob
-
setSubScopeId
-
getScopeType
Description copied from interface:ExternalWorkerJobReference to a scope type or null if none is set.- Specified by:
getScopeTypein interfaceExternalWorkerJob
-
setScopeType
-
getScopeDefinitionId
Description copied from interface:ExternalWorkerJobReference to a scope definition identifier or null if none is set.- Specified by:
getScopeDefinitionIdin interfaceExternalWorkerJob
-
setScopeDefinitionId
-
getCreateTime
Description copied from interface:ExternalWorkerJobReturns the creation datetime of the job.- Specified by:
getCreateTimein interfaceExternalWorkerJob
-
setCreateTime
-
getWorkerId
Description copied from interface:ExternalWorkerJobThe id of the worker that has the lock on the job- Specified by:
getWorkerIdin interfaceExternalWorkerJob
-
setWorkerId
-
getLockExpirationTime
Description copied from interface:ExternalWorkerJobThe time when the lock expires- Specified by:
getLockExpirationTimein interfaceExternalWorkerJob
-
setLockExpirationTime
-