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 Stringprotected Stringprotected Dateprotected ByteArrayRefprotected Dateprotected Stringprotected Stringprotected Dateprotected ByteArrayRefprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revisionFields 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
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 StringReturns 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.intReturns 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.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?voidsetCategory(String category) voidsetCorrelationId(String correlationId) voidsetCreateTime(Date createTime) voidsetCustomValues(String customValues) voidsetCustomValuesByteArrayRef(ByteArrayRef customValuesByteArrayRef) voidsetDuedate(Date duedate) voidsetElementId(String elementId) voidsetElementName(String elementName) voidsetEndDate(Date endDate) voidsetExceptionByteArrayRef(ByteArrayRef exceptionByteArrayRef) voidsetExceptionMessage(String exceptionMessage) voidsetExceptionStacktrace(String exception) voidsetExclusive(boolean isExclusive) voidsetExecutionId(String executionId) voidsetJobHandlerConfiguration(String jobHandlerConfiguration) voidsetJobHandlerType(String jobHandlerType) voidsetJobType(String jobType) voidsetMaxIterations(int maxIterations) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessInstanceId(String processInstanceId) voidvoidsetRetries(int retries) voidsetScopeDefinitionId(String scopeDefinitionId) voidsetScopeId(String scopeId) voidsetScopeType(String scopeType) Set the scope type for the job.voidsetSubScopeId(String subScopeId) voidsetTenantId(String tenantId) toString()Methods inherited from class org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEntity
getIdPrefixMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods 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:EntityReturns 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:
getPersistentStatein interfaceEntity
-
getCreateTime
Description copied from interface:JobReturns the create datetime of the job.- Specified by:
getCreateTimein interfaceAbstractJobEntity- Specified by:
getCreateTimein interfaceJob
-
setCreateTime
- Specified by:
setCreateTimein interfaceAbstractJobEntity- Specified by:
setCreateTimein interfaceAbstractRuntimeJobEntity
-
getDuedate
Description copied from interface:JobReturns the date on which this job is supposed to be processed.- Specified by:
getDuedatein interfaceJob
-
setDuedate
- Specified by:
setDuedatein interfaceAbstractRuntimeJobEntity
-
getExecutionId
Description copied from interface:JobReturns the specific execution on which the job was created.- Specified by:
getExecutionIdin interfaceJob
-
setExecutionId
- Specified by:
setExecutionIdin interfaceAbstractRuntimeJobEntity
-
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 interfaceAbstractJobEntity- Specified by:
getRetriesin interfaceJobInfo
-
setRetries
public void setRetries(int retries) - Specified by:
setRetriesin interfaceAbstractJobEntity
-
getProcessInstanceId
Description copied from interface:Jobx Returns the id of the process instance which execution created the job.- Specified by:
getProcessInstanceIdin interfaceJob
-
setProcessInstanceId
- Specified by:
setProcessInstanceIdin interfaceAbstractRuntimeJobEntity
-
isExclusive
public boolean isExclusive()Description copied from interface:JobIs the job exclusive?- Specified by:
isExclusivein interfaceJob
-
setExclusive
public void setExclusive(boolean isExclusive) - Specified by:
setExclusivein interfaceAbstractRuntimeJobEntity
-
getProcessDefinitionId
Description copied from interface:JobReturns the specific process definition on which the job was created- Specified by:
getProcessDefinitionIdin interfaceJob
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionIdin interfaceAbstractRuntimeJobEntity
-
getElementId
Description copied from interface:JobReference to an element identifier or null if none is set.- Specified by:
getElementIdin interfaceJob
-
setElementId
- Specified by:
setElementIdin interfaceAbstractRuntimeJobEntity
-
getElementName
Description copied from interface:JobReference to an element name or null if none is set.- Specified by:
getElementNamein interfaceJob
-
setElementName
- Specified by:
setElementNamein interfaceAbstractRuntimeJobEntity
-
getScopeId
Description copied from interface:JobReference to a scope identifier or null if none is set.- Specified by:
getScopeIdin interfaceJob
-
setScopeId
- Specified by:
setScopeIdin interfaceAbstractRuntimeJobEntity
-
getSubScopeId
Description copied from interface:JobReference to a sub scope identifier or null if none is set.- Specified by:
getSubScopeIdin interfaceJob
-
setSubScopeId
- Specified by:
setSubScopeIdin interfaceAbstractRuntimeJobEntity
-
getScopeType
Description copied from interface:JobReference to a scope type or null if none is set.- Specified by:
getScopeTypein interfaceAbstractJobEntity- Specified by:
getScopeTypein interfaceJob
-
setScopeType
Description copied from interface:AbstractJobEntitySet 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:
setScopeTypein interfaceAbstractJobEntity- Parameters:
scopeType- the scope type for the job
-
getScopeDefinitionId
Description copied from interface:JobReference to a scope definition identifier or null if none is set.- Specified by:
getScopeDefinitionIdin interfaceJob
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionIdin interfaceAbstractRuntimeJobEntity
-
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
-
setCorrelationId
- Specified by:
setCorrelationIdin interfaceAbstractRuntimeJobEntity
-
getCategory
Description copied from interface:JobGet the category for this job.- Specified by:
getCategoryin interfaceJob
-
setCategory
- Specified by:
setCategoryin interfaceAbstractRuntimeJobEntity
-
getJobType
Description copied from interface:JobGet the job type for this job.- Specified by:
getJobTypein interfaceJob
-
setJobType
- Specified by:
setJobTypein interfaceAbstractRuntimeJobEntity
-
getRepeat
- Specified by:
getRepeatin interfaceAbstractRuntimeJobEntity
-
setRepeat
- Specified by:
setRepeatin interfaceAbstractRuntimeJobEntity
-
getEndDate
- Specified by:
getEndDatein interfaceAbstractRuntimeJobEntity
-
setEndDate
- Specified by:
setEndDatein interfaceAbstractRuntimeJobEntity
-
getMaxIterations
public int getMaxIterations()- Specified by:
getMaxIterationsin interfaceAbstractRuntimeJobEntity
-
setMaxIterations
public void setMaxIterations(int maxIterations) - Specified by:
setMaxIterationsin interfaceAbstractRuntimeJobEntity
-
getJobHandlerType
Description copied from interface:JobInfoGet the job handler type.- Specified by:
getJobHandlerTypein interfaceAbstractJobEntity- Specified by:
getJobHandlerTypein interfaceJobInfo
-
setJobHandlerType
- Specified by:
setJobHandlerTypein interfaceAbstractJobEntity
-
getJobHandlerConfiguration
Description copied from interface:JobInfoGet the job handler configuration.- Specified by:
getJobHandlerConfigurationin interfaceAbstractJobEntity- Specified by:
getJobHandlerConfigurationin interfaceJobInfo
-
setJobHandlerConfiguration
- Specified by:
setJobHandlerConfigurationin interfaceAbstractJobEntity
-
getCustomValuesByteArrayRef
- Specified by:
getCustomValuesByteArrayRefin interfaceAbstractJobEntity
-
setCustomValuesByteArrayRef
- Specified by:
setCustomValuesByteArrayRefin interfaceAbstractJobEntity
-
getCustomValues
Description copied from interface:JobInfoGet the custom values.- Specified by:
getCustomValuesin interfaceAbstractJobEntity- Specified by:
getCustomValuesin interfaceJobInfo
-
setCustomValues
- Specified by:
setCustomValuesin interfaceAbstractJobEntity
-
getTenantId
Description copied from interface:JobInfoGet the tenant identifier for this job.- Specified by:
getTenantIdin interfaceAbstractJobEntity- Specified by:
getTenantIdin interfaceJobInfo
-
setTenantId
- Specified by:
setTenantIdin interfaceAbstractJobEntity
-
getExceptionStacktrace
- Specified by:
getExceptionStacktracein interfaceAbstractJobEntity
-
setExceptionStacktrace
- Specified by:
setExceptionStacktracein interfaceAbstractJobEntity
-
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 interfaceAbstractJobEntity- Specified by:
getExceptionMessagein interfaceJobInfo
-
setExceptionMessage
- Specified by:
setExceptionMessagein interfaceAbstractJobEntity
-
getExceptionByteArrayRef
- Specified by:
getExceptionByteArrayRefin interfaceAbstractJobEntity
-
setExceptionByteArrayRef
- Specified by:
setExceptionByteArrayRefin interfaceAbstractJobEntity
-
getEngineType
-
toString
-