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 ByteArrayRef
protected Date
protected ByteArrayRef
protected ByteArrayRef
protected String
protected String
protected String
protected Date
protected String
protected int
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.HistoryJob
HISTORY_JOB_TYPE
Fields 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 String
Returns the message of the exception that occurred, the last time the job was executed.protected String
getJobByteArrayRefAsString
(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.int
Returns the number of retries this job has left.Get the scope type.Get the tenant identifier for this job.void
setAdvancedJobHandlerConfiguration
(String jobHandlerConfiguration) void
setAdvancedJobHandlerConfigurationByteArrayRef
(ByteArrayRef configurationByteArrayRef) void
setAdvancedJobHandlerConfigurationBytes
(byte[] bytes) void
setCreateTime
(Date createTime) void
setCustomValues
(String customValues) void
setCustomValuesByteArrayRef
(ByteArrayRef customValuesByteArrayRef) void
setExceptionByteArrayRef
(ByteArrayRef exceptionByteArrayRef) void
setExceptionMessage
(String exceptionMessage) void
setExceptionStacktrace
(String exception) void
setJobHandlerConfiguration
(String jobHandlerConfiguration) void
setJobHandlerType
(String jobHandlerType) void
setLockExpirationTime
(Date claimedUntil) void
setLockOwner
(String claimedBy) void
setRetries
(int retries) void
setScopeType
(String scopeType) Set the scope type for the job.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
-
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: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
-
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
-
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
-
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
-
getCustomValuesByteArrayRef
- Specified by:
getCustomValuesByteArrayRef
in interfaceAbstractJobEntity
-
setCustomValuesByteArrayRef
- Specified by:
setCustomValuesByteArrayRef
in interfaceAbstractJobEntity
-
getAdvancedJobHandlerConfigurationByteArrayRef
- Specified by:
getAdvancedJobHandlerConfigurationByteArrayRef
in interfaceHistoryJobEntity
-
getAdvancedJobHandlerConfiguration
- Specified by:
getAdvancedJobHandlerConfiguration
in interfaceHistoryJobEntity
-
setAdvancedJobHandlerConfigurationByteArrayRef
- Specified by:
setAdvancedJobHandlerConfigurationByteArrayRef
in interfaceHistoryJobEntity
-
setAdvancedJobHandlerConfiguration
- Specified by:
setAdvancedJobHandlerConfiguration
in interfaceHistoryJobEntity
-
setAdvancedJobHandlerConfigurationBytes
public void setAdvancedJobHandlerConfigurationBytes(byte[] bytes) - Specified by:
setAdvancedJobHandlerConfigurationBytes
in interfaceHistoryJobEntity
-
setExceptionByteArrayRef
- Specified by:
setExceptionByteArrayRef
in interfaceAbstractJobEntity
-
getExceptionByteArrayRef
- Specified by:
getExceptionByteArrayRef
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
-
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
-
getCreateTime
Description copied from interface:HistoryJob
Get the job create time.- Specified by:
getCreateTime
in interfaceAbstractJobEntity
- Specified by:
getCreateTime
in interfaceHistoryJob
-
setCreateTime
- Specified by:
setCreateTime
in interfaceAbstractJobEntity
- Specified by:
setCreateTime
in interfaceHistoryJobEntity
-
getLockOwner
- Specified by:
getLockOwner
in interfaceJobInfoEntity
-
setLockOwner
- Specified by:
setLockOwner
in interfaceJobInfoEntity
-
getLockExpirationTime
- Specified by:
getLockExpirationTime
in interfaceJobInfoEntity
-
setLockExpirationTime
- Specified by:
setLockExpirationTime
in interfaceJobInfoEntity
-
getScopeType
Description copied from interface:HistoryJob
Get the scope type.- Specified by:
getScopeType
in interfaceAbstractJobEntity
- Specified by:
getScopeType
in interfaceHistoryJob
- Specified by:
getScopeType
in interfaceJobInfoEntity
-
setScopeType
Description copied from interface:JobInfoEntity
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
- Specified by:
setScopeType
in interfaceJobInfoEntity
- Parameters:
scopeType
- the scope type for the job
-
getJobByteArrayRefAsString
-
getEngineType
-
toString
-