Class TaskEntity
java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
org.camunda.bpm.engine.impl.persistence.entity.TaskEntity
- All Implemented Interfaces:
Serializable,BpmnModelExecutionContext,DelegateTask,ProcessEngineServicesAware,VariableScope,VariableEventDispatcher,VariableStore.VariablesProvider<VariableInstanceEntity>,DbEntity,HasDbReferences,HasDbRevision,CommandContextListener,Task
public class TaskEntity
extends AbstractVariableScope
implements Task, DelegateTask, Serializable, DbEntity, HasDbRevision, HasDbReferences, CommandContextListener, VariableStore.VariablesProvider<VariableInstanceEntity>
- Author:
- Tom Baeyens, Joram Barrez, Falko Menge, Deivarayan Azhagappan
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringprotected booleanprotected CamundaFormRefstatic final Stringprotected Stringprotected CaseExecutionEntityprotected Stringprotected Stringprotected booleanprotected Dateprotected static final List<VariableInstanceLifecycleListener<CoreVariableInstance>>static final Stringprotected DelegationStatestatic final Stringstatic final Stringstatic final Stringprotected Stringprotected Stringstatic final Stringstatic final Stringprotected Dateprotected Stringprotected ExecutionEntityprotected Stringstatic final Stringprotected Dateprotected Stringprotected Stringprotected List<PropertyChange>protected booleanprotected booleanprotected booleanprotected Dateprotected TaskEntity.TaskStateprotected static final EnginePersistenceLoggerprotected Stringstatic final Stringprotected Stringstatic final Stringstatic final Stringprotected TaskEntityprotected Stringprotected intstatic final Stringprotected Stringprotected ExecutionEntityprotected Stringprotected Map<String,PropertyChange> contains all changed properties of this entityprotected intprotected booleanprotected intprotected TaskDefinitionprotected Stringprotected List<IdentityLinkEntity>protected StringTask State of taskprotected Stringprotected VariableStore<VariableInstanceEntity>Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContextFields inherited from interface org.camunda.bpm.engine.task.Task
PRIORITY_MAXIMUM, PRIORITY_MINIUM, PRIORITY_NORMAL -
Constructor Summary
ConstructorsModifierConstructorDescriptionMybatis constructorTaskEntity(String id) Standalone task constructorTaskEntity(CaseExecutionEntity caseExecution) CMMN execution constructorTaskEntity(ExecutionEntity execution) BPMN execution constructorprotectedTaskEntity(TaskEntity.TaskState initialState) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCandidateGroup(String groupId) Adds the given group as candidate group to this taskvoidaddCandidateGroups(Collection<String> candidateGroups) Adds multiple groups as candidate group to this task.voidaddCandidateUser(String userId) Adds the given user as a candidate user to this task.voidaddCandidateUsers(Collection<String> candidateUsers) Adds multiple users as candidate user to this task.voidaddCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) voidaddGroupIdentityLink(String groupId, String identityLinkType) Involves a group with group task.addIdentityLink(String userId, String groupId, String type) voidaddIdentityLinkChanges(String type, String oldProperty, String newProperty) voidaddUserIdentityLink(String userId, String identityLinkType) Involves a user with a task.voidvoidvoidcomplete()set status to complete.voiddelegates this task to the given user and sets thedelegationStatetoDelegationState.PENDING.voidvoidprotected voiddeleteAuthorizations(AuthorizationEntity[] authorizations) voiddeleteCandidateGroup(String groupId) Convenience shorthand for#deleteGroupIdentityLink(String, String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteCandidateUser(String userId) Convenience shorthand forDelegateTask.deleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteGroupIdentityLink(String groupId, String identityLinkType) Removes the association between a group and a task for the given identityLinkType.voiddeleteIdentityLink(String userId, String groupId, String type) voidvoiddeleteUserIdentityLink(String userId, String identityLinkType) Removes the association between a user and a task for the given identityLinkType.voiddispatchEvent(VariableEvent variableEvent) protected voidvoidprotected voidprotected voidbooleanvoidescalation(String escalationCode, Map<String, Object> variables) voidexecuteMetrics(String metricsName, CommandContext commandContext) protected voidfireAddIdentityLinkAuthorizationProvider(String type, String userId, String groupId) protected voidfireAssigneeAuthorizationProvider(String oldAssignee, String newAssignee) protected booleanvoidprotected voidfireAuthorizationProvider(String property, String oldValue, String newValue) protected voidfireDeleteIdentityLinkAuthorizationProvider(String type, String userId, String groupId) booleanvoidvoidfireIdentityLinkHistoryEvents(String userId, String groupId, String type, HistoryEventTypes historyEventType) protected voidfireOwnerAuthorizationProvider(String oldOwner, String newOwner) Provides access to the currentUserTaskElement from the Bpmn Model.Returns theBpmnModelInstancefor the currently executed Bpmn ModelProvides the form binding reference to the Camunda Form for the task.Retrieves the candidate users and groups associated with the task.Reference to the case definition or null if it is not related to a case.Returns the case execution currently at the task.Reference to the path of case execution or null if it is not related to a case instance.Reference to the case instance or null if it is not related to a case instance.The date/time when this task was createdThe currentDelegationStatefor this task.Get delete reason of the task.Free text description of the task.Due date of the task.Returns the event name which triggered the task listener to fire for this task.Returns the execution currently at the task.Reference to the path of execution or null if it is not related to a process instance.Follow-up date of the task.Provides the form key for the task.getId()DB id of the task.The date/time when this task was last updated.protected List<TaskListener>getListenersForEvent(String event) getName()Name or title of the task.getOwner()TheuserIdof the person that is responsible for this task.the parent task for which this task is a subtaskReturns a representation of the object, as would be stored in the database.intindication 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] highestReference to the process definition or null if it is not related to a process.Returns theProcessEngineproviding access to the public API of the process engine.Returns theProcessEngineServicesproviding access to the public API of the process engine.Reference to the process instance or null if it is not related to a process instance.Scope: IN-MEMORY referencesScope: IN-MEMORY referencesprotected ResourceAuthorizationProviderintintintThe id of the activity in the process defining this task or null if this is not related to a processReturns the task's state.Returns the task's tenant id or null in case this task does not belong to a tenant.protected TaskListenergetTimeoutListener(String timeoutId) protected VariableInstanceFactory<CoreVariableInstance>protected VariableStore<CoreVariableInstance>booleanReturns if an attachment exists for the taskbooleanSignifies if a comment exists for the taskinthashCode()voidvoidvoidinsert()protected booleaninvokeListener(String taskEventName, TaskListener taskListener) protected booleaninvokeListener(CoreExecution currentExecution, String eventName, TaskListener taskListener) protected booleanbooleanbooleanbooleanIndicated whether this task is suspended or not.voidlogUserOperation(String operation) newIdentityLink(String userId, String groupId, String type) voidonCommandContextClose(CommandContext commandContext) voidonCommandFailed(CommandContext commandContext, Throwable t) protected voidpropagateExecutionTenantId(ExecutionEntity execution) voidprotected voidpropertyChanged(String propertyName, Object orgValue, Object newValue) Tracks a property change.provideVariables(Collection<String> variableNames) protected voidremoveCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) voidresolve()protected voidsaveAuthorizations(AuthorizationEntity[] authorizations) voidsetAssignee(String assignee) voidsetAssigneeWithoutCascade(String assignee) voidsetCaseDefinitionId(String caseDefinitionId) voidsetCaseExecution(CaseExecutionEntity caseExecution) voidsetCaseExecutionId(String caseExecutionId) voidsetCaseInstanceId(String caseInstanceId) The case instance id for which this task is associated for.voidsetCaseInstanceIdWithoutCascade(String caseInstanceId) voidsetCreateTime(Date createTime) voidsetDelegationState(DelegationState delegationState) The currentDelegationStatefor this task.voidsetDelegationStateString(String delegationState) Setter for mybatis mapper.voidsetDelegationStateWithoutCascade(DelegationState delegationState) voidsetDeleted(boolean isDeleted) voidsetDescription(String description) Change the description of the taskvoidsetDescriptionWithoutCascade(String description) voidsetDueDate(Date dueDate) Change due date of the task.voidsetDueDateWithoutCascade(Date dueDate) voidsetEventName(String eventName) voidsetExecution(PvmExecutionImpl execution) voidsetExecutionId(String executionId) voidsetExecutionVariables(Map<String, Object> parameters) voidsetFollowUpDate(Date followUpDate) Change follow-up date of the task.voidsetFollowUpDateWithoutCascade(Date followUpDate) voidvoidsetLastUpdated(Date lastUpdated) voidName or title of the task.voidsetNameWithoutCascade(String taskName) voidTheuserIdof the person that is responsible for this task.voidsetOwnerWithoutCascade(String owner) voidsetParentTaskId(String parentTaskId) the parent task for which this task is a subtaskvoidsetParentTaskIdWithoutCascade(String parentTaskId) voidsetPriority(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] highestvoidsetPriorityWithoutCascade(int priority) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessInstance(ExecutionEntity processInstance) voidsetProcessInstanceId(String processInstanceId) voidsetRevision(int revision) voidsetSuspensionState(int suspensionState) voidsetTaskDefinition(TaskDefinition taskDefinition) voidsetTaskDefinitionKey(String taskDefinitionKey) voidsetTaskDefinitionKeyWithoutCascade(String taskDefinitionKey) voidsetTaskState(String taskState) Sets the task state for this task.voidsetTenantId(String tenantId) Sets the tenant id for this task.voidsetVariablesLocal(Map<String, ?> variables, boolean skipJavaSerializationFormatCheck) protected booleantenantIdIsSame(TaskEntity otherTask) toString()booleantransitionTo(TaskEntity.TaskState state) booleantriggerTimeoutEvent(String timeoutId) booleanvoidupdate()Methods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntitiesMethods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
-
Field Details
-
LOG
-
DEFAULT_VARIABLE_LIFECYCLE_LISTENERS
protected static final List<VariableInstanceLifecycleListener<CoreVariableInstance>> DEFAULT_VARIABLE_LIFECYCLE_LISTENERS -
DELETE_REASON_COMPLETED
- See Also:
-
DELETE_REASON_DELETED
- See Also:
-
id
-
revision
protected int revision -
owner
-
assignee
-
delegationState
-
parentTaskId
-
parentTask
-
name
-
description
-
priority
protected int priority -
createTime
-
lastUpdated
-
dueDate
-
followUpDate
-
suspensionState
protected int suspensionState -
lifecycleState
-
tenantId
-
taskState
Task State of task -
isIdentityLinksInitialized
protected boolean isIdentityLinksInitialized -
taskIdentityLinkEntities
-
executionId
-
execution
-
processInstanceId
-
processInstance
-
processDefinitionId
-
caseExecutionId
-
caseExecution
-
caseInstanceId
-
caseDefinitionId
-
taskDefinition
-
taskDefinitionKey
-
isDeleted
protected boolean isDeleted -
deleteReason
-
eventName
-
isFormKeyInitialized
protected boolean isFormKeyInitialized -
formKey
-
camundaFormRef
-
attachmentExists
protected boolean attachmentExists -
commentExists
protected boolean commentExists -
variableStore
-
skipCustomListeners
protected transient boolean skipCustomListeners -
propertyChanges
contains all changed properties of this entity -
identityLinkChanges
-
customLifecycleListeners
-
ASSIGNEE
- See Also:
-
DELEGATION
- See Also:
-
DELETE
- See Also:
-
DESCRIPTION
- See Also:
-
DUE_DATE
- See Also:
-
FOLLOW_UP_DATE
- See Also:
-
NAME
- See Also:
-
OWNER
- See Also:
-
PARENT_TASK
- See Also:
-
PRIORITY
- See Also:
-
CASE_INSTANCE_ID
- See Also:
-
-
Constructor Details
-
TaskEntity
public TaskEntity()Mybatis constructor -
TaskEntity
Standalone task constructor -
TaskEntity
-
TaskEntity
BPMN execution constructor -
TaskEntity
CMMN execution constructor
-
-
Method Details
-
insert
public void insert() -
propagateExecutionTenantId
-
propagateParentTaskTenantId
public void propagateParentTaskTenantId() -
update
public void update() -
ensureTenantIdNotChanged
protected void ensureTenantIdNotChanged() -
tenantIdIsSame
-
complete
public void complete()Description copied from interface:DelegateTaskset status to complete.- Specified by:
completein interfaceDelegateTask
-
caseExecutionCompleted
public void caseExecutionCompleted() -
delete
-
delete
-
delegate
Description copied from interface:Taskdelegates this task to the given user and sets thedelegationStatetoDelegationState.PENDING. If no owner is set on the task, the owner is set to the current assignee of the task. -
resolve
public void resolve() -
getPersistentState
Description copied from interface:DbEntityReturns 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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNextin interfaceHasDbRevision
-
ensureParentTaskActive
public void ensureParentTaskActive() -
ensureTaskActive
protected void ensureTaskActive() -
getBpmnModelElementInstance
Description copied from interface:DelegateTaskProvides access to the currentUserTaskElement from the Bpmn Model.- Specified by:
getBpmnModelElementInstancein interfaceBpmnModelExecutionContext- Specified by:
getBpmnModelElementInstancein interfaceDelegateTask- Returns:
- the current
UserTaskElement from the Bpmn Model.
-
getBpmnModelInstance
Description copied from interface:BpmnModelExecutionContextReturns theBpmnModelInstancefor the currently executed Bpmn Model- Specified by:
getBpmnModelInstancein interfaceBpmnModelExecutionContext- Returns:
- the current
BpmnModelInstance
-
getVariableStore
- Specified by:
getVariableStorein classAbstractVariableScope
-
getVariableInstanceFactory
- Specified by:
getVariableInstanceFactoryin classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()- Specified by:
getVariableInstanceLifecycleListenersin classAbstractVariableScope
-
addCustomLifecycleListener
public void addCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) -
removeCustomLifecycleListener
public VariableInstanceLifecycleListener<VariableInstanceEntity> removeCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) -
dispatchEvent
- Specified by:
dispatchEventin interfaceVariableEventDispatcher- Overrides:
dispatchEventin classAbstractVariableScope
-
provideVariables
- Specified by:
provideVariablesin interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
provideVariables
- Specified by:
provideVariablesin interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
getParentVariableScope
- Specified by:
getParentVariableScopein classAbstractVariableScope
-
getVariableScopeKey
- Specified by:
getVariableScopeKeyin interfaceVariableScope- Overrides:
getVariableScopeKeyin classAbstractVariableScope
-
getParentTask
-
getExecution
Description copied from interface:DelegateTaskReturns the execution currently at the task.- Specified by:
getExecutionin interfaceDelegateTask
-
setExecution
-
getCaseExecution
Description copied from interface:DelegateTaskReturns the case execution currently at the task.- Specified by:
getCaseExecutionin interfaceDelegateTask
-
ensureCaseExecutionInitialized
protected void ensureCaseExecutionInitialized() -
setCaseExecution
-
getCaseExecutionId
Description copied from interface:TaskReference to the path of case execution or null if it is not related to a case instance.- Specified by:
getCaseExecutionIdin interfaceDelegateTask- Specified by:
getCaseExecutionIdin interfaceTask
-
setCaseExecutionId
-
getCaseInstanceId
Description copied from interface:TaskReference to the case instance or null if it is not related to a case instance.- Specified by:
getCaseInstanceIdin interfaceDelegateTask- Specified by:
getCaseInstanceIdin interfaceTask
-
setCaseInstanceId
Description copied from interface:TaskThe case instance id for which this task is associated for.- Specified by:
setCaseInstanceIdin interfaceTask
-
getCaseDefinition
-
getCaseDefinitionId
Description copied from interface:TaskReference to the case definition or null if it is not related to a case.- Specified by:
getCaseDefinitionIdin interfaceDelegateTask- Specified by:
getCaseDefinitionIdin interfaceTask
-
setCaseDefinitionId
-
addIdentityLink
-
fireIdentityLinkHistoryEvents
public void fireIdentityLinkHistoryEvents(String userId, String groupId, String type, HistoryEventTypes historyEventType) -
newIdentityLink
-
deleteIdentityLink
-
deleteIdentityLinks
public void deleteIdentityLinks() -
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.
-
addCandidateUser
Description copied from interface:DelegateTaskAdds the given user as a candidate user to this task.- Specified by:
addCandidateUserin interfaceDelegateTask
-
addCandidateUsers
Description copied from interface:DelegateTaskAdds multiple users as candidate user to this task.- Specified by:
addCandidateUsersin interfaceDelegateTask
-
addCandidateGroup
Description copied from interface:DelegateTaskAdds the given group as candidate group to this task- Specified by:
addCandidateGroupin interfaceDelegateTask
-
addCandidateGroups
Description copied from interface:DelegateTaskAdds multiple groups as candidate group to this task.- Specified by:
addCandidateGroupsin interfaceDelegateTask
-
addGroupIdentityLink
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).
-
addUserIdentityLink
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).
-
deleteCandidateGroup
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
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
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
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
-
getActivityInstanceVariables
-
setExecutionVariables
-
toString
-
setName
Description copied from interface:TaskName or title of the task.- Specified by:
setNamein interfaceDelegateTask- Specified by:
setNamein interfaceTask
-
setDescription
Description copied from interface:TaskChange the description of the task- Specified by:
setDescriptionin interfaceDelegateTask- Specified by:
setDescriptionin interfaceTask
-
setAssignee
Description copied from interface:Task- Specified by:
setAssigneein interfaceDelegateTask- Specified by:
setAssigneein interfaceTask
-
setOwner
Description copied from interface:TaskTheuserIdof the person that is responsible for this task. This is used when a task isdelegated.- Specified by:
setOwnerin interfaceDelegateTask- Specified by:
setOwnerin interfaceTask
-
setDueDate
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:Taskindication 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- Specified by:
setPriorityin interfaceDelegateTask- Specified by:
setPriorityin interfaceTask
-
setParentTaskId
Description copied from interface:Taskthe parent task for which this task is a subtask- Specified by:
setParentTaskIdin interfaceTask
-
setNameWithoutCascade
-
setDescriptionWithoutCascade
-
setAssigneeWithoutCascade
-
setOwnerWithoutCascade
-
setDueDateWithoutCascade
-
setPriorityWithoutCascade
public void setPriorityWithoutCascade(int priority) -
setCaseInstanceIdWithoutCascade
-
setParentTaskIdWithoutCascade
-
setTaskDefinitionKeyWithoutCascade
-
setDelegationStateWithoutCascade
-
setDelegationStateString
Setter for mybatis mapper.- Parameters:
delegationState- the delegation state as string
-
setFollowUpDateWithoutCascade
-
fireEvent
- Returns:
- true if invoking the listener was successful; if not successful, either false is returned (case: BPMN error propagation) or an exception is thrown
-
getListenersForEvent
-
getTimeoutListener
-
invokeListener
-
invokeListener
protected boolean invokeListener(CoreExecution currentExecution, String eventName, TaskListener taskListener) throws Exception - Returns:
- true if the next listener can be invoked; false if not
- Throws:
Exception
-
propertyChanged
Tracks a property change. Therefore the original and new value are stored in a map. It tracks multiple changes and if a property finally is changed back to the original value, then the change is removed.- Parameters:
propertyName-orgValue-newValue-
-
fireAuthorizationProvider
public void fireAuthorizationProvider() -
transitionTo
-
triggerUpdateEvent
public boolean triggerUpdateEvent() -
triggerTimeoutEvent
- Returns:
- true if invoking the listener was successful; if not successful, either false is returned (case: BPMN error propagation) or an exception is thrown
-
fireAssignmentEvent
protected boolean fireAssignmentEvent() -
fireAssigneeAuthorizationProvider
-
fireOwnerAuthorizationProvider
-
fireAuthorizationProvider
-
fireAddIdentityLinkAuthorizationProvider
-
fireDeleteIdentityLinkAuthorizationProvider
-
getResourceAuthorizationProvider
-
saveAuthorizations
-
deleteAuthorizations
-
isAuthorizationEnabled
protected boolean isAuthorizationEnabled() -
setTaskDefinition
-
getTaskDefinition
-
getId
Description copied from interface:TaskDB id of the task. -
setId
-
getRevision
public int getRevision()- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision) - Specified by:
setRevisionin interfaceHasDbRevision
-
getName
Description copied from interface:TaskName or title of the task.- Specified by:
getNamein interfaceDelegateTask- Specified by:
getNamein interfaceTask
-
getDescription
Description copied from interface:TaskFree text description of the task.- Specified by:
getDescriptionin interfaceDelegateTask- Specified by:
getDescriptionin interfaceTask
-
getDueDate
Description copied from interface:TaskDue date of the task.- Specified by:
getDueDatein interfaceDelegateTask- Specified by:
getDueDatein interfaceTask
-
getPriority
public int getPriority()Description copied from interface:Taskindication 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- Specified by:
getPriorityin interfaceDelegateTask- Specified by:
getPriorityin interfaceTask
-
getCreateTime
Description copied from interface:TaskThe date/time when this task was created- Specified by:
getCreateTimein interfaceDelegateTask- Specified by:
getCreateTimein interfaceTask
-
setCreateTime
-
getLastUpdated
Description copied from interface:TaskThe date/time when this task was last updated. All operations that fireTaskListener.EVENTNAME_UPDATEcount as an update to the task. Returns null if the task was never updated before (i.e. it was only created).- Specified by:
getLastUpdatedin interfaceDelegateTask- Specified by:
getLastUpdatedin interfaceTask
-
setLastUpdated
-
getExecutionId
Description copied from interface:TaskReference to the path of execution or null if it is not related to a process instance.- Specified by:
getExecutionIdin interfaceDelegateTask- Specified by:
getExecutionIdin interfaceTask
-
getProcessInstanceId
Description copied from interface:TaskReference to the process instance or null if it is not related to a process instance.- Specified by:
getProcessInstanceIdin interfaceDelegateTask- Specified by:
getProcessInstanceIdin interfaceTask
-
isStandaloneTask
public boolean isStandaloneTask() -
getProcessDefinition
-
getProcessDefinitionId
Description copied from interface:TaskReference to the process definition or null if it is not related to a process.- Specified by:
getProcessDefinitionIdin interfaceDelegateTask- Specified by:
getProcessDefinitionIdin interfaceTask
-
initializeFormKey
public void initializeFormKey() -
initializeAttachmentAndComments
public void initializeAttachmentAndComments() -
getFormKey
Description copied from interface:TaskProvides the form key for the task.NOTE: If the task instance is obtained through a query, this property is only populated in case the
TaskQuery.initializeFormKeys()method is called. If this method is called without a prior call toTaskQuery.initializeFormKeys(), it will throw aBadUserRequestException.- Specified by:
getFormKeyin interfaceTask- Returns:
- the form key for this task
-
getCamundaFormRef
Description copied from interface:TaskProvides the form binding reference to the Camunda Form for the task.NOTE: If the task instance is obtained through a query, this property is only populated in case the
TaskQuery.initializeFormKeys()method is called. If this method is called without a prior call toTaskQuery.initializeFormKeys(), it will throw aBadUserRequestException.- Specified by:
getCamundaFormRefin interfaceTask- Returns:
- the reference key, binding type and version (if type is
version)
-
setProcessDefinitionId
-
getAssignee
Description copied from interface:Task- Specified by:
getAssigneein interfaceDelegateTask- Specified by:
getAssigneein interfaceTask
-
getTaskDefinitionKey
Description copied from interface:TaskThe 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 interfaceTask
-
setTaskDefinitionKey
-
getEventName
Description copied from interface:DelegateTaskReturns the event name which triggered the task listener to fire for this task.- Specified by:
getEventNamein interfaceDelegateTask
-
setEventName
-
setExecutionId
-
getProcessInstance
-
setProcessInstance
-
setProcessInstanceId
-
getOwner
Description copied from interface:TaskTheuserIdof the person that is responsible for this task. This is used when a task isdelegated.- Specified by:
getOwnerin interfaceDelegateTask- Specified by:
getOwnerin interfaceTask
-
getDelegationState
Description copied from interface:TaskThe currentDelegationStatefor this task.- Specified by:
getDelegationStatein interfaceTask
-
setDelegationState
Description copied from interface:TaskThe currentDelegationStatefor this task.- Specified by:
setDelegationStatein interfaceTask
-
getDelegationStateString
-
isDeleted
public boolean isDeleted() -
getDeleteReason
Description copied from interface:DelegateTaskGet delete reason of the task.- Specified by:
getDeleteReasonin interfaceDelegateTask
-
setDeleted
public void setDeleted(boolean isDeleted) -
getParentTaskId
Description copied from interface:Taskthe parent task for which this task is a subtask- Specified by:
getParentTaskIdin interfaceTask
-
getSuspensionState
public int getSuspensionState() -
setSuspensionState
public void setSuspensionState(int suspensionState) -
isSuspended
public boolean isSuspended()Description copied from interface:TaskIndicated whether this task is suspended or not.- Specified by:
isSuspendedin interfaceTask
-
getFollowUpDate
Description copied from interface:TaskFollow-up date of the task.- Specified by:
getFollowUpDatein interfaceDelegateTask- Specified by:
getFollowUpDatein interfaceTask
-
getTenantId
Description copied from interface:TaskReturns the task's tenant id or null in case this task does not belong to a tenant.- Specified by:
getTenantIdin interfaceDelegateTask- Specified by:
getTenantIdin interfaceTask- Returns:
- the task's tenant id or null
-
setTenantId
Description copied from interface:TaskSets the tenant id for this task.- Specified by:
setTenantIdin interfaceTask- Parameters:
tenantId- the tenant id to set
-
getTaskState
Description copied from interface:TaskReturns the task's state.- Specified by:
getTaskStatein interfaceTask- Returns:
- the task's state
-
setTaskState
Description copied from interface:TaskSets the task state for this task.- Specified by:
setTaskStatein interfaceTask- Parameters:
taskState- the taskState to set
-
setFollowUpDate
Description copied from interface:TaskChange follow-up date of the task.- Specified by:
setFollowUpDatein interfaceDelegateTask- Specified by:
setFollowUpDatein interfaceTask
-
getVariablesInternal
-
onCommandContextClose
- Specified by:
onCommandContextClosein interfaceCommandContextListener
-
onCommandFailed
- Specified by:
onCommandFailedin interfaceCommandContextListener
-
registerCommandContextCloseListener
protected void registerCommandContextCloseListener() -
getPropertyChanges
-
logUserOperation
-
fireHistoricIdentityLinks
public void fireHistoricIdentityLinks() -
getProcessEngineServices
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineServicesproviding access to the public API of the process engine.- Specified by:
getProcessEngineServicesin interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngineServices.
-
getProcessEngine
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineproviding access to the public API of the process engine.- Specified by:
getProcessEnginein interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngine.
-
hashCode
public int hashCode() -
equals
-
executeMetrics
-
addIdentityLinkChanges
-
setVariablesLocal
- Overrides:
setVariablesLocalin classAbstractVariableScope
-
getReferencedEntityIds
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntityIdsin interfaceHasDbReferences- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
-
getReferencedEntitiesIdAndClass
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClassin interfaceHasDbReferences- Returns:
- a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
-
bpmnError
-
hasAttachment
public boolean hasAttachment()Description copied from interface:TaskReturns if an attachment exists for the task- Specified by:
hasAttachmentin interfaceTask
-
hasComment
public boolean hasComment()Description copied from interface:TaskSignifies if a comment exists for the task- Specified by:
hasCommentin interfaceTask
-
escalation
-