Class HistoricTaskInstanceEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.task.service.impl.persistence.entity.AbstractTaskServiceEntity
org.flowable.task.service.impl.persistence.entity.HistoricTaskInstanceEntityImpl
- All Implemented Interfaces:
HistoricData,HasRevision,Entity,HistoricTaskInstance,TaskInfo,HistoricTaskInstanceEntity
public class HistoricTaskInstanceEntityImpl
extends AbstractTaskServiceEntity
implements HistoricTaskInstanceEntity
- Author:
- Tom Baeyens, Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected Dateprotected Stringprotected Stringprotected Dateprotected Longprotected Dateprotected Stringprotected Stringprotected List<HistoricIdentityLinkEntity>protected Dateprotected Stringprotected Dateprotected booleanprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected List<HistoricIdentityLinkEntity>protected List<HistoricVariableInstanceEntity>protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected StringFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionThe user id of the person to which this task is delegated.Returns the case variables if requested in the task queryThe category of the task.The user reference that claimed this taskThe claim time of this taskUser reference that has completed the task.The date/time when this task was createdThe reason why this task was deleted {'completed' | 'deleted' | any other user defined string }.Free text description of the task.Due date of the task.Difference betweenHistoricTaskInstance.getEndTime()andHistoricTaskInstance.getStartTime()in milliseconds.Time when the task was deleted or completed.Reference to the path of execution or null if it is not related to a process instance.The form key for the user taskReturns the identity links.protected IdentityLinkServiceConfigurationIn progress start due date of the task.The user reference that put this task in progressThe date/time when this task was put in progressgetName()Name or title of the task.getOwner()The user id of the person that is responsible for this task.The parent task for which this task is a subtaskReturns a representation of the object, as would be stored in the database.intIndication of how important/urgent this task isReference to the process definition or null if it is not related to a process.Reference to the process instance or null if it is not related to a process instance.Returns the process variables if requested in the task queryIf this task runs in the context of a case and stage, this method returns it's closest parent stage instance id (the stage plan item instance id to be precise).Reference to a scope definition identifier or null if none is set (e.g.Reference to a scope identifier or null if none is set (e.g.Reference to a scope type or null if none is set (e.g.Time when the task created.getState()The state of this taskReference to a sub scope identifier or null if none is set (e.g.The user reference that suspended this taskThe suspended time of this taskReference to the task definition or null if it is not related to any task definition.The id of the activity in the process defining this task or null if this is not related to a processprotected AbstractEngineConfigurationReturns the local task variables if requested in the task queryprotected TaskServiceConfigurationThe tenant identifier of this taskgetTime()Difference betweenHistoricTaskInstance.getEndTime()andTaskInfo.getClaimTime()in milliseconds.voidvoidsetAssignee(String assignee) voidsetCategory(String category) voidsetClaimedBy(String claimedBy) voidsetClaimTime(Date claimTime) voidsetCompletedBy(String completedBy) voidsetCreateTime(Date createTime) voidsetDeleteReason(String deleteReason) voidsetDescription(String description) voidsetDueDate(Date dueDate) voidsetDurationInMillis(Long durationInMillis) voidsetEndTime(Date endTime) voidsetExecutionId(String executionId) voidsetFormKey(String formKey) voidsetInProgressStartDueDate(Date inProgressStartDueDate) voidsetInProgressStartedBy(String inProgressStartedBy) voidsetInProgressStartTime(Date inProgressStartTime) voidsetLastUpdateTime(Date lastUpdateTime) voidsetLocalizedDescription(String description) Sets an optional localized description for the task.voidsetLocalizedName(String name) Sets an optional localized name for the task.voidvoidvoidsetParentTaskId(String parentTaskId) voidsetPriority(int priority) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessInstanceId(String processInstanceId) voidsetQueryIdentityLinks(List<HistoricIdentityLinkEntity> identityLinks) voidsetQueryVariables(List<HistoricVariableInstanceEntity> queryVariables) voidsetScopeDefinitionId(String scopeDefinitionId) voidsetScopeId(String scopeId) voidsetScopeType(String scopeType) voidvoidsetSubScopeId(String subScopeId) voidsetSuspendedBy(String suspendedBy) voidsetSuspendedTime(Date suspendedTime) voidsetTaskDefinitionId(String taskDefinitionId) voidsetTaskDefinitionKey(String taskDefinitionKey) voidsetTenantId(String tenantId) toString()Methods inherited from class org.flowable.task.service.impl.persistence.entity.AbstractTaskServiceEntity
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, setRevisionMethods inherited from interface org.flowable.task.service.impl.persistence.entity.HistoricTaskInstanceEntity
setStartTime
-
Field Details
-
executionId
-
processInstanceId
-
processDefinitionId
-
taskDefinitionId
-
scopeId
-
subScopeId
-
scopeType
-
scopeDefinitionId
-
propagatedStageInstanceId
-
state
-
createTime
-
inProgressStartTime
-
inProgressStartedBy
-
claimTime
-
claimedBy
-
suspendedTime
-
suspendedBy
-
endTime
-
completedBy
-
durationInMillis
-
deleteReason
-
name
-
localizedName
-
parentTaskId
-
description
-
localizedDescription
-
owner
-
assignee
-
taskDefinitionKey
-
formKey
-
priority
protected int priority -
inProgressStartDueDate
-
dueDate
-
category
-
tenantId
-
lastUpdateTime
-
queryVariables
-
queryIdentityLinks
-
identityLinks
-
isIdentityLinksInitialized
protected boolean isIdentityLinksInitialized
-
-
Constructor Details
-
HistoricTaskInstanceEntityImpl
public HistoricTaskInstanceEntityImpl() -
HistoricTaskInstanceEntityImpl
-
-
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
-
markEnded
- Specified by:
markEndedin interfaceHistoricTaskInstanceEntity
-
getExecutionId
Description copied from interface:TaskInfoReference to the path of execution or null if it is not related to a process instance.- Specified by:
getExecutionIdin interfaceTaskInfo
-
setExecutionId
- Specified by:
setExecutionIdin interfaceHistoricTaskInstanceEntity
-
getProcessInstanceId
Description copied from interface:TaskInfoReference to the process instance or null if it is not related to a process instance.- Specified by:
getProcessInstanceIdin interfaceTaskInfo
-
getProcessDefinitionId
Description copied from interface:TaskInfoReference to the process definition or null if it is not related to a process.- Specified by:
getProcessDefinitionIdin interfaceTaskInfo
-
getTaskDefinitionId
Description copied from interface:TaskInfoReference to the task definition or null if it is not related to any task definition.- Specified by:
getTaskDefinitionIdin interfaceTaskInfo
-
getScopeId
Description copied from interface:TaskInfoReference to a scope identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeIdin interfaceTaskInfo
-
setScopeId
- Specified by:
setScopeIdin interfaceHistoricTaskInstanceEntity
-
getSubScopeId
Description copied from interface:TaskInfoReference to a sub scope identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getSubScopeIdin interfaceTaskInfo
-
setSubScopeId
- Specified by:
setSubScopeIdin interfaceHistoricTaskInstanceEntity
-
getScopeType
Description copied from interface:TaskInfoReference to a scope type or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeTypein interfaceTaskInfo
-
setScopeType
- Specified by:
setScopeTypein interfaceHistoricTaskInstanceEntity
-
getScopeDefinitionId
Description copied from interface:TaskInfoReference to a scope definition identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeDefinitionIdin interfaceTaskInfo
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionIdin interfaceHistoricTaskInstanceEntity
-
getPropagatedStageInstanceId
Description copied from interface:TaskInfoIf this task runs in the context of a case and stage, this method returns it's closest parent stage instance id (the stage plan item instance id to be precise). Even if the direct parent of the task is a process which itself might have been created out of a process task of a case, its stage instance is reflected in the task.- Specified by:
getPropagatedStageInstanceIdin interfaceTaskInfo- Returns:
- the stage instance id this task belongs to or null, if this task is not part of a case at all or is not a child element of a stage
-
getState
Description copied from interface:TaskInfoThe state of this task -
getStartTime
Description copied from interface:HistoricTaskInstanceTime when the task created.- Specified by:
getStartTimein interfaceHistoricTaskInstance
-
getInProgressStartTime
Description copied from interface:TaskInfoThe date/time when this task was put in progress- Specified by:
getInProgressStartTimein interfaceTaskInfo
-
getInProgressStartedBy
Description copied from interface:TaskInfoThe user reference that put this task in progress- Specified by:
getInProgressStartedByin interfaceTaskInfo
-
getClaimTime
Description copied from interface:TaskInfoThe claim time of this task- Specified by:
getClaimTimein interfaceTaskInfo
-
getClaimedBy
Description copied from interface:TaskInfoThe user reference that claimed this task- Specified by:
getClaimedByin interfaceTaskInfo
-
getSuspendedTime
Description copied from interface:TaskInfoThe suspended time of this task- Specified by:
getSuspendedTimein interfaceTaskInfo
-
getSuspendedBy
Description copied from interface:TaskInfoThe user reference that suspended this task- Specified by:
getSuspendedByin interfaceTaskInfo
-
getEndTime
Description copied from interface:HistoricTaskInstanceTime when the task was deleted or completed.- Specified by:
getEndTimein interfaceHistoricTaskInstance
-
getCompletedBy
Description copied from interface:HistoricTaskInstanceUser reference that has completed the task.- Specified by:
getCompletedByin interfaceHistoricTaskInstance
-
getDurationInMillis
Description copied from interface:HistoricTaskInstanceDifference betweenHistoricTaskInstance.getEndTime()andHistoricTaskInstance.getStartTime()in milliseconds.- Specified by:
getDurationInMillisin interfaceHistoricTaskInstance
-
setProcessInstanceId
- Specified by:
setProcessInstanceIdin interfaceHistoricTaskInstanceEntity
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionIdin interfaceHistoricTaskInstanceEntity
-
setTaskDefinitionId
- Specified by:
setTaskDefinitionIdin interfaceHistoricTaskInstanceEntity
-
setState
- Specified by:
setStatein interfaceHistoricTaskInstanceEntity
-
setCreateTime
- Specified by:
setCreateTimein interfaceHistoricTaskInstanceEntity
-
setInProgressStartTime
- Specified by:
setInProgressStartTimein interfaceHistoricTaskInstanceEntity
-
setInProgressStartedBy
- Specified by:
setInProgressStartedByin interfaceHistoricTaskInstanceEntity
-
setClaimTime
- Specified by:
setClaimTimein interfaceHistoricTaskInstanceEntity
-
setClaimedBy
- Specified by:
setClaimedByin interfaceHistoricTaskInstanceEntity
-
setSuspendedTime
- Specified by:
setSuspendedTimein interfaceHistoricTaskInstanceEntity
-
setSuspendedBy
- Specified by:
setSuspendedByin interfaceHistoricTaskInstanceEntity
-
setEndTime
- Specified by:
setEndTimein interfaceHistoricTaskInstanceEntity
-
setCompletedBy
- Specified by:
setCompletedByin interfaceHistoricTaskInstanceEntity
-
setDurationInMillis
- Specified by:
setDurationInMillisin interfaceHistoricTaskInstanceEntity
-
getDeleteReason
Description copied from interface:HistoricTaskInstanceThe reason why this task was deleted {'completed' | 'deleted' | any other user defined string }.- Specified by:
getDeleteReasonin interfaceHistoricTaskInstance
-
setDeleteReason
- Specified by:
setDeleteReasonin interfaceHistoricTaskInstanceEntity
-
getName
Description copied from interface:TaskInfoName or title of the task. -
setName
- Specified by:
setNamein interfaceHistoricTaskInstanceEntity
-
setLocalizedName
Description copied from interface:HistoricTaskInstanceEntitySets an optional localized name for the task.- Specified by:
setLocalizedNamein interfaceHistoricTaskInstanceEntity
-
getDescription
Description copied from interface:TaskInfoFree text description of the task.- Specified by:
getDescriptionin interfaceTaskInfo
-
setDescription
- Specified by:
setDescriptionin interfaceHistoricTaskInstanceEntity
-
setLocalizedDescription
Description copied from interface:HistoricTaskInstanceEntitySets an optional localized description for the task.- Specified by:
setLocalizedDescriptionin interfaceHistoricTaskInstanceEntity
-
getAssignee
Description copied from interface:TaskInfoThe user id of the person to which this task is delegated.- Specified by:
getAssigneein interfaceTaskInfo
-
setAssignee
- Specified by:
setAssigneein interfaceHistoricTaskInstanceEntity
-
getTaskDefinitionKey
Description copied from interface:TaskInfoThe id of the activity in the process defining this task or null if this is not related to a process- Specified by:
getTaskDefinitionKeyin interfaceTaskInfo
-
setTaskDefinitionKey
- Specified by:
setTaskDefinitionKeyin interfaceHistoricTaskInstanceEntity
-
getCreateTime
Description copied from interface:TaskInfoThe date/time when this task was created- Specified by:
getCreateTimein interfaceTaskInfo
-
getFormKey
Description copied from interface:TaskInfoThe form key for the user task- Specified by:
getFormKeyin interfaceTaskInfo
-
setFormKey
- Specified by:
setFormKeyin interfaceHistoricTaskInstanceEntity
-
getPriority
public int getPriority()Description copied from interface:TaskInfoIndication of how important/urgent this task is- Specified by:
getPriorityin interfaceTaskInfo
-
setPriority
public void setPriority(int priority) - Specified by:
setPriorityin interfaceHistoricTaskInstanceEntity
-
getInProgressStartDueDate
Description copied from interface:TaskInfoIn progress start due date of the task.- Specified by:
getInProgressStartDueDatein interfaceTaskInfo
-
setInProgressStartDueDate
- Specified by:
setInProgressStartDueDatein interfaceHistoricTaskInstanceEntity
-
getDueDate
Description copied from interface:TaskInfoDue date of the task.- Specified by:
getDueDatein interfaceTaskInfo
-
setDueDate
- Specified by:
setDueDatein interfaceHistoricTaskInstanceEntity
-
getCategory
Description copied from interface:TaskInfoThe category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.- Specified by:
getCategoryin interfaceTaskInfo
-
setCategory
- Specified by:
setCategoryin interfaceHistoricTaskInstanceEntity
-
getOwner
Description copied from interface:TaskInfoThe user id of the person that is responsible for this task. -
setOwner
- Specified by:
setOwnerin interfaceHistoricTaskInstanceEntity
-
getParentTaskId
Description copied from interface:TaskInfoThe parent task for which this task is a subtask- Specified by:
getParentTaskIdin interfaceTaskInfo
-
setParentTaskId
- Specified by:
setParentTaskIdin interfaceHistoricTaskInstanceEntity
-
getTenantId
Description copied from interface:TaskInfoThe tenant identifier of this task- Specified by:
getTenantIdin interfaceTaskInfo
-
setTenantId
- Specified by:
setTenantIdin interfaceHistoricTaskInstanceEntity
-
getTime
- Specified by:
getTimein interfaceHistoricData
-
getWorkTimeInMillis
Description copied from interface:HistoricTaskInstanceDifference betweenHistoricTaskInstance.getEndTime()andTaskInfo.getClaimTime()in milliseconds.- Specified by:
getWorkTimeInMillisin interfaceHistoricTaskInstance
-
getLastUpdateTime
- Specified by:
getLastUpdateTimein interfaceHistoricTaskInstanceEntity
-
setLastUpdateTime
- Specified by:
setLastUpdateTimein interfaceHistoricTaskInstanceEntity
-
getTaskLocalVariables
Description copied from interface:TaskInfoReturns the local task variables if requested in the task query- Specified by:
getTaskLocalVariablesin interfaceTaskInfo
-
getProcessVariables
Description copied from interface:TaskInfoReturns the process variables if requested in the task query- Specified by:
getProcessVariablesin interfaceTaskInfo
-
getCaseVariables
Description copied from interface:TaskInfoReturns the case variables if requested in the task query- Specified by:
getCaseVariablesin interfaceTaskInfo
-
getQueryVariables
- Specified by:
getQueryVariablesin interfaceHistoricTaskInstanceEntity
-
setQueryVariables
- Specified by:
setQueryVariablesin interfaceHistoricTaskInstanceEntity
-
getIdentityLinks
Description copied from interface:TaskInfoReturns the identity links.- Specified by:
getIdentityLinksin interfaceTaskInfo
-
getQueryIdentityLinks
-
setQueryIdentityLinks
-
getTaskServiceConfiguration
-
getIdentityLinkServiceConfiguration
-
getTaskEngineConfiguration
-
toString
-