Package org.flowable.job.service.impl
Class AcquiredExternalWorkerJobImpl
java.lang.Object
org.flowable.job.service.impl.AcquiredExternalWorkerJobImpl
- All Implemented Interfaces:
AcquiredExternalWorkerJob
,ExternalWorkerJob
,Job
,JobInfo
- Author:
- Filip Hrisafov
-
Field Summary
FieldsFields inherited from interface org.flowable.job.api.Job
DEFAULT_EXCLUSIVE, JOB_TYPE_EXTERNAL_WORKER, JOB_TYPE_MESSAGE, JOB_TYPE_TIMER
Fields inherited from interface org.flowable.job.api.JobInfo
MAX_EXCEPTION_MESSAGE_LENGTH
-
Constructor Summary
ConstructorsConstructorDescriptionAcquiredExternalWorkerJobImpl
(ExternalWorkerJobEntity job, Map<String, Object> variables) -
Method Summary
Modifier and TypeMethodDescriptionGet the category for this job.Returns the correlation id of a job.Returns the create datetime of the job.Get the custom values.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.Returns the specific execution on which the job was created.getId()
Returns the unique identifier for this job.Get the job handler configuration.Get the job handler type.Get the job type for this job.Returns the specific process definition on which the job was createdx Returns the id of the process instance which execution created the job.int
Returns 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.boolean
Is the job exclusive?
-
Field Details
-
job
-
variables
-
-
Constructor Details
-
AcquiredExternalWorkerJobImpl
-
-
Method Details
-
getVariables
- Specified by:
getVariables
in interfaceAcquiredExternalWorkerJob
-
getDuedate
Description copied from interface:Job
Returns the date on which this job is supposed to be processed.- Specified by:
getDuedate
in interfaceJob
-
getProcessInstanceId
Description copied from interface:Job
x Returns the id of the process instance which execution created the job.- Specified by:
getProcessInstanceId
in interfaceJob
-
getExecutionId
Description copied from interface:Job
Returns the specific execution on which the job was created.- Specified by:
getExecutionId
in interfaceJob
-
getProcessDefinitionId
Description copied from interface:Job
Returns the specific process definition on which the job was created- Specified by:
getProcessDefinitionId
in interfaceJob
-
getCategory
Description copied from interface:Job
Get the category for this job.- Specified by:
getCategory
in interfaceJob
-
getJobType
Description copied from interface:Job
Get the job type for this job.- Specified by:
getJobType
in interfaceJob
-
getElementId
Description copied from interface:Job
Reference to an element identifier or null if none is set.- Specified by:
getElementId
in interfaceJob
-
getElementName
Description copied from interface:Job
Reference to an element name or null if none is set.- Specified by:
getElementName
in interfaceJob
-
getScopeId
Description copied from interface:Job
Reference to a scope identifier or null if none is set.- Specified by:
getScopeId
in interfaceJob
-
getSubScopeId
Description copied from interface:Job
Reference to a sub scope identifier or null if none is set.- Specified by:
getSubScopeId
in interfaceJob
-
getScopeType
Description copied from interface:Job
Reference to a scope type or null if none is set.- Specified by:
getScopeType
in interfaceJob
-
getScopeDefinitionId
Description copied from interface:Job
Reference to a scope definition identifier or null if none is set.- Specified by:
getScopeDefinitionId
in interfaceJob
-
getCorrelationId
Description copied from interface:Job
Returns 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:
getCorrelationId
in interfaceJob
-
isExclusive
public boolean isExclusive()Description copied from interface:Job
Is the job exclusive?- Specified by:
isExclusive
in interfaceJob
-
getCreateTime
Description copied from interface:Job
Returns the create datetime of the job.- Specified by:
getCreateTime
in interfaceJob
-
getId
Description copied from interface:JobInfo
Returns the unique identifier for this job. -
getRetries
public int getRetries()Description copied from interface:JobInfo
Returns 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:
getRetries
in interfaceJobInfo
-
getExceptionMessage
Description copied from interface:JobInfo
Returns 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:
getExceptionMessage
in interfaceJobInfo
-
getTenantId
Description copied from interface:JobInfo
Get the tenant identifier for this job.- Specified by:
getTenantId
in interfaceJobInfo
-
getJobHandlerType
Description copied from interface:JobInfo
Get the job handler type.- Specified by:
getJobHandlerType
in interfaceJobInfo
-
getJobHandlerConfiguration
Description copied from interface:JobInfo
Get the job handler configuration.- Specified by:
getJobHandlerConfiguration
in interfaceJobInfo
-
getCustomValues
Description copied from interface:JobInfo
Get the custom values.- Specified by:
getCustomValues
in interfaceJobInfo
-
getLockOwner
- Specified by:
getLockOwner
in interfaceExternalWorkerJob
-
getLockExpirationTime
- Specified by:
getLockExpirationTime
in interfaceExternalWorkerJob
-