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<org.flowable.identitylink.api.IdentityLink> |
convertToIdentityLinks(List<IdentityLinkEntity> identityLinks) |
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value) |
void |
deleteCandidateGroup(String groupId)
Convenience shorthand for
#deleteGroupIdentityLink(String, 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
userId of the person to which this task is delegated. |
Set<org.flowable.identitylink.api.IdentityLink> |
getCandidates()
Retrieves the candidate users and groups associated with the task.
|
String |
getCategory()
The category of the task.
|
Date |
getClaimTime() |
Date |
getCreateTime()
The date/time when this task was created
|
DelegationState |
getDelegationState()
The current
org.flowable.engine.task.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() |
String |
getLocalizedDescription() |
String |
getLocalizedName() |
String |
getName()
Name or title of the task.
|
String |
getOriginalAssignee() |
String |
getOwner()
The
userId of the person responsible for this task. |
String |
getParentTaskId() |
protected VariableScopeImpl |
getParentVariableScope() |
Object |
getPersistentState() |
int |
getPriority()
indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low,
[40..59] normal, [60..79] high [80..100] highest
|
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() |
String |
getPropagatedStageInstanceId() |
List<IdentityLinkEntity> |
getQueryIdentityLinks() |
List<VariableInstanceEntity> |
getQueryVariables() |
String |
getScopeDefinitionId() |
String |
getScopeId() |
String |
getScopeType() |
protected VariableInstanceEntity |
getSpecificVariable(String variableName) |
protected List<VariableInstanceEntity> |
getSpecificVariables(Collection<String> variableNames) |
String |
getSubScopeId() |
int |
getSubTaskCount() |
int |
getSuspensionState() |
protected InternalTaskAssignmentManager |
getTaskAssignmentManager() |
String |
getTaskDefinitionId() |
String |
getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process
|
Map<String,Object> |
getTaskLocalVariables() |
String |
getTenantId()
The tenant identifier of this task
|
int |
getVariableCount() |
Map<String,VariableInstanceEntity> |
getVariableInstanceEntities() |
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
boolean |
isCanceled() |
boolean |
isCountEnabled() |
boolean |
isDeleted() |
protected boolean |
isPropagateToHistoricVariable() |
boolean |
isSuspended()
Indicated whether this task is suspended or not.
|
protected List<VariableInstanceEntity> |
loadVariableInstances() |
void |
setAssignee(String assignee)
The
userId 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) |
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 |
setLocalizedDescription(String localizedDescription) |
void |
setLocalizedName(String localizedName) |
void |
setName(String taskName)
Change the name of the task.
|
void |
setOwner(String owner)
The
userId of the person responsible for this task. |
void |
setOwnerValue(String owner) |
void |
setParentTaskId(String parentTaskId) |
void |
setPriority(int priority)
indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low,
[40..59] normal, [60..79] high [80..100] highest
|
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) |
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, 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()
getPersistentState 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<org.flowable.identitylink.api.IdentityLink> getCandidates()
DelegateTaskgetCandidates in interface DelegateTaskIdentityLinks of type IdentityLinkType.CANDIDATE.public List<IdentityLinkEntity> getIdentityLinks()
getIdentityLinks in interface TaskInfogetIdentityLinks in interface TaskEntitypublic void setName(String taskName)
DelegateTasksetName in interface TasksetName in interface DelegateTaskpublic void setDescription(String description)
DelegateTasksetDescription in interface TasksetDescription in interface DelegateTaskpublic void setAssignee(String assignee)
DelegateTaskuserId of the person to which this task is delegated.setAssignee in interface TasksetAssignee in interface DelegateTaskpublic void setAssigneeValue(String assignee)
setAssigneeValue in interface TaskEntitypublic void setOwner(String owner)
DelegateTaskuserId of the person responsible for this task.setOwner in interface TasksetOwner in interface DelegateTaskpublic void setOwnerValue(String owner)
setOwnerValue in interface TaskEntitypublic void setDueDate(Date dueDate)
DelegateTasksetDueDate in interface TasksetDueDate in interface DelegateTaskpublic void setPriority(int priority)
DelegateTasksetPriority in interface TasksetPriority in interface DelegateTaskpublic void setCategory(String category)
DelegateTasksetCategory 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)
DelegateTask#deleteGroupIdentityLink(String, 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)
setParentTaskId in interface Taskpublic String getFormKey()
DelegateTaskgetFormKey in interface TaskInfogetFormKey in interface DelegateTaskpublic void setFormKey(String formKey)
DelegateTasksetFormKey in interface TasksetFormKey in interface DelegateTaskprotected boolean isPropagateToHistoricVariable()
isPropagateToHistoricVariable in class VariableScopeImplprotected VariableInstanceEntity getSpecificVariable(String variableName)
getSpecificVariable in class VariableScopeImplprotected List<VariableInstanceEntity> getSpecificVariables(Collection<String> variableNames)
getSpecificVariables in class VariableScopeImplpublic String getName()
DelegateTaskgetName in interface TaskInfogetName in interface DelegateTaskpublic String getLocalizedName()
public void setLocalizedName(String localizedName)
setLocalizedName in interface Taskpublic String getDescription()
DelegateTaskgetDescription in interface TaskInfogetDescription in interface DelegateTaskpublic String getLocalizedDescription()
public void setLocalizedDescription(String localizedDescription)
setLocalizedDescription in interface Taskpublic Date getDueDate()
DelegateTaskgetDueDate in interface TaskInfogetDueDate in interface DelegateTaskpublic int getPriority()
DelegateTaskgetPriority in interface TaskInfogetPriority in interface DelegateTaskpublic Date getCreateTime()
DelegateTaskgetCreateTime in interface TaskInfogetCreateTime in interface DelegateTaskpublic void setCreateTime(Date createTime)
setCreateTime in interface TaskEntitypublic String getExecutionId()
DelegateTaskgetExecutionId in interface TaskInfogetExecutionId in interface DelegateTaskpublic String getProcessInstanceId()
DelegateTaskgetProcessInstanceId in interface TaskInfogetProcessInstanceId in interface DelegateTaskpublic String getProcessDefinitionId()
DelegateTaskgetProcessDefinitionId in interface TaskInfogetProcessDefinitionId in interface DelegateTaskpublic void setProcessDefinitionId(String processDefinitionId)
setProcessDefinitionId in interface TaskEntitypublic String getTaskDefinitionId()
getTaskDefinitionId in interface TaskInfopublic void setTaskDefinitionId(String taskDefinitionId)
setTaskDefinitionId in interface TaskEntitypublic String getScopeId()
getScopeId in interface TaskInfopublic void setScopeId(String scopeId)
setScopeId in interface TaskEntitypublic String getSubScopeId()
getSubScopeId in interface TaskInfopublic void setSubScopeId(String subScopeId)
setSubScopeId in interface TaskEntitypublic String getScopeType()
getScopeType in interface TaskInfopublic void setScopeType(String scopeType)
setScopeType in interface TaskEntitypublic String getScopeDefinitionId()
getScopeDefinitionId in interface TaskInfopublic void setScopeDefinitionId(String scopeDefinitionId)
setScopeDefinitionId in interface TaskEntitypublic void setPropagatedStageInstanceId(String propagatedStageInstanceId)
setPropagatedStageInstanceId in interface TaskEntitypublic String getPropagatedStageInstanceId()
getPropagatedStageInstanceId in interface TaskInfopublic String getAssignee()
DelegateTaskuserId of the person to which this task is delegated.getAssignee in interface TaskInfogetAssignee in interface DelegateTaskpublic String getOriginalAssignee()
public String getTaskDefinitionKey()
DelegateTaskgetTaskDefinitionKey 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()
DelegateTaskuserId of the person responsible for this task.getOwner in interface TaskInfogetOwner in interface DelegateTaskpublic DelegationState getDelegationState()
DelegateTaskorg.flowable.engine.task.DelegationState 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<org.flowable.identitylink.api.IdentityLink> convertToIdentityLinks(List<IdentityLinkEntity> identityLinks)
protected InternalTaskAssignmentManager getTaskAssignmentManager()
public void setDelegationState(DelegationState delegationState)
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()
getParentTaskId 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()
DelegateTaskgetCategory in interface TaskInfogetCategory in interface DelegateTaskpublic boolean isSuspended()
DelegateTaskisSuspended in interface TaskisSuspended in interface DelegateTaskpublic Map<String,Object> getTaskLocalVariables()
getTaskLocalVariables in interface TaskInfopublic Map<String,Object> getProcessVariables()
getProcessVariables in interface TaskInfopublic String getTenantId()
DelegateTaskgetTenantId in interface VariableContainergetTenantId in interface TaskInfogetTenantId in interface DelegateTaskpublic void setTenantId(String tenantId)
setTenantId 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()
getClaimTime in interface TaskInfopublic void setClaimTime(Date claimTime)
setClaimTime in interface TaskEntitypublic boolean isCountEnabled()
isCountEnabled in interface CountingTaskEntitypublic void setCountEnabled(boolean isCountEnabled)
setCountEnabled in interface CountingTaskEntitypublic 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 © 2020 Flowable. All rights reserved.