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 String
protected String
protected String
protected Date
protected String
protected Date
protected String
protected String
protected Date
protected Long
protected Date
protected String
protected String
protected List<HistoricIdentityLinkEntity>
protected Date
protected String
protected Date
protected boolean
protected Date
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected List<HistoricIdentityLinkEntity>
protected List<HistoricVariableInstanceEntity>
protected String
protected String
protected String
protected String
protected String
protected String
protected Date
protected String
protected String
protected String
Fields 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 IdentityLinkServiceConfiguration
In 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.int
Indication 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 AbstractEngineConfiguration
Returns the local task variables if requested in the task queryprotected TaskServiceConfiguration
The tenant identifier of this taskgetTime()
Difference betweenHistoricTaskInstance.getEndTime()
andTaskInfo.getClaimTime()
in milliseconds.void
void
setAssignee
(String assignee) void
setCategory
(String category) void
setClaimedBy
(String claimedBy) void
setClaimTime
(Date claimTime) void
setCompletedBy
(String completedBy) void
setCreateTime
(Date createTime) void
setDeleteReason
(String deleteReason) void
setDescription
(String description) void
setDueDate
(Date dueDate) void
setDurationInMillis
(Long durationInMillis) void
setEndTime
(Date endTime) void
setExecutionId
(String executionId) void
setFormKey
(String formKey) void
setInProgressStartDueDate
(Date inProgressStartDueDate) void
setInProgressStartedBy
(String inProgressStartedBy) void
setInProgressStartTime
(Date inProgressStartTime) void
setLastUpdateTime
(Date lastUpdateTime) void
setLocalizedDescription
(String description) Sets an optional localized description for the task.void
setLocalizedName
(String name) Sets an optional localized name for the task.void
void
void
setParentTaskId
(String parentTaskId) void
setPriority
(int priority) void
setProcessDefinitionId
(String processDefinitionId) void
setProcessInstanceId
(String processInstanceId) void
setQueryIdentityLinks
(List<HistoricIdentityLinkEntity> identityLinks) void
setQueryVariables
(List<HistoricVariableInstanceEntity> queryVariables) void
setScopeDefinitionId
(String scopeDefinitionId) void
setScopeId
(String scopeId) void
setScopeType
(String scopeType) void
void
setSubScopeId
(String subScopeId) void
setSuspendedBy
(String suspendedBy) void
setSuspendedTime
(Date suspendedTime) void
setTaskDefinitionId
(String taskDefinitionId) void
setTaskDefinitionKey
(String taskDefinitionKey) void
setTenantId
(String tenantId) toString()
Methods inherited from class org.flowable.task.service.impl.persistence.entity.AbstractTaskServiceEntity
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
Methods 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: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
-
markEnded
- Specified by:
markEnded
in interfaceHistoricTaskInstanceEntity
-
getExecutionId
Description copied from interface:TaskInfo
Reference to the path of execution or null if it is not related to a process instance.- Specified by:
getExecutionId
in interfaceTaskInfo
-
setExecutionId
- Specified by:
setExecutionId
in interfaceHistoricTaskInstanceEntity
-
getProcessInstanceId
Description copied from interface:TaskInfo
Reference to the process instance or null if it is not related to a process instance.- Specified by:
getProcessInstanceId
in interfaceTaskInfo
-
getProcessDefinitionId
Description copied from interface:TaskInfo
Reference to the process definition or null if it is not related to a process.- Specified by:
getProcessDefinitionId
in interfaceTaskInfo
-
getTaskDefinitionId
Description copied from interface:TaskInfo
Reference to the task definition or null if it is not related to any task definition.- Specified by:
getTaskDefinitionId
in interfaceTaskInfo
-
getScopeId
Description copied from interface:TaskInfo
Reference to a scope identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeId
in interfaceTaskInfo
-
setScopeId
- Specified by:
setScopeId
in interfaceHistoricTaskInstanceEntity
-
getSubScopeId
Description copied from interface:TaskInfo
Reference to a sub scope identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getSubScopeId
in interfaceTaskInfo
-
setSubScopeId
- Specified by:
setSubScopeId
in interfaceHistoricTaskInstanceEntity
-
getScopeType
Description copied from interface:TaskInfo
Reference to a scope type or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeType
in interfaceTaskInfo
-
setScopeType
- Specified by:
setScopeType
in interfaceHistoricTaskInstanceEntity
-
getScopeDefinitionId
Description copied from interface:TaskInfo
Reference to a scope definition identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeDefinitionId
in interfaceTaskInfo
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionId
in interfaceHistoricTaskInstanceEntity
-
getPropagatedStageInstanceId
Description copied from interface:TaskInfo
If 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:
getPropagatedStageInstanceId
in 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:TaskInfo
The state of this task -
getStartTime
Description copied from interface:HistoricTaskInstance
Time when the task created.- Specified by:
getStartTime
in interfaceHistoricTaskInstance
-
getInProgressStartTime
Description copied from interface:TaskInfo
The date/time when this task was put in progress- Specified by:
getInProgressStartTime
in interfaceTaskInfo
-
getInProgressStartedBy
Description copied from interface:TaskInfo
The user reference that put this task in progress- Specified by:
getInProgressStartedBy
in interfaceTaskInfo
-
getClaimTime
Description copied from interface:TaskInfo
The claim time of this task- Specified by:
getClaimTime
in interfaceTaskInfo
-
getClaimedBy
Description copied from interface:TaskInfo
The user reference that claimed this task- Specified by:
getClaimedBy
in interfaceTaskInfo
-
getSuspendedTime
Description copied from interface:TaskInfo
The suspended time of this task- Specified by:
getSuspendedTime
in interfaceTaskInfo
-
getSuspendedBy
Description copied from interface:TaskInfo
The user reference that suspended this task- Specified by:
getSuspendedBy
in interfaceTaskInfo
-
getEndTime
Description copied from interface:HistoricTaskInstance
Time when the task was deleted or completed.- Specified by:
getEndTime
in interfaceHistoricTaskInstance
-
getCompletedBy
Description copied from interface:HistoricTaskInstance
User reference that has completed the task.- Specified by:
getCompletedBy
in interfaceHistoricTaskInstance
-
getDurationInMillis
Description copied from interface:HistoricTaskInstance
Difference betweenHistoricTaskInstance.getEndTime()
andHistoricTaskInstance.getStartTime()
in milliseconds.- Specified by:
getDurationInMillis
in interfaceHistoricTaskInstance
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceHistoricTaskInstanceEntity
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionId
in interfaceHistoricTaskInstanceEntity
-
setTaskDefinitionId
- Specified by:
setTaskDefinitionId
in interfaceHistoricTaskInstanceEntity
-
setState
- Specified by:
setState
in interfaceHistoricTaskInstanceEntity
-
setCreateTime
- Specified by:
setCreateTime
in interfaceHistoricTaskInstanceEntity
-
setInProgressStartTime
- Specified by:
setInProgressStartTime
in interfaceHistoricTaskInstanceEntity
-
setInProgressStartedBy
- Specified by:
setInProgressStartedBy
in interfaceHistoricTaskInstanceEntity
-
setClaimTime
- Specified by:
setClaimTime
in interfaceHistoricTaskInstanceEntity
-
setClaimedBy
- Specified by:
setClaimedBy
in interfaceHistoricTaskInstanceEntity
-
setSuspendedTime
- Specified by:
setSuspendedTime
in interfaceHistoricTaskInstanceEntity
-
setSuspendedBy
- Specified by:
setSuspendedBy
in interfaceHistoricTaskInstanceEntity
-
setEndTime
- Specified by:
setEndTime
in interfaceHistoricTaskInstanceEntity
-
setCompletedBy
- Specified by:
setCompletedBy
in interfaceHistoricTaskInstanceEntity
-
setDurationInMillis
- Specified by:
setDurationInMillis
in interfaceHistoricTaskInstanceEntity
-
getDeleteReason
Description copied from interface:HistoricTaskInstance
The reason why this task was deleted {'completed' | 'deleted' | any other user defined string }.- Specified by:
getDeleteReason
in interfaceHistoricTaskInstance
-
setDeleteReason
- Specified by:
setDeleteReason
in interfaceHistoricTaskInstanceEntity
-
getName
Description copied from interface:TaskInfo
Name or title of the task. -
setName
- Specified by:
setName
in interfaceHistoricTaskInstanceEntity
-
setLocalizedName
Description copied from interface:HistoricTaskInstanceEntity
Sets an optional localized name for the task.- Specified by:
setLocalizedName
in interfaceHistoricTaskInstanceEntity
-
getDescription
Description copied from interface:TaskInfo
Free text description of the task.- Specified by:
getDescription
in interfaceTaskInfo
-
setDescription
- Specified by:
setDescription
in interfaceHistoricTaskInstanceEntity
-
setLocalizedDescription
Description copied from interface:HistoricTaskInstanceEntity
Sets an optional localized description for the task.- Specified by:
setLocalizedDescription
in interfaceHistoricTaskInstanceEntity
-
getAssignee
Description copied from interface:TaskInfo
The user id of the person to which this task is delegated.- Specified by:
getAssignee
in interfaceTaskInfo
-
setAssignee
- Specified by:
setAssignee
in interfaceHistoricTaskInstanceEntity
-
getTaskDefinitionKey
Description copied from interface:TaskInfo
The id of the activity in the process defining this task or null if this is not related to a process- Specified by:
getTaskDefinitionKey
in interfaceTaskInfo
-
setTaskDefinitionKey
- Specified by:
setTaskDefinitionKey
in interfaceHistoricTaskInstanceEntity
-
getCreateTime
Description copied from interface:TaskInfo
The date/time when this task was created- Specified by:
getCreateTime
in interfaceTaskInfo
-
getFormKey
Description copied from interface:TaskInfo
The form key for the user task- Specified by:
getFormKey
in interfaceTaskInfo
-
setFormKey
- Specified by:
setFormKey
in interfaceHistoricTaskInstanceEntity
-
getPriority
public int getPriority()Description copied from interface:TaskInfo
Indication of how important/urgent this task is- Specified by:
getPriority
in interfaceTaskInfo
-
setPriority
public void setPriority(int priority) - Specified by:
setPriority
in interfaceHistoricTaskInstanceEntity
-
getInProgressStartDueDate
Description copied from interface:TaskInfo
In progress start due date of the task.- Specified by:
getInProgressStartDueDate
in interfaceTaskInfo
-
setInProgressStartDueDate
- Specified by:
setInProgressStartDueDate
in interfaceHistoricTaskInstanceEntity
-
getDueDate
Description copied from interface:TaskInfo
Due date of the task.- Specified by:
getDueDate
in interfaceTaskInfo
-
setDueDate
- Specified by:
setDueDate
in interfaceHistoricTaskInstanceEntity
-
getCategory
Description copied from interface:TaskInfo
The category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.- Specified by:
getCategory
in interfaceTaskInfo
-
setCategory
- Specified by:
setCategory
in interfaceHistoricTaskInstanceEntity
-
getOwner
Description copied from interface:TaskInfo
The user id of the person that is responsible for this task. -
setOwner
- Specified by:
setOwner
in interfaceHistoricTaskInstanceEntity
-
getParentTaskId
Description copied from interface:TaskInfo
The parent task for which this task is a subtask- Specified by:
getParentTaskId
in interfaceTaskInfo
-
setParentTaskId
- Specified by:
setParentTaskId
in interfaceHistoricTaskInstanceEntity
-
getTenantId
Description copied from interface:TaskInfo
The tenant identifier of this task- Specified by:
getTenantId
in interfaceTaskInfo
-
setTenantId
- Specified by:
setTenantId
in interfaceHistoricTaskInstanceEntity
-
getTime
- Specified by:
getTime
in interfaceHistoricData
-
getWorkTimeInMillis
Description copied from interface:HistoricTaskInstance
Difference betweenHistoricTaskInstance.getEndTime()
andTaskInfo.getClaimTime()
in milliseconds.- Specified by:
getWorkTimeInMillis
in interfaceHistoricTaskInstance
-
getLastUpdateTime
- Specified by:
getLastUpdateTime
in interfaceHistoricTaskInstanceEntity
-
setLastUpdateTime
- Specified by:
setLastUpdateTime
in interfaceHistoricTaskInstanceEntity
-
getTaskLocalVariables
Description copied from interface:TaskInfo
Returns the local task variables if requested in the task query- Specified by:
getTaskLocalVariables
in interfaceTaskInfo
-
getProcessVariables
Description copied from interface:TaskInfo
Returns the process variables if requested in the task query- Specified by:
getProcessVariables
in interfaceTaskInfo
-
getCaseVariables
Description copied from interface:TaskInfo
Returns the case variables if requested in the task query- Specified by:
getCaseVariables
in interfaceTaskInfo
-
getQueryVariables
- Specified by:
getQueryVariables
in interfaceHistoricTaskInstanceEntity
-
setQueryVariables
- Specified by:
setQueryVariables
in interfaceHistoricTaskInstanceEntity
-
getIdentityLinks
Description copied from interface:TaskInfo
Returns the identity links.- Specified by:
getIdentityLinks
in interfaceTaskInfo
-
getQueryIdentityLinks
-
setQueryIdentityLinks
-
getTaskServiceConfiguration
-
getIdentityLinkServiceConfiguration
-
getTaskEngineConfiguration
-
toString
-