Class TaskEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
org.flowable.task.service.impl.persistence.entity.AbstractTaskServiceVariableScopeEntity
org.flowable.task.service.impl.persistence.entity.TaskEntityImpl
- All Implemented Interfaces:
Serializable
,VariableContainer
,HasRevision
,Entity
,Task
,TaskInfo
,DelegateTask
,CountingTaskEntity
,TaskEntity
,VariableScope
public class TaskEntityImpl
extends AbstractTaskServiceVariableScopeEntity
implements TaskEntity, CountingTaskEntity, Serializable
- Author:
- Tom Baeyens, Joram Barrez, Falko Menge, Tijs Rademakers
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected int
protected String
protected String
protected Date
protected Date
protected DelegationState
static final String
static final String
protected String
protected Date
protected String
protected String
protected String
protected boolean
protected String
protected int
protected Date
protected String
protected Date
protected boolean
protected boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected List<IdentityLinkEntity>
protected List<VariableInstanceEntity>
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected Date
protected int
protected String
protected String
protected List<IdentityLinkEntity>
protected String
protected String
protected int
Fields inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariables, usedVariablesCache, variableInstances
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
Fields inherited from interface org.flowable.task.api.Task
CLAIMED, COMPLETED, CREATED, DEFAULT_PRIORITY, IN_PROGRESS, SUSPENDED, TERMINATED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCandidateGroup
(String groupId) Adds the given group as candidate group to this taskvoid
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 forDelegateTask.deleteGroupIdentityLink(String, String)
; with typeIdentityLinkType.CANDIDATE
void
deleteCandidateUser
(String userId) Convenience shorthand forDelegateTask.deleteUserIdentityLink(String, String)
; with typeIdentityLinkType.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
The user id of the person to which this task is delegated.Retrieves the candidate users and groups associated with the task.Returns the case variables if requested in the task queryThe category of the task.The user reference that claimed this taskThe claim time of this taskThe date/time when this task was createdThe currentDelegationState
for this task.Free text description of the task.Due date of the task.Returns the event handler identifier which triggered the task listener to fire for this task.Returns the event name which triggered the task listener to fire for this task.Reference to the path of execution or null if it is not related to a process instance.The form key for the user taskint
Returns the identity links.protected IdentityLinkServiceConfiguration
In progress start due date of the task.The user reference that put this task in progressThe date/time when this task was put in progressboolean
getName()
Name or title of the task.getOwner()
The user id of the person that is responsible for this task.The parent task for which this task is a subtaskprotected VariableScopeImpl
Returns a representation of the object, as would be stored in the database.int
Indication of how important/urgent this task isReference to the process definition or null if it is not related to a process.Reference to the process instance or null if it is not related to a process instance.Returns the process variables if requested in the task queryIf 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).Reference to a scope definition identifier or null if none is set (e.g.Reference to a scope identifier or null if none is set (e.g.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) getState()
The state of this taskReference to a sub scope identifier or null if none is set (e.g.int
The user reference that suspended this taskThe suspended time of this taskint
protected InternalTaskAssignmentManager
Reference to the task definition or null if it is not related to any task definition.The id of the activity in the process defining this task or null if this is not related to a processprotected AbstractEngineConfiguration
Returns the local task variables if requested in the task queryprotected TaskServiceConfiguration
The tenant identifier of this taskint
protected VariableServiceConfiguration
protected void
initializeVariableInstanceBackPointer
(VariableInstance variableInstance) boolean
boolean
boolean
boolean
protected boolean
Return whether changes to the variables are propagated to the history storage.boolean
Indicates whether this task is suspended or not.protected List<VariableInstanceEntity>
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
setClaimedBy
(String claimedBy) void
setClaimTime
(Date claimTime) void
setCountEnabled
(boolean isCountEnabled) void
setCreateTime
(Date createTime) void
setDelegationState
(DelegationState delegationState) The currentDelegationState
for this task.void
setDelegationStateString
(String delegationStateString) void
setDeleted
(boolean isDeleted) void
setDescription
(String description) Change the description of the taskvoid
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 taskvoid
setIdentityLinkCount
(int identityLinkCount) void
setInProgressStartDueDate
(Date inProgressStartDueDate) Change the in progress start due date of the task.void
setInProgressStartedBy
(String inProgressStartedBy) void
setInProgressStartTime
(Date inProgressStartTime) 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
Name or title of the task.void
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 subtaskvoid
setPriority
(int priority) Sets the indication of how important/urgent this task isvoid
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
void
setSubScopeId
(String subScopeId) void
setSubTaskCount
(int subTaskCount) void
setSuspendedBy
(String suspendedBy) void
setSuspendedTime
(Date suspendedTime) void
setSuspensionState
(int suspensionState) void
setTaskDefinitionId
(String taskDefinitionId) void
setTaskDefinitionKey
(String taskDefinitionKey) void
setTempCompletedBy
(String tempCompletedBy) void
setTenantId
(String tenantId) Change the tenantId of the taskvoid
setVariableCount
(int variableCount) toString()
Methods inherited from class org.flowable.task.service.impl.persistence.entity.AbstractTaskServiceVariableScopeEntity
getIdPrefix
Methods inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
collectTransientVariables, 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, updateVariableInstance
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isInserted, isUpdated, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.task.service.delegate.DelegateTask
getId
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isInserted, isUpdated, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
Methods inherited from interface org.flowable.variable.api.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 Details
-
DELETE_REASON_COMPLETED
- See Also:
-
DELETE_REASON_DELETED
- See Also:
-
owner
-
assigneeUpdatedCount
protected int assigneeUpdatedCount -
originalAssignee
-
assignee
-
delegationState
-
parentTaskId
-
name
-
localizedName
-
description
-
localizedDescription
-
priority
protected int priority -
state
-
createTime
-
inProgressStartTime
-
inProgressStartedBy
-
claimTime
-
claimedBy
-
suspendedTime
-
suspendedBy
-
inProgressStartDueDate
-
dueDate
-
suspensionState
protected int suspensionState -
category
-
isIdentityLinksInitialized
protected boolean isIdentityLinksInitialized -
taskIdentityLinkEntities
-
executionId
-
processInstanceId
-
processDefinitionId
-
taskDefinitionId
-
scopeId
-
subScopeId
-
scopeType
-
scopeDefinitionId
-
propagatedStageInstanceId
-
taskDefinitionKey
-
formKey
-
isCanceled
protected boolean isCanceled -
variableCount
protected int variableCount -
identityLinkCount
protected int identityLinkCount -
subTaskCount
protected int subTaskCount -
tenantId
-
eventName
-
eventHandlerId
-
tempCompletedBy
-
queryVariables
-
queryIdentityLinks
-
forcedUpdate
protected boolean forcedUpdate
-
-
Constructor Details
-
TaskEntityImpl
public TaskEntityImpl()
-
-
Method Details
-
getPersistentState
Description copied from interface:Entity
Returns 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:
getPersistentState
in interfaceEntity
-
forceUpdate
public void forceUpdate()- Specified by:
forceUpdate
in interfaceTaskEntity
-
getParentVariableScope
- Specified by:
getParentVariableScope
in classVariableScopeImpl
-
initializeVariableInstanceBackPointer
- Specified by:
initializeVariableInstanceBackPointer
in classVariableScopeImpl
-
addLoggingSessionInfo
protected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) - Specified by:
addLoggingSessionInfo
in classVariableScopeImpl
-
loadVariableInstances
- Specified by:
loadVariableInstances
in classVariableScopeImpl
-
createVariableInstance
- Overrides:
createVariableInstance
in classVariableScopeImpl
-
deleteVariableInstanceForExplicitUserCall
- Overrides:
deleteVariableInstanceForExplicitUserCall
in classVariableScopeImpl
-
getCandidates
Description copied from interface:DelegateTask
Retrieves the candidate users and groups associated with the task.- Specified by:
getCandidates
in interfaceDelegateTask
- Returns:
- set of
IdentityLink
s of typeIdentityLinkType.CANDIDATE
.
-
getIdentityLinks
Description copied from interface:TaskInfo
Returns the identity links.- Specified by:
getIdentityLinks
in interfaceTaskEntity
- Specified by:
getIdentityLinks
in interfaceTaskInfo
-
setName
Description copied from interface:Task
Name or title of the task.- Specified by:
setName
in interfaceDelegateTask
- Specified by:
setName
in interfaceTask
-
setDescription
Description copied from interface:Task
Change the description of the task- Specified by:
setDescription
in interfaceDelegateTask
- Specified by:
setDescription
in interfaceTask
-
setAssignee
Description copied from interface:Task
The user id of the person to which this task is delegated.- Specified by:
setAssignee
in interfaceDelegateTask
- Specified by:
setAssignee
in interfaceTask
-
setAssigneeValue
- Specified by:
setAssigneeValue
in interfaceTaskEntity
-
setOwner
Description copied from interface:Task
The user id of the person that is responsible for this task.- Specified by:
setOwner
in interfaceDelegateTask
- Specified by:
setOwner
in interfaceTask
-
setOwnerValue
- Specified by:
setOwnerValue
in interfaceTaskEntity
-
setInProgressStartDueDate
Description copied from interface:DelegateTask
Change the in progress start due date of the task.- Specified by:
setInProgressStartDueDate
in interfaceDelegateTask
-
setDueDate
Description copied from interface:Task
Change due date of the task.- Specified by:
setDueDate
in interfaceDelegateTask
- Specified by:
setDueDate
in interfaceTask
-
setPriority
public void setPriority(int priority) Description copied from interface:Task
Sets the indication of how important/urgent this task is- Specified by:
setPriority
in interfaceDelegateTask
- Specified by:
setPriority
in interfaceTask
-
setCategory
Description copied from interface:Task
Change the category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.- Specified by:
setCategory
in interfaceDelegateTask
- Specified by:
setCategory
in interfaceTask
-
addUserIdentityLink
Description copied from interface:DelegateTask
Involves a user with a task. The type of identity link is defined by the given identityLinkType.- Specified by:
addUserIdentityLink
in interfaceDelegateTask
- Parameters:
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@seeIdentityLinkType
).
-
addGroupIdentityLink
Description copied from interface:DelegateTask
Involves a group with group task. The type of identityLink is defined by the given identityLink.- Specified by:
addGroupIdentityLink
in interfaceDelegateTask
- Parameters:
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@seeIdentityLinkType
).
-
deleteCandidateUser
Description copied from interface:DelegateTask
Convenience shorthand forDelegateTask.deleteUserIdentityLink(String, String)
; with typeIdentityLinkType.CANDIDATE
- Specified by:
deleteCandidateUser
in interfaceDelegateTask
- Parameters:
userId
- id of the user to use as candidate, cannot be null.
-
deleteCandidateGroup
Description copied from interface:DelegateTask
Convenience shorthand forDelegateTask.deleteGroupIdentityLink(String, String)
; with typeIdentityLinkType.CANDIDATE
- Specified by:
deleteCandidateGroup
in interfaceDelegateTask
- Parameters:
groupId
- id of the group to use as candidate, cannot be null.
-
deleteUserIdentityLink
Description copied from interface:DelegateTask
Removes the association between a user and a task for the given identityLinkType.- Specified by:
deleteUserIdentityLink
in interfaceDelegateTask
- Parameters:
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@seeIdentityLinkType
).
-
deleteGroupIdentityLink
Description copied from interface:DelegateTask
Removes the association between a group and a task for the given identityLinkType.- Specified by:
deleteGroupIdentityLink
in interfaceDelegateTask
- Parameters:
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@seeIdentityLinkType
).
-
setParentTaskId
Description copied from interface:Task
the parent task for which this task is a subtask- Specified by:
setParentTaskId
in interfaceTask
-
getFormKey
Description copied from interface:TaskInfo
The form key for the user task- Specified by:
getFormKey
in interfaceDelegateTask
- Specified by:
getFormKey
in interfaceTaskInfo
-
setFormKey
Description copied from interface:Task
Change the form key of the task- Specified by:
setFormKey
in interfaceDelegateTask
- Specified by:
setFormKey
in interfaceTask
-
isPropagateToHistoricVariable
protected boolean isPropagateToHistoricVariable()Description copied from class:VariableScopeImpl
Return whether changes to the variables are propagated to the history storage.- Specified by:
isPropagateToHistoricVariable
in classVariableScopeImpl
-
getSpecificVariable
- Specified by:
getSpecificVariable
in classVariableScopeImpl
-
getSpecificVariables
- Specified by:
getSpecificVariables
in classVariableScopeImpl
-
getName
Description copied from interface:TaskInfo
Name or title of the task.- Specified by:
getName
in interfaceDelegateTask
- Specified by:
getName
in interfaceTaskInfo
-
getLocalizedName
-
setLocalizedName
Description copied from interface:Task
Sets an optional localized name for the task.- Specified by:
setLocalizedName
in interfaceTask
-
getDescription
Description copied from interface:TaskInfo
Free text description of the task.- Specified by:
getDescription
in interfaceDelegateTask
- Specified by:
getDescription
in interfaceTaskInfo
-
getLocalizedDescription
-
setLocalizedDescription
Description copied from interface:Task
Sets an optional localized description for the task.- Specified by:
setLocalizedDescription
in interfaceTask
-
getInProgressStartDueDate
Description copied from interface:TaskInfo
In progress start due date of the task.- Specified by:
getInProgressStartDueDate
in interfaceDelegateTask
- Specified by:
getInProgressStartDueDate
in interfaceTaskInfo
-
getDueDate
Description copied from interface:TaskInfo
Due date of the task.- Specified by:
getDueDate
in interfaceDelegateTask
- Specified by:
getDueDate
in interfaceTaskInfo
-
getPriority
public int getPriority()Description copied from interface:TaskInfo
Indication of how important/urgent this task is- Specified by:
getPriority
in interfaceDelegateTask
- Specified by:
getPriority
in interfaceTaskInfo
-
getState
Description copied from interface:TaskInfo
The state of this task- Specified by:
getState
in interfaceDelegateTask
- Specified by:
getState
in interfaceTaskInfo
-
setState
- Specified by:
setState
in interfaceTaskEntity
-
getCreateTime
Description copied from interface:TaskInfo
The date/time when this task was created- Specified by:
getCreateTime
in interfaceDelegateTask
- Specified by:
getCreateTime
in interfaceTaskInfo
-
setCreateTime
- Specified by:
setCreateTime
in interfaceTaskEntity
-
getInProgressStartTime
Description copied from interface:TaskInfo
The date/time when this task was put in progress- Specified by:
getInProgressStartTime
in interfaceDelegateTask
- Specified by:
getInProgressStartTime
in interfaceTaskInfo
-
setInProgressStartTime
- Specified by:
setInProgressStartTime
in interfaceTaskEntity
-
getInProgressStartedBy
Description copied from interface:TaskInfo
The user reference that put this task in progress- Specified by:
getInProgressStartedBy
in interfaceDelegateTask
- Specified by:
getInProgressStartedBy
in interfaceTaskInfo
-
setInProgressStartedBy
- Specified by:
setInProgressStartedBy
in interfaceTaskEntity
-
getClaimTime
Description copied from interface:TaskInfo
The claim time of this task- Specified by:
getClaimTime
in interfaceDelegateTask
- Specified by:
getClaimTime
in interfaceTaskInfo
-
setClaimTime
- Specified by:
setClaimTime
in interfaceTaskEntity
-
getClaimedBy
Description copied from interface:TaskInfo
The user reference that claimed this task- Specified by:
getClaimedBy
in interfaceDelegateTask
- Specified by:
getClaimedBy
in interfaceTaskInfo
-
setClaimedBy
- Specified by:
setClaimedBy
in interfaceTaskEntity
-
getSuspendedTime
Description copied from interface:TaskInfo
The suspended time of this task- Specified by:
getSuspendedTime
in interfaceDelegateTask
- Specified by:
getSuspendedTime
in interfaceTaskInfo
-
setSuspendedTime
- Specified by:
setSuspendedTime
in interfaceTaskEntity
-
getSuspendedBy
Description copied from interface:TaskInfo
The user reference that suspended this task- Specified by:
getSuspendedBy
in interfaceDelegateTask
- Specified by:
getSuspendedBy
in interfaceTaskInfo
-
setSuspendedBy
- Specified by:
setSuspendedBy
in interfaceTaskEntity
-
getExecutionId
Description copied from interface:TaskInfo
Reference to the path of execution or null if it is not related to a process instance.- Specified by:
getExecutionId
in interfaceDelegateTask
- Specified by:
getExecutionId
in interfaceTaskInfo
-
getProcessInstanceId
Description copied from interface:TaskInfo
Reference to the process instance or null if it is not related to a process instance.- Specified by:
getProcessInstanceId
in interfaceDelegateTask
- Specified by:
getProcessInstanceId
in interfaceTaskInfo
-
getProcessDefinitionId
Description copied from interface:TaskInfo
Reference to the process definition or null if it is not related to a process.- Specified by:
getProcessDefinitionId
in interfaceDelegateTask
- Specified by:
getProcessDefinitionId
in interfaceTaskInfo
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionId
in interfaceTaskEntity
-
getTaskDefinitionId
Description copied from interface:TaskInfo
Reference to the task definition or null if it is not related to any task definition.- Specified by:
getTaskDefinitionId
in interfaceTaskInfo
-
setTaskDefinitionId
- Specified by:
setTaskDefinitionId
in interfaceTaskEntity
-
getScopeId
Description copied from interface:TaskInfo
Reference to a scope identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeId
in interfaceTaskInfo
-
setScopeId
- Specified by:
setScopeId
in interfaceTaskEntity
-
getSubScopeId
Description copied from interface:TaskInfo
Reference to a sub scope identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getSubScopeId
in interfaceTaskInfo
-
setSubScopeId
- Specified by:
setSubScopeId
in interfaceTaskEntity
-
getScopeType
Description copied from interface:TaskInfo
Reference to a scope type or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeType
in interfaceTaskInfo
-
setScopeType
- Specified by:
setScopeType
in interfaceTaskEntity
-
getScopeDefinitionId
Description copied from interface:TaskInfo
Reference to a scope definition identifier or null if none is set (e.g. for bpmn process task it is null)- Specified by:
getScopeDefinitionId
in interfaceTaskInfo
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionId
in interfaceTaskEntity
-
setPropagatedStageInstanceId
- Specified by:
setPropagatedStageInstanceId
in interfaceTaskEntity
-
getPropagatedStageInstanceId
Description copied from interface:TaskInfo
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). Even if the direct parent of the task is a process which itself might have been created out of a process task of a case, its stage instance is reflected in the task.- Specified by:
getPropagatedStageInstanceId
in interfaceTaskInfo
- Returns:
- the stage instance id this task belongs to or null, if this task is not part of a case at all or is not a child element of a stage
-
getAssignee
Description copied from interface:TaskInfo
The user id of the person to which this task is delegated.- Specified by:
getAssignee
in interfaceDelegateTask
- Specified by:
getAssignee
in interfaceTaskInfo
-
getOriginalAssignee
-
getTaskDefinitionKey
Description copied from interface:TaskInfo
The id of the activity in the process defining this task or null if this is not related to a process- Specified by:
getTaskDefinitionKey
in interfaceDelegateTask
- Specified by:
getTaskDefinitionKey
in interfaceTaskInfo
-
setTaskDefinitionKey
- Specified by:
setTaskDefinitionKey
in interfaceTaskEntity
-
getEventName
Description copied from interface:DelegateTask
Returns the event name which triggered the task listener to fire for this task.- Specified by:
getEventName
in interfaceDelegateTask
-
setEventName
- Specified by:
setEventName
in interfaceTaskEntity
-
getEventHandlerId
Description copied from interface:DelegateTask
Returns the event handler identifier which triggered the task listener to fire for this task.- Specified by:
getEventHandlerId
in interfaceDelegateTask
-
setEventHandlerId
- Specified by:
setEventHandlerId
in interfaceTaskEntity
-
getTempCompletedBy
- Specified by:
getTempCompletedBy
in interfaceTaskEntity
-
setTempCompletedBy
- Specified by:
setTempCompletedBy
in interfaceTaskEntity
-
setExecutionId
- Specified by:
setExecutionId
in interfaceTaskEntity
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceTaskEntity
-
getOwner
Description copied from interface:TaskInfo
The user id of the person that is responsible for this task.- Specified by:
getOwner
in interfaceDelegateTask
- Specified by:
getOwner
in interfaceTaskInfo
-
getDelegationState
Description copied from interface:Task
The currentDelegationState
for this task.- Specified by:
getDelegationState
in interfaceDelegateTask
- Specified by:
getDelegationState
in interfaceTask
-
addCandidateUser
Description copied from interface:DelegateTask
Adds the given user as a candidate user to this task.- Specified by:
addCandidateUser
in interfaceDelegateTask
-
addCandidateUsers
Description copied from interface:DelegateTask
Adds multiple users as candidate user to this task.- Specified by:
addCandidateUsers
in interfaceDelegateTask
-
addCandidateGroup
Description copied from interface:DelegateTask
Adds the given group as candidate group to this task- Specified by:
addCandidateGroup
in interfaceDelegateTask
-
addCandidateGroups
Description copied from interface:DelegateTask
Adds multiple groups as candidate group to this task.- Specified by:
addCandidateGroups
in interfaceDelegateTask
-
convertToIdentityLinks
-
getTaskAssignmentManager
-
getTaskServiceConfiguration
-
getIdentityLinkServiceConfiguration
-
getVariableServiceConfiguration
- Specified by:
getVariableServiceConfiguration
in classVariableScopeImpl
-
getTaskEngineConfiguration
-
setDelegationState
Description copied from interface:Task
The currentDelegationState
for this task.- Specified by:
setDelegationState
in interfaceTask
-
getDelegationStateString
-
setDelegationStateString
-
isDeleted
public boolean isDeleted()- Specified by:
isDeleted
in interfaceEntity
- Overrides:
isDeleted
in classAbstractEntity
-
setDeleted
public void setDeleted(boolean isDeleted) - Specified by:
setDeleted
in interfaceEntity
- Overrides:
setDeleted
in classAbstractEntity
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceled
in interfaceTaskEntity
-
setCanceled
public void setCanceled(boolean isCanceled) - Specified by:
setCanceled
in interfaceTaskEntity
-
getParentTaskId
Description copied from interface:TaskInfo
The parent task for which this task is a subtask- Specified by:
getParentTaskId
in interfaceTaskInfo
-
getVariableInstanceEntities
- Specified by:
getVariableInstanceEntities
in interfaceTaskEntity
- Overrides:
getVariableInstanceEntities
in classVariableScopeImpl
-
getSuspensionState
public int getSuspensionState()- Specified by:
getSuspensionState
in interfaceTaskEntity
-
setSuspensionState
public void setSuspensionState(int suspensionState) - Specified by:
setSuspensionState
in interfaceTaskEntity
-
getCategory
Description copied from interface:TaskInfo
The category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.- Specified by:
getCategory
in interfaceDelegateTask
- Specified by:
getCategory
in interfaceTaskInfo
-
isSuspended
public boolean isSuspended()Description copied from interface:Task
Indicates whether this task is suspended or not.- Specified by:
isSuspended
in interfaceDelegateTask
- Specified by:
isSuspended
in interfaceTask
-
getTaskLocalVariables
Description copied from interface:TaskInfo
Returns the local task variables if requested in the task query- Specified by:
getTaskLocalVariables
in interfaceTaskInfo
-
getProcessVariables
Description copied from interface:TaskInfo
Returns the process variables if requested in the task query- Specified by:
getProcessVariables
in interfaceTaskInfo
-
getCaseVariables
Description copied from interface:TaskInfo
Returns the case variables if requested in the task query- Specified by:
getCaseVariables
in interfaceTaskInfo
-
getTenantId
Description copied from interface:TaskInfo
The tenant identifier of this task- Specified by:
getTenantId
in interfaceDelegateTask
- Specified by:
getTenantId
in interfaceTaskInfo
- Specified by:
getTenantId
in interfaceVariableContainer
-
setTenantId
Description copied from interface:Task
Change the tenantId of the task- Specified by:
setTenantId
in interfaceTask
-
getQueryVariables
- Specified by:
getQueryVariables
in interfaceTaskEntity
-
setQueryVariables
-
getQueryIdentityLinks
-
setQueryIdentityLinks
-
toString
-
isCountEnabled
public boolean isCountEnabled()- Specified by:
isCountEnabled
in interfaceCountingTaskEntity
-
getIsCountEnabled
public boolean getIsCountEnabled() -
setCountEnabled
public void setCountEnabled(boolean isCountEnabled) - Specified by:
setCountEnabled
in interfaceCountingTaskEntity
-
setIsCountEnabled
public void setIsCountEnabled(boolean isCountEnabled) -
setVariableCount
public void setVariableCount(int variableCount) - Specified by:
setVariableCount
in interfaceCountingTaskEntity
-
getVariableCount
public int getVariableCount()- Specified by:
getVariableCount
in interfaceCountingTaskEntity
-
setIdentityLinkCount
public void setIdentityLinkCount(int identityLinkCount) - Specified by:
setIdentityLinkCount
in interfaceCountingTaskEntity
-
getIdentityLinkCount
public int getIdentityLinkCount()- Specified by:
getIdentityLinkCount
in interfaceCountingTaskEntity
-
getSubTaskCount
public int getSubTaskCount()- Specified by:
getSubTaskCount
in interfaceCountingTaskEntity
-
setSubTaskCount
public void setSubTaskCount(int subTaskCount) - Specified by:
setSubTaskCount
in interfaceCountingTaskEntity
-
isIdentityLinksInitialized
public boolean isIdentityLinksInitialized()- Specified by:
isIdentityLinksInitialized
in interfaceTaskEntity
-