Class AbstractJobEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEntity
org.flowable.job.service.impl.persistence.entity.AbstractJobEntityImpl
- All Implemented Interfaces:
Serializable
,HasRevision
,Entity
,Job
,JobInfo
,AbstractJobEntity
,AbstractRuntimeJobEntity
- Direct Known Subclasses:
DeadLetterJobEntityImpl
,ExternalWorkerJobEntityImpl
,JobEntityImpl
,SuspendedJobEntityImpl
,TimerJobEntityImpl
public abstract class AbstractJobEntityImpl
extends AbstractJobServiceEntity
implements AbstractRuntimeJobEntity, Serializable
Abstract job entity class.
- Author:
- Tijs Rademakers
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected Date
protected ByteArrayRef
protected Date
protected String
protected String
protected Date
protected ByteArrayRef
protected String
protected String
protected boolean
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected String
protected String
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
Fields 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
Constructors -
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.protected String
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.Get the job handler configuration.Get the job handler type.Get the job type for this job.int
Returns a representation of the object, as would be stored in the database.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?void
setCategory
(String category) void
setCorrelationId
(String correlationId) void
setCreateTime
(Date createTime) void
setCustomValues
(String customValues) void
setCustomValuesByteArrayRef
(ByteArrayRef customValuesByteArrayRef) void
setDuedate
(Date duedate) void
setElementId
(String elementId) void
setElementName
(String elementName) void
setEndDate
(Date endDate) void
setExceptionByteArrayRef
(ByteArrayRef exceptionByteArrayRef) void
setExceptionMessage
(String exceptionMessage) void
setExceptionStacktrace
(String exception) void
setExclusive
(boolean isExclusive) void
setExecutionId
(String executionId) void
setJobHandlerConfiguration
(String jobHandlerConfiguration) void
setJobHandlerType
(String jobHandlerType) void
setJobType
(String jobType) void
setMaxIterations
(int maxIterations) void
setProcessDefinitionId
(String processDefinitionId) void
setProcessInstanceId
(String processInstanceId) void
void
setRetries
(int retries) void
setScopeDefinitionId
(String scopeDefinitionId) void
setScopeId
(String scopeId) void
setScopeType
(String scopeType) Set the scope type for the job.void
setSubScopeId
(String subScopeId) void
setTenantId
(String tenantId) toString()
Methods inherited from class org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Field Details
-
createTime
-
duedate
-
executionId
-
processInstanceId
-
processDefinitionId
-
category
-
jobType
-
elementId
-
elementName
-
scopeId
-
subScopeId
-
scopeType
-
scopeDefinitionId
-
correlationId
-
isExclusive
protected boolean isExclusive -
retries
protected int retries -
maxIterations
protected int maxIterations -
repeat
-
endDate
-
jobHandlerType
-
jobHandlerConfiguration
-
customValuesByteArrayRef
-
exceptionByteArrayRef
-
exceptionMessage
-
tenantId
-
-
Constructor Details
-
AbstractJobEntityImpl
public AbstractJobEntityImpl()
-
-
Method Details
-
getPersistentState
Description copied from interface:Entity
Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentState
in interfaceEntity
-
getCreateTime
Description copied from interface:Job
Returns the create datetime of the job.- Specified by:
getCreateTime
in interfaceAbstractJobEntity
- Specified by:
getCreateTime
in interfaceJob
-
setCreateTime
- Specified by:
setCreateTime
in interfaceAbstractJobEntity
- Specified by:
setCreateTime
in interfaceAbstractRuntimeJobEntity
-
getDuedate
Description copied from interface:Job
Returns the date on which this job is supposed to be processed.- Specified by:
getDuedate
in interfaceJob
-
setDuedate
- Specified by:
setDuedate
in interfaceAbstractRuntimeJobEntity
-
getExecutionId
Description copied from interface:Job
Returns the specific execution on which the job was created.- Specified by:
getExecutionId
in interfaceJob
-
setExecutionId
- Specified by:
setExecutionId
in interfaceAbstractRuntimeJobEntity
-
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 interfaceAbstractJobEntity
- Specified by:
getRetries
in interfaceJobInfo
-
setRetries
public void setRetries(int retries) - Specified by:
setRetries
in interfaceAbstractJobEntity
-
getProcessInstanceId
Description copied from interface:Job
x Returns the id of the process instance which execution created the job.- Specified by:
getProcessInstanceId
in interfaceJob
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceAbstractRuntimeJobEntity
-
isExclusive
public boolean isExclusive()Description copied from interface:Job
Is the job exclusive?- Specified by:
isExclusive
in interfaceJob
-
setExclusive
public void setExclusive(boolean isExclusive) - Specified by:
setExclusive
in interfaceAbstractRuntimeJobEntity
-
getProcessDefinitionId
Description copied from interface:Job
Returns the specific process definition on which the job was created- Specified by:
getProcessDefinitionId
in interfaceJob
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionId
in interfaceAbstractRuntimeJobEntity
-
getElementId
Description copied from interface:Job
Reference to an element identifier or null if none is set.- Specified by:
getElementId
in interfaceJob
-
setElementId
- Specified by:
setElementId
in interfaceAbstractRuntimeJobEntity
-
getElementName
Description copied from interface:Job
Reference to an element name or null if none is set.- Specified by:
getElementName
in interfaceJob
-
setElementName
- Specified by:
setElementName
in interfaceAbstractRuntimeJobEntity
-
getScopeId
Description copied from interface:Job
Reference to a scope identifier or null if none is set.- Specified by:
getScopeId
in interfaceJob
-
setScopeId
- Specified by:
setScopeId
in interfaceAbstractRuntimeJobEntity
-
getSubScopeId
Description copied from interface:Job
Reference to a sub scope identifier or null if none is set.- Specified by:
getSubScopeId
in interfaceJob
-
setSubScopeId
- Specified by:
setSubScopeId
in interfaceAbstractRuntimeJobEntity
-
getScopeType
Description copied from interface:Job
Reference to a scope type or null if none is set.- Specified by:
getScopeType
in interfaceAbstractJobEntity
- Specified by:
getScopeType
in interfaceJob
-
setScopeType
Description copied from interface:AbstractJobEntity
Set the scope type for the job. The scope type is the type which is used by the job executor to pick the jobs for executing.For example if the job should be picked up by the CMMN Job executor then it should have the same type as the CMMN job executor.
- Specified by:
setScopeType
in interfaceAbstractJobEntity
- Parameters:
scopeType
- the scope type for the job
-
getScopeDefinitionId
Description copied from interface:Job
Reference to a scope definition identifier or null if none is set.- Specified by:
getScopeDefinitionId
in interfaceJob
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionId
in interfaceAbstractRuntimeJobEntity
-
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
-
setCorrelationId
- Specified by:
setCorrelationId
in interfaceAbstractRuntimeJobEntity
-
getCategory
Description copied from interface:Job
Get the category for this job.- Specified by:
getCategory
in interfaceJob
-
setCategory
- Specified by:
setCategory
in interfaceAbstractRuntimeJobEntity
-
getJobType
Description copied from interface:Job
Get the job type for this job.- Specified by:
getJobType
in interfaceJob
-
setJobType
- Specified by:
setJobType
in interfaceAbstractRuntimeJobEntity
-
getRepeat
- Specified by:
getRepeat
in interfaceAbstractRuntimeJobEntity
-
setRepeat
- Specified by:
setRepeat
in interfaceAbstractRuntimeJobEntity
-
getEndDate
- Specified by:
getEndDate
in interfaceAbstractRuntimeJobEntity
-
setEndDate
- Specified by:
setEndDate
in interfaceAbstractRuntimeJobEntity
-
getMaxIterations
public int getMaxIterations()- Specified by:
getMaxIterations
in interfaceAbstractRuntimeJobEntity
-
setMaxIterations
public void setMaxIterations(int maxIterations) - Specified by:
setMaxIterations
in interfaceAbstractRuntimeJobEntity
-
getJobHandlerType
Description copied from interface:JobInfo
Get the job handler type.- Specified by:
getJobHandlerType
in interfaceAbstractJobEntity
- Specified by:
getJobHandlerType
in interfaceJobInfo
-
setJobHandlerType
- Specified by:
setJobHandlerType
in interfaceAbstractJobEntity
-
getJobHandlerConfiguration
Description copied from interface:JobInfo
Get the job handler configuration.- Specified by:
getJobHandlerConfiguration
in interfaceAbstractJobEntity
- Specified by:
getJobHandlerConfiguration
in interfaceJobInfo
-
setJobHandlerConfiguration
- Specified by:
setJobHandlerConfiguration
in interfaceAbstractJobEntity
-
getCustomValuesByteArrayRef
- Specified by:
getCustomValuesByteArrayRef
in interfaceAbstractJobEntity
-
setCustomValuesByteArrayRef
- Specified by:
setCustomValuesByteArrayRef
in interfaceAbstractJobEntity
-
getCustomValues
Description copied from interface:JobInfo
Get the custom values.- Specified by:
getCustomValues
in interfaceAbstractJobEntity
- Specified by:
getCustomValues
in interfaceJobInfo
-
setCustomValues
- Specified by:
setCustomValues
in interfaceAbstractJobEntity
-
getTenantId
Description copied from interface:JobInfo
Get the tenant identifier for this job.- Specified by:
getTenantId
in interfaceAbstractJobEntity
- Specified by:
getTenantId
in interfaceJobInfo
-
setTenantId
- Specified by:
setTenantId
in interfaceAbstractJobEntity
-
getExceptionStacktrace
- Specified by:
getExceptionStacktrace
in interfaceAbstractJobEntity
-
setExceptionStacktrace
- Specified by:
setExceptionStacktrace
in interfaceAbstractJobEntity
-
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 interfaceAbstractJobEntity
- Specified by:
getExceptionMessage
in interfaceJobInfo
-
setExceptionMessage
- Specified by:
setExceptionMessage
in interfaceAbstractJobEntity
-
getExceptionByteArrayRef
- Specified by:
getExceptionByteArrayRef
in interfaceAbstractJobEntity
-
setExceptionByteArrayRef
- Specified by:
setExceptionByteArrayRef
in interfaceAbstractJobEntity
-
getEngineType
-
toString
-