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:
java.io.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 java.lang.Stringassigneeprotected java.lang.StringbusinessKeyprotected java.lang.Stringcategoryprotected java.util.DateclaimTimeprotected java.lang.Stringdescriptionprotected java.util.DatedueDateprotected java.lang.StringexecutionIdprotected java.lang.StringformKeyprotected java.lang.StringlocalizedDescriptionprotected java.lang.StringlocalizedNameprotected java.lang.Stringnameprotected java.lang.Stringownerprotected java.lang.StringparentTaskIdprotected intpriorityprotected java.util.List<HistoricVariableInstanceEntity>queryVariablesprotected java.lang.StringtaskDefinitionKeyprotected java.lang.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 java.lang.StringgetAssignee()The {@link User.getId() userId} of the person to which this task is delegated.java.lang.StringgetBusinessKey()java.lang.StringgetCategory()The category of the task.java.util.DategetClaimTime()Time when the task was claimed.java.util.DategetCreateTime()The date/time when this task was createdjava.lang.StringgetDescription()Free text description of the task.java.util.DategetDueDate()Due date of the task.java.lang.StringgetExecutionId()Reference to the path of execution or null if it is not related to a process instance.java.lang.StringgetFormKey()The form key for the user taskjava.lang.StringgetName()Name or title of the task.java.lang.StringgetOwner()The {@link User.getId() userId} of the person that is responsible for this task.java.lang.StringgetParentTaskId()The parent task for which this task is a subtaskjava.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.intgetPriority()Indication of how important/urgent this task isjava.util.Map<java.lang.String,java.lang.Object>getProcessVariables()Returns the process variables if requested in the task queryjava.util.List<HistoricVariableInstanceEntity>getQueryVariables()java.lang.StringgetTaskDefinitionKey()The id of the activity in the process defining this task or null if this is not related to a processjava.util.Map<java.lang.String,java.lang.Object>getTaskLocalVariables()Returns the local task variables if requested in the task queryjava.lang.StringgetTenantId()The tenant identifier of this taskjava.util.DategetTime()java.lang.LonggetWorkTimeInMillis()Difference betweenHistoricTaskInstance.getEndTime()andHistoricTaskInstance.getClaimTime()in milliseconds.voidsetAssignee(java.lang.String assignee)voidsetBusinessKey(java.lang.String businessKey)voidsetCategory(java.lang.String category)voidsetClaimTime(java.util.Date claimTime)voidsetDescription(java.lang.String description)voidsetDueDate(java.util.Date dueDate)voidsetExecutionId(java.lang.String executionId)voidsetFormKey(java.lang.String formKey)voidsetLocalizedDescription(java.lang.String description)Sets an optional localized description for the task.voidsetLocalizedName(java.lang.String name)Sets an optional localized name for the task.voidsetName(java.lang.String name)voidsetOwner(java.lang.String owner)voidsetParentTaskId(java.lang.String parentTaskId)voidsetPriority(int priority)voidsetQueryVariables(java.util.List<HistoricVariableInstanceEntity> queryVariables)voidsetTaskDefinitionKey(java.lang.String taskDefinitionKey)voidsetTenantId(java.lang.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 java.lang.String executionId
-
name
protected java.lang.String name
-
localizedName
protected java.lang.String localizedName
-
parentTaskId
protected java.lang.String parentTaskId
-
description
protected java.lang.String description
-
localizedDescription
protected java.lang.String localizedDescription
-
owner
protected java.lang.String owner
-
assignee
protected java.lang.String assignee
-
taskDefinitionKey
protected java.lang.String taskDefinitionKey
-
formKey
protected java.lang.String formKey
-
priority
protected int priority
-
dueDate
protected java.util.Date dueDate
-
claimTime
protected java.util.Date claimTime
-
category
protected java.lang.String category
-
tenantId
protected java.lang.String tenantId
-
queryVariables
protected java.util.List<HistoricVariableInstanceEntity> queryVariables
-
businessKey
protected java.lang.String businessKey
-
-
Constructor Detail
-
HistoricTaskInstanceEntityImpl
public HistoricTaskInstanceEntityImpl()
-
HistoricTaskInstanceEntityImpl
public HistoricTaskInstanceEntityImpl(TaskEntity task, ExecutionEntity execution)
-
-
Method Detail
-
getPersistentState
public java.lang.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 java.lang.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(java.lang.String executionId)
- Specified by:
setExecutionIdin interfaceHistoricTaskInstanceEntity
-
getName
public java.lang.String getName()
Description copied from interface:TaskInfoName or title of the task.
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceHistoricTaskInstanceEntity
-
setLocalizedName
public void setLocalizedName(java.lang.String name)
Description copied from interface:HistoricTaskInstanceEntitySets an optional localized name for the task.- Specified by:
setLocalizedNamein interfaceHistoricTaskInstanceEntity
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TaskInfoFree text description of the task.- Specified by:
getDescriptionin interfaceTaskInfo
-
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescriptionin interfaceHistoricTaskInstanceEntity
-
setLocalizedDescription
public void setLocalizedDescription(java.lang.String description)
Description copied from interface:HistoricTaskInstanceEntitySets an optional localized description for the task.- Specified by:
setLocalizedDescriptionin interfaceHistoricTaskInstanceEntity
-
getAssignee
public java.lang.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(java.lang.String assignee)
- Specified by:
setAssigneein interfaceHistoricTaskInstanceEntity
-
getTaskDefinitionKey
public java.lang.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(java.lang.String taskDefinitionKey)
- Specified by:
setTaskDefinitionKeyin interfaceHistoricTaskInstanceEntity
-
getCreateTime
public java.util.Date getCreateTime()
Description copied from interface:TaskInfoThe date/time when this task was created- Specified by:
getCreateTimein interfaceTaskInfo
-
getFormKey
public java.lang.String getFormKey()
Description copied from interface:TaskInfoThe form key for the user task- Specified by:
getFormKeyin interfaceTaskInfo
-
setFormKey
public void setFormKey(java.lang.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 java.util.Date getDueDate()
Description copied from interface:TaskInfoDue date of the task.- Specified by:
getDueDatein interfaceTaskInfo
-
setDueDate
public void setDueDate(java.util.Date dueDate)
- Specified by:
setDueDatein interfaceHistoricTaskInstanceEntity
-
getCategory
public java.lang.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(java.lang.String category)
- Specified by:
setCategoryin interfaceHistoricTaskInstanceEntity
-
getOwner
public java.lang.String getOwner()
Description copied from interface:TaskInfoThe {@link User.getId() userId} of the person that is responsible for this task.
-
setOwner
public void setOwner(java.lang.String owner)
- Specified by:
setOwnerin interfaceHistoricTaskInstanceEntity
-
getParentTaskId
public java.lang.String getParentTaskId()
Description copied from interface:TaskInfoThe parent task for which this task is a subtask- Specified by:
getParentTaskIdin interfaceTaskInfo
-
setParentTaskId
public void setParentTaskId(java.lang.String parentTaskId)
- Specified by:
setParentTaskIdin interfaceHistoricTaskInstanceEntity
-
getClaimTime
public java.util.Date getClaimTime()
Description copied from interface:HistoricTaskInstanceTime when the task was claimed.- Specified by:
getClaimTimein interfaceHistoricTaskInstance- Specified by:
getClaimTimein interfaceTaskInfo
-
setClaimTime
public void setClaimTime(java.util.Date claimTime)
- Specified by:
setClaimTimein interfaceHistoricTaskInstanceEntity
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:TaskInfoThe tenant identifier of this task- Specified by:
getTenantIdin interfaceTaskInfo
-
setTenantId
public void setTenantId(java.lang.String tenantId)
- Specified by:
setTenantIdin interfaceHistoricTaskInstanceEntity
-
getTime
public java.util.Date getTime()
- Specified by:
getTimein interfaceHistoricData
-
getBusinessKey
public java.lang.String getBusinessKey()
- Specified by:
getBusinessKeyin interfaceTaskInfo
-
setBusinessKey
public void setBusinessKey(java.lang.String businessKey)
-
getWorkTimeInMillis
public java.lang.Long getWorkTimeInMillis()
Description copied from interface:HistoricTaskInstanceDifference betweenHistoricTaskInstance.getEndTime()andHistoricTaskInstance.getClaimTime()in milliseconds.- Specified by:
getWorkTimeInMillisin interfaceHistoricTaskInstance
-
getTaskLocalVariables
public java.util.Map<java.lang.String,java.lang.Object> getTaskLocalVariables()
Description copied from interface:TaskInfoReturns the local task variables if requested in the task query- Specified by:
getTaskLocalVariablesin interfaceTaskInfo
-
getProcessVariables
public java.util.Map<java.lang.String,java.lang.Object> getProcessVariables()
Description copied from interface:TaskInfoReturns the process variables if requested in the task query- Specified by:
getProcessVariablesin interfaceTaskInfo
-
getQueryVariables
public java.util.List<HistoricVariableInstanceEntity> getQueryVariables()
- Specified by:
getQueryVariablesin interfaceHistoricTaskInstanceEntity
-
setQueryVariables
public void setQueryVariables(java.util.List<HistoricVariableInstanceEntity> queryVariables)
- Specified by:
setQueryVariablesin interfaceHistoricTaskInstanceEntity
-
-