public class TaskEntityImpl extends AbstractTaskServiceVariableScopeEntity implements TaskEntity, CountingTaskEntity, Serializable
cachedElContext, transientVariables, usedVariablesCache, variableInstancesid, isDeleted, isInserted, isUpdated, originalPersistentState, revisionDEFAULT_PRIORITY| Constructor and Description |
|---|
TaskEntityImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCandidateGroup(String groupId)
Adds the given group as candidate group to this task
|
void |
addCandidateGroups(Collection<String> candidateGroups)
Adds multiple groups as candidate group to this task.
|
void |
addCandidateUser(String userId)
Adds the given user as a candidate user to this task.
|
void |
addCandidateUsers(Collection<String> candidateUsers)
Adds multiple users as candidate user to this task.
|
void |
addGroupIdentityLink(String groupId,
String identityLinkType)
Involves a group with group task.
|
protected void |
addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) |
void |
addUserIdentityLink(String userId,
String identityLinkType)
Involves a user with a task.
|
protected List<IdentityLink> |
convertToIdentityLinks(List<IdentityLinkEntity> identityLinks) |
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value) |
void |
deleteCandidateGroup(String groupId)
Convenience shorthand for
DelegateTask.deleteGroupIdentityLink(String, String); with type IdentityLinkType.CANDIDATE |
void |
deleteCandidateUser(String userId)
Convenience shorthand for
DelegateTask.deleteUserIdentityLink(String, String) ; with type IdentityLinkType.CANDIDATE |
void |
deleteGroupIdentityLink(String groupId,
String identityLinkType)
Removes the association between a group and a task for the given identityLinkType.
|
void |
deleteUserIdentityLink(String userId,
String identityLinkType)
Removes the association between a user and a task for the given identityLinkType.
|
protected void |
deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance) |
void |
forceUpdate() |
String |
getAssignee()
The user id of the person to which this task is delegated.
|
Set<IdentityLink> |
getCandidates()
Retrieves the candidate users and groups associated with the task.
|
String |
getCategory()
The category of the task.
|
Date |
getClaimTime()
The claim time of this task
|
Date |
getCreateTime()
The date/time when this task was created
|
DelegationState |
getDelegationState()
The current
DelegationState for this task. |
String |
getDelegationStateString() |
String |
getDescription()
Free text description of the task.
|
Date |
getDueDate()
Due date of the task.
|
String |
getEventHandlerId()
Returns the event handler identifier which triggered the task listener to fire for this task.
|
String |
getEventName()
Returns the event name which triggered the task listener to fire for this task.
|
String |
getExecutionId()
Reference to the path of execution or null if it is not related to a process instance.
|
String |
getFormKey()
The form key for the user task
|
int |
getIdentityLinkCount() |
List<IdentityLinkEntity> |
getIdentityLinks()
Returns the identity links.
|
protected IdentityLinkServiceConfiguration |
getIdentityLinkServiceConfiguration() |
boolean |
getIsCountEnabled() |
String |
getLocalizedDescription() |
String |
getLocalizedName() |
String |
getName()
Name or title of the task.
|
String |
getOriginalAssignee() |
String |
getOwner()
The user id of the person that is responsible for this task.
|
String |
getParentTaskId()
The parent task for which this task is a subtask
|
protected VariableScopeImpl |
getParentVariableScope() |
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database.
|
int |
getPriority()
Indication of how important/urgent this task is
|
String |
getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process.
|
String |
getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance.
|
Map<String,Object> |
getProcessVariables()
Returns the process variables if requested in the task query
|
String |
getPropagatedStageInstanceId()
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).
|
List<IdentityLinkEntity> |
getQueryIdentityLinks() |
List<VariableInstanceEntity> |
getQueryVariables() |
String |
getScopeDefinitionId()
Reference to a scope definition identifier or null if none is set (e.g.
|
String |
getScopeId()
Reference to a scope identifier or null if none is set (e.g.
|
String |
getScopeType()
Reference to a scope type or null if none is set (e.g.
|
protected VariableInstanceEntity |
getSpecificVariable(String variableName) |
protected List<VariableInstanceEntity> |
getSpecificVariables(Collection<String> variableNames) |
String |
getSubScopeId()
Reference to a sub scope identifier or null if none is set (e.g.
|
int |
getSubTaskCount() |
int |
getSuspensionState() |
protected InternalTaskAssignmentManager |
getTaskAssignmentManager() |
String |
getTaskDefinitionId()
Reference to the task definition or null if it is not related to any task definition.
|
String |
getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process
|
protected AbstractEngineConfiguration |
getTaskEngineConfiguration() |
Map<String,Object> |
getTaskLocalVariables()
Returns the local task variables if requested in the task query
|
protected TaskServiceConfiguration |
getTaskServiceConfiguration() |
String |
getTenantId()
The tenant identifier of this task
|
int |
getVariableCount() |
Map<String,VariableInstanceEntity> |
getVariableInstanceEntities() |
protected VariableServiceConfiguration |
getVariableServiceConfiguration() |
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
boolean |
isCanceled() |
boolean |
isCountEnabled() |
boolean |
isDeleted() |
protected boolean |
isPropagateToHistoricVariable()
Return whether changes to the variables are propagated to the history storage.
|
boolean |
isSuspended()
Indicates whether this task is suspended or not.
|
protected List<VariableInstanceEntity> |
loadVariableInstances() |
void |
setAssignee(String assignee)
The user id of the person to which this task is delegated.
|
void |
setAssigneeValue(String assignee) |
void |
setCanceled(boolean isCanceled) |
void |
setCategory(String category)
Change the category of the task.
|
void |
setClaimTime(Date claimTime) |
void |
setCountEnabled(boolean isCountEnabled) |
void |
setCreateTime(Date createTime) |
void |
setDelegationState(DelegationState delegationState)
The current
DelegationState for this task. |
void |
setDelegationStateString(String delegationStateString) |
void |
setDeleted(boolean isDeleted) |
void |
setDescription(String description)
Change the description of the task
|
void |
setDueDate(Date dueDate)
Change due date of the task.
|
void |
setEventHandlerId(String eventHandlerId) |
void |
setEventName(String eventName) |
void |
setExecutionId(String executionId) |
void |
setFormKey(String formKey)
Change the form key of the task
|
void |
setIdentityLinkCount(int identityLinkCount) |
void |
setIsCountEnabled(boolean isCountEnabled) |
void |
setLocalizedDescription(String localizedDescription)
Sets an optional localized description for the task.
|
void |
setLocalizedName(String localizedName)
Sets an optional localized name for the task.
|
void |
setName(String taskName)
Name or title of the task.
|
void |
setOwner(String owner)
The user id of the person that is responsible for this task.
|
void |
setOwnerValue(String owner) |
void |
setParentTaskId(String parentTaskId)
the parent task for which this task is a subtask
|
void |
setPriority(int priority)
Sets the indication of how important/urgent this task is
|
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setPropagatedStageInstanceId(String propagatedStageInstanceId) |
void |
setQueryIdentityLinks(List<IdentityLinkEntity> identityLinks) |
void |
setQueryVariables(List<VariableInstanceEntity> queryVariables) |
void |
setScopeDefinitionId(String scopeDefinitionId) |
void |
setScopeId(String scopeId) |
void |
setScopeType(String scopeType) |
void |
setSubScopeId(String subScopeId) |
void |
setSubTaskCount(int subTaskCount) |
void |
setSuspensionState(int suspensionState) |
void |
setTaskDefinitionId(String taskDefinitionId) |
void |
setTaskDefinitionKey(String taskDefinitionKey) |
void |
setTenantId(String tenantId)
Change the tenantId of the task
|
void |
setVariableCount(int variableCount) |
String |
toString() |
getIdPrefixcollectTransientVariables, collectVariableInstances, collectVariableNames, collectVariables, createVariableLocal, createVariablesLocal, ensureVariableInstancesInitialized, getCachedElContext, 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, internalSetVariableInstances, isExpression, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal, storeVariableLocal, updateVariableInstancegetId, getOriginalPersistentState, getRevision, getRevisionNext, isInserted, isUpdated, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdgetTransientVariable, 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, setVariablesLocalgetId, getIdPrefix, getOriginalPersistentState, isInserted, isUpdated, setId, setInserted, setOriginalPersistentState, setUpdatedgetRevision, getRevisionNext, setRevisionpublic static final String DELETE_REASON_COMPLETED
public static final String DELETE_REASON_DELETED
protected String owner
protected int assigneeUpdatedCount
protected String originalAssignee
protected String assignee
protected DelegationState delegationState
protected String parentTaskId
protected String name
protected String localizedName
protected String description
protected String localizedDescription
protected int priority
protected Date createTime
protected Date dueDate
protected int suspensionState
protected String category
protected boolean isIdentityLinksInitialized
protected List<IdentityLinkEntity> taskIdentityLinkEntities
protected String executionId
protected String processInstanceId
protected String processDefinitionId
protected String taskDefinitionId
protected String scopeId
protected String subScopeId
protected String scopeType
protected String scopeDefinitionId
protected String propagatedStageInstanceId
protected String taskDefinitionKey
protected String formKey
protected boolean isCanceled
protected int variableCount
protected int identityLinkCount
protected int subTaskCount
protected Date claimTime
protected String tenantId
protected String eventName
protected String eventHandlerId
protected List<VariableInstanceEntity> queryVariables
protected List<IdentityLinkEntity> queryIdentityLinks
protected boolean forcedUpdate
public Object getPersistentState()
EntitygetPersistentState in interface Entitypublic void forceUpdate()
forceUpdate in interface TaskEntityprotected VariableScopeImpl getParentVariableScope()
getParentVariableScope in class VariableScopeImplprotected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
initializeVariableInstanceBackPointer in class VariableScopeImplprotected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode)
addLoggingSessionInfo in class VariableScopeImplprotected List<VariableInstanceEntity> loadVariableInstances()
loadVariableInstances in class VariableScopeImplprotected VariableInstanceEntity createVariableInstance(String variableName, Object value)
createVariableInstance in class VariableScopeImplprotected void deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance)
deleteVariableInstanceForExplicitUserCall in class VariableScopeImplpublic Set<IdentityLink> getCandidates()
DelegateTaskgetCandidates in interface DelegateTaskIdentityLinks of type IdentityLinkType.CANDIDATE.public List<IdentityLinkEntity> getIdentityLinks()
TaskInfogetIdentityLinks in interface TaskInfogetIdentityLinks in interface TaskEntitypublic void setName(String taskName)
TasksetName in interface TasksetName in interface DelegateTaskpublic void setDescription(String description)
TasksetDescription in interface TasksetDescription in interface DelegateTaskpublic void setAssignee(String assignee)
TasksetAssignee in interface TasksetAssignee in interface DelegateTaskpublic void setAssigneeValue(String assignee)
setAssigneeValue in interface TaskEntitypublic void setOwner(String owner)
TasksetOwner in interface TasksetOwner in interface DelegateTaskpublic void setOwnerValue(String owner)
setOwnerValue in interface TaskEntitypublic void setDueDate(Date dueDate)
TasksetDueDate in interface TasksetDueDate in interface DelegateTaskpublic void setPriority(int priority)
TasksetPriority in interface TasksetPriority in interface DelegateTaskpublic void setCategory(String category)
TasksetCategory in interface TasksetCategory in interface DelegateTaskpublic void addUserIdentityLink(String userId, String identityLinkType)
DelegateTaskaddUserIdentityLink in interface DelegateTaskuserId - id of the user involve, cannot be null.identityLinkType - type of identityLink, cannot be null (@see IdentityLinkType).public void addGroupIdentityLink(String groupId, String identityLinkType)
DelegateTaskaddGroupIdentityLink in interface DelegateTaskgroupId - id of the group to involve, cannot be null.identityLinkType - type of identity, cannot be null (@see IdentityLinkType).public void deleteCandidateUser(String userId)
DelegateTaskDelegateTask.deleteUserIdentityLink(String, String) ; with type IdentityLinkType.CANDIDATEdeleteCandidateUser in interface DelegateTaskuserId - id of the user to use as candidate, cannot be null.public void deleteCandidateGroup(String groupId)
DelegateTaskDelegateTask.deleteGroupIdentityLink(String, String); with type IdentityLinkType.CANDIDATEdeleteCandidateGroup in interface DelegateTaskgroupId - id of the group to use as candidate, cannot be null.public void deleteUserIdentityLink(String userId, String identityLinkType)
DelegateTaskdeleteUserIdentityLink in interface DelegateTaskuserId - id of the user involve, cannot be null.identityLinkType - type of identityLink, cannot be null (@see IdentityLinkType).public void deleteGroupIdentityLink(String groupId, String identityLinkType)
DelegateTaskdeleteGroupIdentityLink in interface DelegateTaskgroupId - id of the group to involve, cannot be null.identityLinkType - type of identity, cannot be null (@see IdentityLinkType).public void setParentTaskId(String parentTaskId)
TasksetParentTaskId in interface Taskpublic String getFormKey()
TaskInfogetFormKey in interface TaskInfogetFormKey in interface DelegateTaskpublic void setFormKey(String formKey)
TasksetFormKey in interface TasksetFormKey in interface DelegateTaskprotected boolean isPropagateToHistoricVariable()
VariableScopeImplisPropagateToHistoricVariable in class VariableScopeImplprotected VariableInstanceEntity getSpecificVariable(String variableName)
getSpecificVariable in class VariableScopeImplprotected List<VariableInstanceEntity> getSpecificVariables(Collection<String> variableNames)
getSpecificVariables in class VariableScopeImplpublic String getName()
TaskInfogetName in interface TaskInfogetName in interface DelegateTaskpublic String getLocalizedName()
public void setLocalizedName(String localizedName)
TasksetLocalizedName in interface Taskpublic String getDescription()
TaskInfogetDescription in interface TaskInfogetDescription in interface DelegateTaskpublic String getLocalizedDescription()
public void setLocalizedDescription(String localizedDescription)
TasksetLocalizedDescription in interface Taskpublic Date getDueDate()
TaskInfogetDueDate in interface TaskInfogetDueDate in interface DelegateTaskpublic int getPriority()
TaskInfogetPriority in interface TaskInfogetPriority in interface DelegateTaskpublic Date getCreateTime()
TaskInfogetCreateTime in interface TaskInfogetCreateTime in interface DelegateTaskpublic void setCreateTime(Date createTime)
setCreateTime in interface TaskEntitypublic String getExecutionId()
TaskInfogetExecutionId in interface TaskInfogetExecutionId in interface DelegateTaskpublic String getProcessInstanceId()
TaskInfogetProcessInstanceId in interface TaskInfogetProcessInstanceId in interface DelegateTaskpublic String getProcessDefinitionId()
TaskInfogetProcessDefinitionId in interface TaskInfogetProcessDefinitionId in interface DelegateTaskpublic void setProcessDefinitionId(String processDefinitionId)
setProcessDefinitionId in interface TaskEntitypublic String getTaskDefinitionId()
TaskInfogetTaskDefinitionId in interface TaskInfopublic void setTaskDefinitionId(String taskDefinitionId)
setTaskDefinitionId in interface TaskEntitypublic String getScopeId()
TaskInfogetScopeId in interface TaskInfopublic void setScopeId(String scopeId)
setScopeId in interface TaskEntitypublic String getSubScopeId()
TaskInfogetSubScopeId in interface TaskInfopublic void setSubScopeId(String subScopeId)
setSubScopeId in interface TaskEntitypublic String getScopeType()
TaskInfogetScopeType in interface TaskInfopublic void setScopeType(String scopeType)
setScopeType in interface TaskEntitypublic String getScopeDefinitionId()
TaskInfogetScopeDefinitionId in interface TaskInfopublic void setScopeDefinitionId(String scopeDefinitionId)
setScopeDefinitionId in interface TaskEntitypublic void setPropagatedStageInstanceId(String propagatedStageInstanceId)
setPropagatedStageInstanceId in interface TaskEntitypublic String getPropagatedStageInstanceId()
TaskInfogetPropagatedStageInstanceId in interface TaskInfopublic String getAssignee()
TaskInfogetAssignee in interface TaskInfogetAssignee in interface DelegateTaskpublic String getOriginalAssignee()
public String getTaskDefinitionKey()
TaskInfogetTaskDefinitionKey in interface TaskInfogetTaskDefinitionKey in interface DelegateTaskpublic void setTaskDefinitionKey(String taskDefinitionKey)
setTaskDefinitionKey in interface TaskEntitypublic String getEventName()
DelegateTaskgetEventName in interface DelegateTaskpublic void setEventName(String eventName)
setEventName in interface TaskEntitypublic String getEventHandlerId()
DelegateTaskgetEventHandlerId in interface DelegateTaskpublic void setEventHandlerId(String eventHandlerId)
setEventHandlerId in interface TaskEntitypublic void setExecutionId(String executionId)
setExecutionId in interface TaskEntitypublic void setProcessInstanceId(String processInstanceId)
setProcessInstanceId in interface TaskEntitypublic String getOwner()
TaskInfogetOwner in interface TaskInfogetOwner in interface DelegateTaskpublic DelegationState getDelegationState()
TaskDelegationState for this task.getDelegationState in interface TaskgetDelegationState in interface DelegateTaskpublic void addCandidateUser(String userId)
DelegateTaskaddCandidateUser in interface DelegateTaskpublic void addCandidateUsers(Collection<String> candidateUsers)
DelegateTaskaddCandidateUsers in interface DelegateTaskpublic void addCandidateGroup(String groupId)
DelegateTaskaddCandidateGroup in interface DelegateTaskpublic void addCandidateGroups(Collection<String> candidateGroups)
DelegateTaskaddCandidateGroups in interface DelegateTaskprotected List<IdentityLink> convertToIdentityLinks(List<IdentityLinkEntity> identityLinks)
protected InternalTaskAssignmentManager getTaskAssignmentManager()
protected TaskServiceConfiguration getTaskServiceConfiguration()
protected IdentityLinkServiceConfiguration getIdentityLinkServiceConfiguration()
protected VariableServiceConfiguration getVariableServiceConfiguration()
getVariableServiceConfiguration in class VariableScopeImplprotected AbstractEngineConfiguration getTaskEngineConfiguration()
public void setDelegationState(DelegationState delegationState)
TaskDelegationState for this task.setDelegationState in interface Taskpublic String getDelegationStateString()
public void setDelegationStateString(String delegationStateString)
public boolean isDeleted()
isDeleted in interface EntityisDeleted in class AbstractEntitypublic void setDeleted(boolean isDeleted)
setDeleted in interface EntitysetDeleted in class AbstractEntitypublic boolean isCanceled()
isCanceled in interface TaskEntitypublic void setCanceled(boolean isCanceled)
setCanceled in interface TaskEntitypublic String getParentTaskId()
TaskInfogetParentTaskId in interface TaskInfopublic Map<String,VariableInstanceEntity> getVariableInstanceEntities()
getVariableInstanceEntities in interface TaskEntitygetVariableInstanceEntities in class VariableScopeImplpublic int getSuspensionState()
getSuspensionState in interface TaskEntitypublic void setSuspensionState(int suspensionState)
setSuspensionState in interface TaskEntitypublic String getCategory()
TaskInfogetCategory in interface TaskInfogetCategory in interface DelegateTaskpublic boolean isSuspended()
TaskisSuspended in interface TaskisSuspended in interface DelegateTaskpublic Map<String,Object> getTaskLocalVariables()
TaskInfogetTaskLocalVariables in interface TaskInfopublic Map<String,Object> getProcessVariables()
TaskInfogetProcessVariables in interface TaskInfopublic String getTenantId()
TaskInfogetTenantId in interface VariableContainergetTenantId in interface TaskInfogetTenantId in interface DelegateTaskpublic void setTenantId(String tenantId)
TasksetTenantId in interface Taskpublic List<VariableInstanceEntity> getQueryVariables()
getQueryVariables in interface TaskEntitypublic void setQueryVariables(List<VariableInstanceEntity> queryVariables)
public List<IdentityLinkEntity> getQueryIdentityLinks()
public void setQueryIdentityLinks(List<IdentityLinkEntity> identityLinks)
public Date getClaimTime()
TaskInfogetClaimTime in interface TaskInfopublic void setClaimTime(Date claimTime)
setClaimTime in interface TaskEntitypublic boolean isCountEnabled()
isCountEnabled in interface CountingTaskEntitypublic boolean getIsCountEnabled()
public void setCountEnabled(boolean isCountEnabled)
setCountEnabled in interface CountingTaskEntitypublic void setIsCountEnabled(boolean isCountEnabled)
public void setVariableCount(int variableCount)
setVariableCount in interface CountingTaskEntitypublic int getVariableCount()
getVariableCount in interface CountingTaskEntitypublic void setIdentityLinkCount(int identityLinkCount)
setIdentityLinkCount in interface CountingTaskEntitypublic int getIdentityLinkCount()
getIdentityLinkCount in interface CountingTaskEntitypublic int getSubTaskCount()
getSubTaskCount in interface CountingTaskEntitypublic void setSubTaskCount(int subTaskCount)
setSubTaskCount in interface CountingTaskEntityCopyright © 2023 Flowable. All rights reserved.