Class HistoryJobEntityImpl
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.HistoryJobEntityImpl
- All Implemented Interfaces:
Serializable,HasRevision,Entity,HistoryJob,JobInfo,AbstractJobEntity,HistoryJobEntity,JobInfoEntity
public class HistoryJobEntityImpl
extends AbstractJobServiceEntity
implements HistoryJobEntity, Serializable
History Job entity.
- Author:
- Joram Barrez, Tijs Rademakers
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayRefprotected Dateprotected ByteArrayRefprotected ByteArrayRefprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected intprotected 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.HistoryJob
HISTORY_JOB_TYPEFields inherited from interface org.flowable.job.api.JobInfo
MAX_EXCEPTION_MESSAGE_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the job create time.Get the custom values.protected StringReturns the message of the exception that occurred, the last time the job was executed.protected StringgetJobByteArrayRefAsString(ByteArrayRef jobByteArrayRef) Get the job handler configuration.Get the job handler type.Returns a representation of the object, as would be stored in the database.intReturns the number of retries this job has left.Get the scope type.Get the tenant identifier for this job.voidsetAdvancedJobHandlerConfiguration(String jobHandlerConfiguration) voidsetAdvancedJobHandlerConfigurationByteArrayRef(ByteArrayRef configurationByteArrayRef) voidsetAdvancedJobHandlerConfigurationBytes(byte[] bytes) voidsetCreateTime(Date createTime) voidsetCustomValues(String customValues) voidsetCustomValuesByteArrayRef(ByteArrayRef customValuesByteArrayRef) voidsetExceptionByteArrayRef(ByteArrayRef exceptionByteArrayRef) voidsetExceptionMessage(String exceptionMessage) voidsetExceptionStacktrace(String exception) voidsetJobHandlerConfiguration(String jobHandlerConfiguration) voidsetJobHandlerType(String jobHandlerType) voidsetLockExpirationTime(Date claimedUntil) voidsetLockOwner(String claimedBy) voidsetRetries(int retries) voidsetScopeType(String scopeType) Set the scope type for the job.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
-
retries
protected int retries -
jobHandlerType
-
jobHandlerConfiguration
-
customValuesByteArrayRef
-
advancedJobHandlerConfigurationByteArrayRef
-
exceptionByteArrayRef
-
exceptionMessage
-
lockOwner
-
lockExpirationTime
-
createTime
-
scopeType
-
tenantId
-
-
Constructor Details
-
HistoryJobEntityImpl
public HistoryJobEntityImpl()
-
-
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
-
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
-
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
-
getCustomValues
Description copied from interface:JobInfoGet the custom values.- Specified by:
getCustomValuesin interfaceAbstractJobEntity- Specified by:
getCustomValuesin interfaceJobInfo
-
setCustomValues
- Specified by:
setCustomValuesin interfaceAbstractJobEntity
-
getCustomValuesByteArrayRef
- Specified by:
getCustomValuesByteArrayRefin interfaceAbstractJobEntity
-
setCustomValuesByteArrayRef
- Specified by:
setCustomValuesByteArrayRefin interfaceAbstractJobEntity
-
getAdvancedJobHandlerConfigurationByteArrayRef
- Specified by:
getAdvancedJobHandlerConfigurationByteArrayRefin interfaceHistoryJobEntity
-
getAdvancedJobHandlerConfiguration
- Specified by:
getAdvancedJobHandlerConfigurationin interfaceHistoryJobEntity
-
setAdvancedJobHandlerConfigurationByteArrayRef
- Specified by:
setAdvancedJobHandlerConfigurationByteArrayRefin interfaceHistoryJobEntity
-
setAdvancedJobHandlerConfiguration
- Specified by:
setAdvancedJobHandlerConfigurationin interfaceHistoryJobEntity
-
setAdvancedJobHandlerConfigurationBytes
public void setAdvancedJobHandlerConfigurationBytes(byte[] bytes) - Specified by:
setAdvancedJobHandlerConfigurationBytesin interfaceHistoryJobEntity
-
setExceptionByteArrayRef
- Specified by:
setExceptionByteArrayRefin interfaceAbstractJobEntity
-
getExceptionByteArrayRef
- Specified by:
getExceptionByteArrayRefin 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
-
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
-
getCreateTime
Description copied from interface:HistoryJobGet the job create time.- Specified by:
getCreateTimein interfaceAbstractJobEntity- Specified by:
getCreateTimein interfaceHistoryJob
-
setCreateTime
- Specified by:
setCreateTimein interfaceAbstractJobEntity- Specified by:
setCreateTimein interfaceHistoryJobEntity
-
getLockOwner
- Specified by:
getLockOwnerin interfaceJobInfoEntity
-
setLockOwner
- Specified by:
setLockOwnerin interfaceJobInfoEntity
-
getLockExpirationTime
- Specified by:
getLockExpirationTimein interfaceJobInfoEntity
-
setLockExpirationTime
- Specified by:
setLockExpirationTimein interfaceJobInfoEntity
-
getScopeType
Description copied from interface:HistoryJobGet the scope type.- Specified by:
getScopeTypein interfaceAbstractJobEntity- Specified by:
getScopeTypein interfaceHistoryJob- Specified by:
getScopeTypein interfaceJobInfoEntity
-
setScopeType
Description copied from interface:JobInfoEntitySet 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- Specified by:
setScopeTypein interfaceJobInfoEntity- Parameters:
scopeType- the scope type for the job
-
getJobByteArrayRefAsString
-
getEngineType
-
toString
-