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_TIMERFields 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.intReturns 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.booleanIs the job exclusive?
-
Field Details
-
job
-
variables
-
-
Constructor Details
-
AcquiredExternalWorkerJobImpl
-
-
Method Details
-
getVariables
- Specified by:
getVariablesin interfaceAcquiredExternalWorkerJob
-
getDuedate
Description copied from interface:JobReturns the date on which this job is supposed to be processed.- Specified by:
getDuedatein interfaceJob
-
getProcessInstanceId
Description copied from interface:Jobx Returns the id of the process instance which execution created the job.- Specified by:
getProcessInstanceIdin interfaceJob
-
getExecutionId
Description copied from interface:JobReturns the specific execution on which the job was created.- Specified by:
getExecutionIdin interfaceJob
-
getProcessDefinitionId
Description copied from interface:JobReturns the specific process definition on which the job was created- Specified by:
getProcessDefinitionIdin interfaceJob
-
getCategory
Description copied from interface:JobGet the category for this job.- Specified by:
getCategoryin interfaceJob
-
getJobType
Description copied from interface:JobGet the job type for this job.- Specified by:
getJobTypein interfaceJob
-
getElementId
Description copied from interface:JobReference to an element identifier or null if none is set.- Specified by:
getElementIdin interfaceJob
-
getElementName
Description copied from interface:JobReference to an element name or null if none is set.- Specified by:
getElementNamein interfaceJob
-
getScopeId
Description copied from interface:JobReference to a scope identifier or null if none is set.- Specified by:
getScopeIdin interfaceJob
-
getSubScopeId
Description copied from interface:JobReference to a sub scope identifier or null if none is set.- Specified by:
getSubScopeIdin interfaceJob
-
getScopeType
Description copied from interface:JobReference to a scope type or null if none is set.- Specified by:
getScopeTypein interfaceJob
-
getScopeDefinitionId
Description copied from interface:JobReference to a scope definition identifier or null if none is set.- Specified by:
getScopeDefinitionIdin interfaceJob
-
getCorrelationId
Description copied from interface:JobReturns 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 interfaceJob
-
isExclusive
public boolean isExclusive()Description copied from interface:JobIs the job exclusive?- Specified by:
isExclusivein interfaceJob
-
getCreateTime
Description copied from interface:JobReturns the create datetime of the job.- Specified by:
getCreateTimein interfaceJob
-
getId
Description copied from interface:JobInfoReturns the unique identifier for this job. -
getRetries
public int getRetries()Description copied from interface:JobInfoReturns 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 interfaceJobInfo
-
getExceptionMessage
Description copied from interface:JobInfoReturns 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 interfaceJobInfo
-
getTenantId
Description copied from interface:JobInfoGet the tenant identifier for this job.- Specified by:
getTenantIdin interfaceJobInfo
-
getJobHandlerType
Description copied from interface:JobInfoGet the job handler type.- Specified by:
getJobHandlerTypein interfaceJobInfo
-
getJobHandlerConfiguration
Description copied from interface:JobInfoGet the job handler configuration.- Specified by:
getJobHandlerConfigurationin interfaceJobInfo
-
getCustomValues
Description copied from interface:JobInfoGet the custom values.- Specified by:
getCustomValuesin interfaceJobInfo
-
getLockOwner
- Specified by:
getLockOwnerin interfaceExternalWorkerJob
-
getLockExpirationTime
- Specified by:
getLockExpirationTimein interfaceExternalWorkerJob
-