Class HistoricTaskInstanceEntityImpl
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.AbstractEntityNoRevision
-
- org.activiti.engine.impl.persistence.entity.HistoricScopeInstanceEntityImpl
-
- org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntityImpl
-
- All Implemented Interfaces:
Serializable,HistoricData,HistoricTaskInstance,BulkDeleteable,Entity,HistoricScopeInstanceEntity,HistoricTaskInstanceEntity,TaskInfo
public class HistoricTaskInstanceEntityImpl extends HistoricScopeInstanceEntityImpl implements HistoricTaskInstanceEntity, BulkDeleteable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringassigneeprotected StringbusinessKeyprotected Stringcategoryprotected DateclaimTimeprotected Stringdescriptionprotected DatedueDateprotected StringexecutionIdprotected StringformKeyprotected StringlocalizedDescriptionprotected StringlocalizedNameprotected Stringnameprotected Stringownerprotected StringparentTaskIdprotected intpriorityprotected List<HistoricVariableInstanceEntity>queryVariablesprotected StringtaskDefinitionKeyprotected StringtenantId-
Fields inherited from class org.activiti.engine.impl.persistence.entity.HistoricScopeInstanceEntityImpl
deleteReason, durationInMillis, endTime, processDefinitionId, processInstanceId, startTime
-
Fields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntityNoRevision
id, isDeleted, isInserted, isUpdated
-
-
Constructor Summary
Constructors Constructor Description HistoricTaskInstanceEntityImpl()HistoricTaskInstanceEntityImpl(TaskEntity task, ExecutionEntity execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAssignee()The {@link User.getId() userId} of the person to which this task is delegated.StringgetBusinessKey()StringgetCategory()The category of the task.DategetClaimTime()Time when the task was claimed.DategetCreateTime()The date/time when this task was createdStringgetDescription()Free text description of the task.DategetDueDate()Due date of the task.StringgetExecutionId()Reference to the path of execution or null if it is not related to a process instance.StringgetFormKey()The form key for the user taskStringgetName()Name or title of the task.StringgetOwner()The {@link User.getId() userId} of the person that is responsible for this task.StringgetParentTaskId()The parent task for which this task is a subtaskObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.intgetPriority()Indication of how important/urgent this task isMap<String,Object>getProcessVariables()Returns the process variables if requested in the task queryList<HistoricVariableInstanceEntity>getQueryVariables()StringgetTaskDefinitionKey()The id of the activity in the process defining this task or null if this is not related to a processMap<String,Object>getTaskLocalVariables()Returns the local task variables if requested in the task queryStringgetTenantId()The tenant identifier of this taskDategetTime()LonggetWorkTimeInMillis()Difference betweenHistoricTaskInstance.getEndTime()andHistoricTaskInstance.getClaimTime()in milliseconds.voidsetAssignee(String assignee)voidsetBusinessKey(String businessKey)voidsetCategory(String category)voidsetClaimTime(Date claimTime)voidsetDescription(String description)voidsetDueDate(Date dueDate)voidsetExecutionId(String executionId)voidsetFormKey(String formKey)voidsetLocalizedDescription(String description)Sets an optional localized description for the task.voidsetLocalizedName(String name)Sets an optional localized name for the task.voidsetName(String name)voidsetOwner(String owner)voidsetParentTaskId(String parentTaskId)voidsetPriority(int priority)voidsetQueryVariables(List<HistoricVariableInstanceEntity> queryVariables)voidsetTaskDefinitionKey(String taskDefinitionKey)voidsetTenantId(String tenantId)-
Methods inherited from class org.activiti.engine.impl.persistence.entity.HistoricScopeInstanceEntityImpl
getDeleteReason, getDurationInMillis, getEndTime, getProcessDefinitionId, getProcessInstanceId, getStartTime, markEnded, setDeleteReason, setDurationInMillis, setEndTime, setProcessDefinitionId, setProcessInstanceId, setStartTime
-
Methods inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntityNoRevision
getId, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.Entity
getId, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setUpdated
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.HistoricScopeInstanceEntity
getDeleteReason, getDurationInMillis, getEndTime, getProcessDefinitionId, getProcessInstanceId, getStartTime, markEnded, setDeleteReason, setDurationInMillis, setEndTime, setProcessDefinitionId, setProcessInstanceId, setStartTime
-
Methods inherited from interface org.activiti.engine.history.HistoricTaskInstance
getDeleteReason, getDurationInMillis, getEndTime, getStartTime
-
Methods inherited from interface org.activiti.engine.task.TaskInfo
getId, getProcessDefinitionId, getProcessInstanceId
-
-
-
-
Field Detail
-
executionId
protected String executionId
-
name
protected String name
-
localizedName
protected String localizedName
-
parentTaskId
protected String parentTaskId
-
description
protected String description
-
localizedDescription
protected String localizedDescription
-
owner
protected String owner
-
assignee
protected String assignee
-
taskDefinitionKey
protected String taskDefinitionKey
-
formKey
protected String formKey
-
priority
protected int priority
-
dueDate
protected Date dueDate
-
claimTime
protected Date claimTime
-
category
protected String category
-
tenantId
protected String tenantId
-
queryVariables
protected List<HistoricVariableInstanceEntity> queryVariables
-
businessKey
protected String businessKey
-
-
Constructor Detail
-
HistoricTaskInstanceEntityImpl
public HistoricTaskInstanceEntityImpl()
-
HistoricTaskInstanceEntityImpl
public HistoricTaskInstanceEntityImpl(TaskEntity task, ExecutionEntity execution)
-
-
Method Detail
-
getPersistentState
public Object 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
-
getExecutionId
public String 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
public void setExecutionId(String executionId)
- Specified by:
setExecutionIdin interfaceHistoricTaskInstanceEntity
-
getName
public String getName()
Description copied from interface:TaskInfoName or title of the task.
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceHistoricTaskInstanceEntity
-
setLocalizedName
public void setLocalizedName(String name)
Description copied from interface:HistoricTaskInstanceEntitySets an optional localized name for the task.- Specified by:
setLocalizedNamein interfaceHistoricTaskInstanceEntity
-
getDescription
public String getDescription()
Description copied from interface:TaskInfoFree text description of the task.- Specified by:
getDescriptionin interfaceTaskInfo
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceHistoricTaskInstanceEntity
-
setLocalizedDescription
public void setLocalizedDescription(String description)
Description copied from interface:HistoricTaskInstanceEntitySets an optional localized description for the task.- Specified by:
setLocalizedDescriptionin interfaceHistoricTaskInstanceEntity
-
getAssignee
public String getAssignee()
Description copied from interface:TaskInfoThe {@link User.getId() userId} of the person to which this task is delegated.- Specified by:
getAssigneein interfaceTaskInfo
-
setAssignee
public void setAssignee(String assignee)
- Specified by:
setAssigneein interfaceHistoricTaskInstanceEntity
-
getTaskDefinitionKey
public String 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
public void setTaskDefinitionKey(String taskDefinitionKey)
- Specified by:
setTaskDefinitionKeyin interfaceHistoricTaskInstanceEntity
-
getCreateTime
public Date getCreateTime()
Description copied from interface:TaskInfoThe date/time when this task was created- Specified by:
getCreateTimein interfaceTaskInfo
-
getFormKey
public String getFormKey()
Description copied from interface:TaskInfoThe form key for the user task- Specified by:
getFormKeyin interfaceTaskInfo
-
setFormKey
public void setFormKey(String formKey)
- 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
-
getDueDate
public Date getDueDate()
Description copied from interface:TaskInfoDue date of the task.- Specified by:
getDueDatein interfaceTaskInfo
-
setDueDate
public void setDueDate(Date dueDate)
- Specified by:
setDueDatein interfaceHistoricTaskInstanceEntity
-
getCategory
public String 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
public void setCategory(String category)
- Specified by:
setCategoryin interfaceHistoricTaskInstanceEntity
-
getOwner
public String getOwner()
Description copied from interface:TaskInfoThe {@link User.getId() userId} of the person that is responsible for this task.
-
setOwner
public void setOwner(String owner)
- Specified by:
setOwnerin interfaceHistoricTaskInstanceEntity
-
getParentTaskId
public String getParentTaskId()
Description copied from interface:TaskInfoThe parent task for which this task is a subtask- Specified by:
getParentTaskIdin interfaceTaskInfo
-
setParentTaskId
public void setParentTaskId(String parentTaskId)
- Specified by:
setParentTaskIdin interfaceHistoricTaskInstanceEntity
-
getClaimTime
public Date getClaimTime()
Description copied from interface:HistoricTaskInstanceTime when the task was claimed.- Specified by:
getClaimTimein interfaceHistoricTaskInstance- Specified by:
getClaimTimein interfaceTaskInfo
-
setClaimTime
public void setClaimTime(Date claimTime)
- Specified by:
setClaimTimein interfaceHistoricTaskInstanceEntity
-
getTenantId
public String getTenantId()
Description copied from interface:TaskInfoThe tenant identifier of this task- Specified by:
getTenantIdin interfaceTaskInfo
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceHistoricTaskInstanceEntity
-
getTime
public Date getTime()
- Specified by:
getTimein interfaceHistoricData
-
getBusinessKey
public String getBusinessKey()
- Specified by:
getBusinessKeyin interfaceTaskInfo
-
setBusinessKey
public void setBusinessKey(String businessKey)
-
getWorkTimeInMillis
public Long getWorkTimeInMillis()
Description copied from interface:HistoricTaskInstanceDifference betweenHistoricTaskInstance.getEndTime()andHistoricTaskInstance.getClaimTime()in milliseconds.- Specified by:
getWorkTimeInMillisin interfaceHistoricTaskInstance
-
getTaskLocalVariables
public Map<String,Object> getTaskLocalVariables()
Description copied from interface:TaskInfoReturns the local task variables if requested in the task query- Specified by:
getTaskLocalVariablesin interfaceTaskInfo
-
getProcessVariables
public Map<String,Object> getProcessVariables()
Description copied from interface:TaskInfoReturns the process variables if requested in the task query- Specified by:
getProcessVariablesin interfaceTaskInfo
-
getQueryVariables
public List<HistoricVariableInstanceEntity> getQueryVariables()
- Specified by:
getQueryVariablesin interfaceHistoricTaskInstanceEntity
-
setQueryVariables
public void setQueryVariables(List<HistoricVariableInstanceEntity> queryVariables)
- Specified by:
setQueryVariablesin interfaceHistoricTaskInstanceEntity
-
-