Class TaskEntityImpl
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.AbstractEntity
-
- org.activiti.engine.impl.persistence.entity.VariableScopeImpl
-
- org.activiti.engine.impl.persistence.entity.TaskEntityImpl
-
- All Implemented Interfaces:
java.io.Serializable,DelegateTask,VariableScope,BulkDeleteable,HasRevision,Entity,TaskEntity,Task,TaskInfo
public class TaskEntityImpl extends VariableScopeImpl implements TaskEntity, java.io.Serializable, BulkDeleteable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.IntegerappVersionprotected java.lang.Stringassigneeprotected intassigneeUpdatedCountprotected java.lang.StringbusinessKeyprotected java.lang.Stringcategoryprotected java.util.DateclaimTimeprotected java.util.DatecreateTimeprotected org.activiti.bpmn.model.ActivitiListenercurrentActivitiListenerprotected DelegationStatedelegationStatestatic java.lang.StringDELETE_REASON_COMPLETEDstatic java.lang.StringDELETE_REASON_DELETEDprotected java.lang.Stringdescriptionprotected java.util.DatedueDateprotected java.lang.StringeventNameprotected ExecutionEntityexecutionprotected java.lang.StringexecutionIdprotected booleanforcedUpdateprotected java.lang.StringformKeyprotected booleanisCanceledprotected booleanisDeletedprotected booleanisIdentityLinksInitializedprotected java.lang.StringlocalizedDescriptionprotected java.lang.StringlocalizedNameprotected java.lang.Stringnameprotected java.lang.StringoriginalAssigneeprotected java.lang.Stringownerprotected java.lang.StringparentTaskIdprotected intpriorityprotected java.lang.StringprocessDefinitionIdprotected ExecutionEntityprocessInstanceprotected java.lang.StringprocessInstanceIdprotected java.util.List<VariableInstanceEntity>queryVariablesprotected intsuspensionStateprotected java.lang.StringtaskDefinitionKeyprotected java.util.List<IdentityLinkEntity>taskIdentityLinkEntitiesprotected java.lang.StringtenantId-
Fields inherited from class org.activiti.engine.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariabes, usedVariablesCache, variableInstances
-
Fields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
id, isInserted, isUpdated, revision
-
Fields inherited from interface org.activiti.engine.task.Task
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description TaskEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCandidateGroup(java.lang.String groupId)Adds the given group as candidate group to this taskvoidaddCandidateGroups(java.util.Collection<java.lang.String> candidateGroups)Adds multiple groups as candidate group to this task.voidaddCandidateUser(java.lang.String userId)Adds the given user as a candidate user to this task.voidaddCandidateUsers(java.util.Collection<java.lang.String> candidateUsers)Adds multiple users as candidate user to this task.voidaddGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Involves a group with group task.voidaddUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Involves a user with a task.protected VariableInstanceEntitycreateVariableInstance(java.lang.String variableName, java.lang.Object value, ExecutionEntity sourceActivityExecution)voiddeleteCandidateGroup(java.lang.String groupId)Convenience shorthand for#deleteGroupIdentityLink(String, String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteCandidateUser(java.lang.String userId)Convenience shorthand forDelegateTask.deleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Removes the association between a group and a task for the given identityLinkType.voiddeleteUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Removes the association between a user and a task for the given identityLinkType.voidforceUpdate()java.lang.IntegergetAppVersion()java.lang.StringgetAssignee()The {@link User.getId() userId} of the person to which this task is delegated.java.lang.StringgetBusinessKey()java.util.Set<IdentityLink>getCandidates()Retrieves the candidate users and groups associated with the task.java.lang.StringgetCategory()The category of the task.java.util.DategetClaimTime()The claim time of this taskjava.util.DategetCreateTime()The date/time when this task was createdorg.activiti.bpmn.model.ActivitiListenergetCurrentActivitiListener()DelegationStategetDelegationState()The currentDelegationStatefor this task.java.lang.StringgetDelegationStateString()java.lang.StringgetDescription()Free text description of the task.java.util.DategetDueDate()Due date of the task.java.lang.StringgetEventName()Returns the event name which triggered the task listener to fire for this task.ExecutionEntitygetExecution()Returns the execution currently at 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.util.List<IdentityLinkEntity>getIdentityLinks()java.lang.StringgetLocalizedDescription()java.lang.StringgetLocalizedName()java.lang.StringgetName()Name or title of the task.java.lang.StringgetOriginalAssignee()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 subtaskprotected VariableScopeImplgetParentVariableScope()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.intgetPriority()Indication of how important/urgent this task isjava.lang.StringgetProcessDefinitionId()Reference to the process definition or null if it is not related to a process.ExecutionEntitygetProcessInstance()java.lang.StringgetProcessInstanceId()Reference to the process instance or null if it is not related to a process instance.java.util.Map<java.lang.String,java.lang.Object>getProcessVariables()Returns the process variables if requested in the task queryjava.util.List<VariableInstanceEntity>getQueryVariables()intgetRevision()intgetRevisionNext()protected VariableInstanceEntitygetSpecificVariable(java.lang.String variableName)protected java.util.List<VariableInstanceEntity>getSpecificVariables(java.util.Collection<java.lang.String> variableNames)intgetSuspensionState()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.Map<java.lang.String,VariableInstanceEntity>getVariableInstanceEntities()protected voidinitializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)protected booleanisActivityIdUsedForDetails()Execution variable updates have activity instance ids, but historic task variable updates don't.booleanisCanceled()booleanisDeleted()booleanisSuspended()Indicates whether this task is suspended or not.protected java.util.List<VariableInstanceEntity>loadVariableInstances()voidsetAppVersion(java.lang.Integer appVersion)voidsetAssignee(java.lang.String assignee)The {@link User.getId() userId} of the person to which this task is delegated.voidsetBusinessKey(java.lang.String businessKey)voidsetCanceled(boolean isCanceled)voidsetCategory(java.lang.String category)Change the category of the task.voidsetClaimTime(java.util.Date claimTime)voidsetCreateTime(java.util.Date createTime)voidsetCurrentActivitiListener(org.activiti.bpmn.model.ActivitiListener currentActivitiListener)voidsetDelegationState(DelegationState delegationState)The currentDelegationStatefor this task.voidsetDelegationStateString(java.lang.String delegationStateString)voidsetDeleted(boolean isDeleted)voidsetDescription(java.lang.String description)Change the description of the taskvoidsetDueDate(java.util.Date dueDate)Change due date of the task.voidsetEventName(java.lang.String eventName)voidsetExecution(ExecutionEntity execution)voidsetExecutionId(java.lang.String executionId)voidsetExecutionVariables(java.util.Map<java.lang.String,java.lang.Object> parameters)voidsetFormKey(java.lang.String formKey)Change the form key of the taskvoidsetLocalizedDescription(java.lang.String localizedDescription)Sets an optional localized description for the task.voidsetLocalizedName(java.lang.String localizedName)Sets an optional localized name for the task.voidsetName(java.lang.String taskName)Name or title of the task.voidsetOwner(java.lang.String owner)The {@link User.getId() userId} of the person that is responsible for this task.voidsetParentTaskId(java.lang.String parentTaskId)the parent task for which this task is a subtaskvoidsetPriority(int priority)Sets the indication of how important/urgent this task isvoidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessInstance(ExecutionEntity processInstance)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetQueryVariables(java.util.List<VariableInstanceEntity> queryVariables)voidsetRevision(int revision)voidsetSuspensionState(int suspensionState)voidsetTaskDefinitionKey(java.lang.String taskDefinitionKey)voidsetTenantId(java.lang.String tenantId)Change the tenantId of the taskjava.lang.StringtoString()protected voidupdateVariableInstance(VariableInstanceEntity variableInstance, java.lang.Object value, ExecutionEntity sourceActivityExecution)-
Methods inherited from class org.activiti.engine.impl.persistence.entity.VariableScopeImpl
collectTransientVariables, collectVariableInstances, collectVariableNames, collectVariables, createVariableLocal, createVariableLocal, createVariablesLocal, deleteVariableInstanceForExplicitUserCall, ensureVariableInstancesInitialized, getCachedElContext, getSourceActivityExecution, getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getUsedVariablesCache, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
-
Methods inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
getId, isInserted, isUpdated, setId, setInserted, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.delegate.DelegateTask
getId
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.Entity
getId, isInserted, isUpdated, setId, setInserted, setUpdated
-
Methods inherited from interface org.activiti.engine.delegate.VariableScope
getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
-
-
-
-
Field Detail
-
DELETE_REASON_COMPLETED
public static final java.lang.String DELETE_REASON_COMPLETED
- See Also:
- Constant Field Values
-
DELETE_REASON_DELETED
public static final java.lang.String DELETE_REASON_DELETED
- See Also:
- Constant Field Values
-
owner
protected java.lang.String owner
-
assigneeUpdatedCount
protected int assigneeUpdatedCount
-
originalAssignee
protected java.lang.String originalAssignee
-
assignee
protected java.lang.String assignee
-
delegationState
protected DelegationState delegationState
-
parentTaskId
protected java.lang.String parentTaskId
-
name
protected java.lang.String name
-
localizedName
protected java.lang.String localizedName
-
description
protected java.lang.String description
-
localizedDescription
protected java.lang.String localizedDescription
-
priority
protected int priority
-
createTime
protected java.util.Date createTime
-
dueDate
protected java.util.Date dueDate
-
suspensionState
protected int suspensionState
-
category
protected java.lang.String category
-
isIdentityLinksInitialized
protected boolean isIdentityLinksInitialized
-
taskIdentityLinkEntities
protected java.util.List<IdentityLinkEntity> taskIdentityLinkEntities
-
executionId
protected java.lang.String executionId
-
execution
protected ExecutionEntity execution
-
processInstanceId
protected java.lang.String processInstanceId
-
processInstance
protected ExecutionEntity processInstance
-
processDefinitionId
protected java.lang.String processDefinitionId
-
taskDefinitionKey
protected java.lang.String taskDefinitionKey
-
formKey
protected java.lang.String formKey
-
isDeleted
protected boolean isDeleted
-
isCanceled
protected boolean isCanceled
-
eventName
protected java.lang.String eventName
-
currentActivitiListener
protected org.activiti.bpmn.model.ActivitiListener currentActivitiListener
-
tenantId
protected java.lang.String tenantId
-
queryVariables
protected java.util.List<VariableInstanceEntity> queryVariables
-
forcedUpdate
protected boolean forcedUpdate
-
claimTime
protected java.util.Date claimTime
-
appVersion
protected java.lang.Integer appVersion
-
businessKey
protected java.lang.String businessKey
-
-
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
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasRevision- Overrides:
getRevisionNextin classAbstractEntity
-
forceUpdate
public void forceUpdate()
- Specified by:
forceUpdatein interfaceTaskEntity
-
getParentVariableScope
protected VariableScopeImpl getParentVariableScope()
- Specified by:
getParentVariableScopein classVariableScopeImpl
-
initializeVariableInstanceBackPointer
protected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
- Specified by:
initializeVariableInstanceBackPointerin classVariableScopeImpl
-
loadVariableInstances
protected java.util.List<VariableInstanceEntity> loadVariableInstances()
- Specified by:
loadVariableInstancesin classVariableScopeImpl
-
createVariableInstance
protected VariableInstanceEntity createVariableInstance(java.lang.String variableName, java.lang.Object value, ExecutionEntity sourceActivityExecution)
- Overrides:
createVariableInstancein classVariableScopeImpl
-
updateVariableInstance
protected void updateVariableInstance(VariableInstanceEntity variableInstance, java.lang.Object value, ExecutionEntity sourceActivityExecution)
- Overrides:
updateVariableInstancein classVariableScopeImpl
-
getExecution
public ExecutionEntity getExecution()
Description copied from interface:DelegateTaskReturns the execution currently at the task.- Specified by:
getExecutionin interfaceDelegateTask- Specified by:
getExecutionin interfaceTaskEntity
-
addCandidateUser
public void addCandidateUser(java.lang.String userId)
Description copied from interface:DelegateTaskAdds the given user as a candidate user to this task.- Specified by:
addCandidateUserin interfaceDelegateTask
-
addCandidateUsers
public void addCandidateUsers(java.util.Collection<java.lang.String> candidateUsers)
Description copied from interface:DelegateTaskAdds multiple users as candidate user to this task.- Specified by:
addCandidateUsersin interfaceDelegateTask
-
addCandidateGroup
public void addCandidateGroup(java.lang.String groupId)
Description copied from interface:DelegateTaskAdds the given group as candidate group to this task- Specified by:
addCandidateGroupin interfaceDelegateTask
-
addCandidateGroups
public void addCandidateGroups(java.util.Collection<java.lang.String> candidateGroups)
Description copied from interface:DelegateTaskAdds multiple groups as candidate group to this task.- Specified by:
addCandidateGroupsin interfaceDelegateTask
-
addUserIdentityLink
public void addUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Description copied from interface:DelegateTaskInvolves a user with a task. The type of identity link is defined by the given identityLinkType.- Specified by:
addUserIdentityLinkin interfaceDelegateTask- Parameters:
userId- id of the user involve, cannot be null.identityLinkType- type of identityLink, cannot be null (@seeIdentityLinkType).
-
addGroupIdentityLink
public void addGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Description copied from interface:DelegateTaskInvolves a group with group task. The type of identityLink is defined by the given identityLink.- Specified by:
addGroupIdentityLinkin interfaceDelegateTask- Parameters:
groupId- id of the group to involve, cannot be null.identityLinkType- type of identity, cannot be null (@seeIdentityLinkType).
-
getCandidates
public java.util.Set<IdentityLink> getCandidates()
Description copied from interface:DelegateTaskRetrieves the candidate users and groups associated with the task.- Specified by:
getCandidatesin interfaceDelegateTask- Returns:
- set of
IdentityLinks of typeIdentityLinkType.CANDIDATE.
-
deleteCandidateGroup
public void deleteCandidateGroup(java.lang.String groupId)
Description copied from interface:DelegateTaskConvenience shorthand for#deleteGroupIdentityLink(String, String, String); with typeIdentityLinkType.CANDIDATE- Specified by:
deleteCandidateGroupin interfaceDelegateTask- Parameters:
groupId- id of the group to use as candidate, cannot be null.
-
deleteCandidateUser
public void deleteCandidateUser(java.lang.String userId)
Description copied from interface:DelegateTaskConvenience shorthand forDelegateTask.deleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATE- Specified by:
deleteCandidateUserin interfaceDelegateTask- Parameters:
userId- id of the user to use as candidate, cannot be null.
-
deleteGroupIdentityLink
public void deleteGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Description copied from interface:DelegateTaskRemoves the association between a group and a task for the given identityLinkType.- Specified by:
deleteGroupIdentityLinkin interfaceDelegateTask- Parameters:
groupId- id of the group to involve, cannot be null.identityLinkType- type of identity, cannot be null (@seeIdentityLinkType).
-
deleteUserIdentityLink
public void deleteUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Description copied from interface:DelegateTaskRemoves the association between a user and a task for the given identityLinkType.- Specified by:
deleteUserIdentityLinkin interfaceDelegateTask- Parameters:
userId- id of the user involve, cannot be null.identityLinkType- type of identityLink, cannot be null (@seeIdentityLinkType).
-
getIdentityLinks
public java.util.List<IdentityLinkEntity> getIdentityLinks()
- Specified by:
getIdentityLinksin interfaceTaskEntity
-
setExecutionVariables
public void setExecutionVariables(java.util.Map<java.lang.String,java.lang.Object> parameters)
- Specified by:
setExecutionVariablesin interfaceTaskEntity
-
setName
public void setName(java.lang.String taskName)
Description copied from interface:TaskName or title of the task.- Specified by:
setNamein interfaceDelegateTask- Specified by:
setNamein interfaceTask
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:TaskChange the description of the task- Specified by:
setDescriptionin interfaceDelegateTask- Specified by:
setDescriptionin interfaceTask
-
setAssignee
public void setAssignee(java.lang.String assignee)
Description copied from interface:TaskThe {@link User.getId() userId} of the person to which this task is delegated.- Specified by:
setAssigneein interfaceDelegateTask- Specified by:
setAssigneein interfaceTask
-
setOwner
public void setOwner(java.lang.String owner)
Description copied from interface:TaskThe {@link User.getId() userId} of the person that is responsible for this task.- Specified by:
setOwnerin interfaceDelegateTask- Specified by:
setOwnerin interfaceTask
-
setDueDate
public void setDueDate(java.util.Date dueDate)
Description copied from interface:TaskChange due date of the task.- Specified by:
setDueDatein interfaceDelegateTask- Specified by:
setDueDatein interfaceTask
-
setPriority
public void setPriority(int priority)
Description copied from interface:TaskSets the indication of how important/urgent this task is- Specified by:
setPriorityin interfaceDelegateTask- Specified by:
setPriorityin interfaceTask
-
setCategory
public void setCategory(java.lang.String category)
Description copied from interface:TaskChange the category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.- Specified by:
setCategoryin interfaceDelegateTask- Specified by:
setCategoryin interfaceTask
-
setParentTaskId
public void setParentTaskId(java.lang.String parentTaskId)
Description copied from interface:Taskthe parent task for which this task is a subtask- Specified by:
setParentTaskIdin interfaceTask
-
setBusinessKey
public void setBusinessKey(java.lang.String businessKey)
- Specified by:
setBusinessKeyin interfaceTaskEntity
-
getFormKey
public java.lang.String getFormKey()
Description copied from interface:TaskInfoThe form key for the user task- Specified by:
getFormKeyin interfaceDelegateTask- Specified by:
getFormKeyin interfaceTaskInfo
-
setFormKey
public void setFormKey(java.lang.String formKey)
Description copied from interface:TaskChange the form key of the task- Specified by:
setFormKeyin interfaceDelegateTask- Specified by:
setFormKeyin interfaceTask
-
isActivityIdUsedForDetails
protected boolean isActivityIdUsedForDetails()
Description copied from class:VariableScopeImplExecution variable updates have activity instance ids, but historic task variable updates don't.- Overrides:
isActivityIdUsedForDetailsin classVariableScopeImpl
-
getSpecificVariable
protected VariableInstanceEntity getSpecificVariable(java.lang.String variableName)
- Specified by:
getSpecificVariablein classVariableScopeImpl
-
getSpecificVariables
protected java.util.List<VariableInstanceEntity> getSpecificVariables(java.util.Collection<java.lang.String> variableNames)
- Specified by:
getSpecificVariablesin classVariableScopeImpl
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasRevision- Overrides:
getRevisionin classAbstractEntity
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasRevision- Overrides:
setRevisionin classAbstractEntity
-
getName
public java.lang.String getName()
Description copied from interface:TaskInfoName or title of the task.- Specified by:
getNamein interfaceDelegateTask- Specified by:
getNamein interfaceTaskInfo
-
getLocalizedName
public java.lang.String getLocalizedName()
-
setLocalizedName
public void setLocalizedName(java.lang.String localizedName)
Description copied from interface:TaskSets an optional localized name for the task.- Specified by:
setLocalizedNamein interfaceTask
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TaskInfoFree text description of the task.- Specified by:
getDescriptionin interfaceDelegateTask- Specified by:
getDescriptionin interfaceTaskInfo
-
getLocalizedDescription
public java.lang.String getLocalizedDescription()
-
setLocalizedDescription
public void setLocalizedDescription(java.lang.String localizedDescription)
Description copied from interface:TaskSets an optional localized description for the task.- Specified by:
setLocalizedDescriptionin interfaceTask
-
getDueDate
public java.util.Date getDueDate()
Description copied from interface:TaskInfoDue date of the task.- Specified by:
getDueDatein interfaceDelegateTask- Specified by:
getDueDatein interfaceTaskInfo
-
getPriority
public int getPriority()
Description copied from interface:TaskInfoIndication of how important/urgent this task is- Specified by:
getPriorityin interfaceDelegateTask- Specified by:
getPriorityin interfaceTaskInfo
-
getCreateTime
public java.util.Date getCreateTime()
Description copied from interface:TaskInfoThe date/time when this task was created- Specified by:
getCreateTimein interfaceDelegateTask- Specified by:
getCreateTimein interfaceTaskInfo
-
setCreateTime
public void setCreateTime(java.util.Date createTime)
- Specified by:
setCreateTimein interfaceTaskEntity
-
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 interfaceDelegateTask- Specified by:
getExecutionIdin interfaceTaskInfo
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:TaskInfoReference to the process instance or null if it is not related to a process instance.- Specified by:
getProcessInstanceIdin interfaceDelegateTask- Specified by:
getProcessInstanceIdin interfaceTaskInfo
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:TaskInfoReference to the process definition or null if it is not related to a process.- Specified by:
getProcessDefinitionIdin interfaceDelegateTask- Specified by:
getProcessDefinitionIdin interfaceTaskInfo
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
- Specified by:
setProcessDefinitionIdin interfaceTaskEntity
-
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 interfaceDelegateTask- Specified by:
getAssigneein interfaceTaskInfo
-
getOriginalAssignee
public java.lang.String getOriginalAssignee()
-
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 interfaceDelegateTask- Specified by:
getTaskDefinitionKeyin interfaceTaskInfo
-
setTaskDefinitionKey
public void setTaskDefinitionKey(java.lang.String taskDefinitionKey)
- Specified by:
setTaskDefinitionKeyin interfaceTaskEntity
-
getEventName
public java.lang.String getEventName()
Description copied from interface:DelegateTaskReturns the event name which triggered the task listener to fire for this task.- Specified by:
getEventNamein interfaceDelegateTask
-
setEventName
public void setEventName(java.lang.String eventName)
- Specified by:
setEventNamein interfaceTaskEntity
-
getCurrentActivitiListener
public org.activiti.bpmn.model.ActivitiListener getCurrentActivitiListener()
- Specified by:
getCurrentActivitiListenerin interfaceDelegateTask
-
setCurrentActivitiListener
public void setCurrentActivitiListener(org.activiti.bpmn.model.ActivitiListener currentActivitiListener)
- Specified by:
setCurrentActivitiListenerin interfaceTaskEntity
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
- Specified by:
setExecutionIdin interfaceTaskEntity
-
getProcessInstance
public ExecutionEntity getProcessInstance()
- Specified by:
getProcessInstancein interfaceTaskEntity
-
setProcessInstance
public void setProcessInstance(ExecutionEntity processInstance)
-
setExecution
public void setExecution(ExecutionEntity execution)
- Specified by:
setExecutionin interfaceTaskEntity
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceTaskEntity
-
getOwner
public java.lang.String getOwner()
Description copied from interface:TaskInfoThe {@link User.getId() userId} of the person that is responsible for this task.- Specified by:
getOwnerin interfaceDelegateTask- Specified by:
getOwnerin interfaceTaskInfo
-
getDelegationState
public DelegationState getDelegationState()
Description copied from interface:TaskThe currentDelegationStatefor this task.- Specified by:
getDelegationStatein interfaceDelegateTask- Specified by:
getDelegationStatein interfaceTask
-
setDelegationState
public void setDelegationState(DelegationState delegationState)
Description copied from interface:TaskThe currentDelegationStatefor this task.- Specified by:
setDelegationStatein interfaceTask
-
getDelegationStateString
public java.lang.String getDelegationStateString()
-
setDelegationStateString
public void setDelegationStateString(java.lang.String delegationStateString)
-
isDeleted
public boolean isDeleted()
- Specified by:
isDeletedin interfaceEntity- Specified by:
isDeletedin interfaceTaskEntity- Overrides:
isDeletedin classAbstractEntity
-
setDeleted
public void setDeleted(boolean isDeleted)
- Specified by:
setDeletedin interfaceEntity- Specified by:
setDeletedin interfaceTaskEntity- Overrides:
setDeletedin classAbstractEntity
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceledin interfaceTaskEntity
-
setCanceled
public void setCanceled(boolean isCanceled)
- Specified by:
setCanceledin interfaceTaskEntity
-
getParentTaskId
public java.lang.String getParentTaskId()
Description copied from interface:TaskInfoThe parent task for which this task is a subtask- Specified by:
getParentTaskIdin interfaceTaskInfo
-
getBusinessKey
public java.lang.String getBusinessKey()
- Specified by:
getBusinessKeyin interfaceTaskInfo
-
getVariableInstanceEntities
public java.util.Map<java.lang.String,VariableInstanceEntity> getVariableInstanceEntities()
- Specified by:
getVariableInstanceEntitiesin interfaceTaskEntity- Overrides:
getVariableInstanceEntitiesin classVariableScopeImpl
-
getSuspensionState
public int getSuspensionState()
- Specified by:
getSuspensionStatein interfaceTaskEntity
-
setSuspensionState
public void setSuspensionState(int suspensionState)
- Specified by:
setSuspensionStatein interfaceTaskEntity
-
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 interfaceDelegateTask- Specified by:
getCategoryin interfaceTaskInfo
-
isSuspended
public boolean isSuspended()
Description copied from interface:TaskIndicates whether this task is suspended or not.- Specified by:
isSuspendedin interfaceDelegateTask- Specified by:
isSuspendedin interfaceTask
-
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
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:TaskInfoThe tenant identifier of this task- Specified by:
getTenantIdin interfaceDelegateTask- Specified by:
getTenantIdin interfaceTaskInfo
-
setTenantId
public void setTenantId(java.lang.String tenantId)
Description copied from interface:TaskChange the tenantId of the task- Specified by:
setTenantIdin interfaceTask
-
getQueryVariables
public java.util.List<VariableInstanceEntity> getQueryVariables()
-
setQueryVariables
public void setQueryVariables(java.util.List<VariableInstanceEntity> queryVariables)
-
getClaimTime
public java.util.Date getClaimTime()
Description copied from interface:TaskInfoThe claim time of this task- Specified by:
getClaimTimein interfaceTaskEntity- Specified by:
getClaimTimein interfaceTaskInfo
-
setClaimTime
public void setClaimTime(java.util.Date claimTime)
- Specified by:
setClaimTimein interfaceTaskEntity
-
getAppVersion
public java.lang.Integer getAppVersion()
- Specified by:
getAppVersionin interfaceTask
-
setAppVersion
public void setAppVersion(java.lang.Integer appVersion)
- Specified by:
setAppVersionin interfaceTask
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-