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
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
static final String
protected CamundaFormRef
static final String
protected String
protected CaseExecutionEntity
protected String
protected String
protected Date
protected static final List<VariableInstanceLifecycleListener<CoreVariableInstance>>
static final String
protected DelegationState
static final String
static final String
static final String
protected String
protected String
static final String
static final String
protected Date
protected String
protected ExecutionEntity
protected String
static final String
protected Date
protected String
protected String
protected List<PropertyChange>
protected boolean
protected boolean
protected boolean
protected Date
protected TaskEntity.TaskState
protected static final EnginePersistenceLogger
protected String
static final String
protected String
static final String
static final String
protected TaskEntity
protected String
protected int
static final String
protected String
protected ExecutionEntity
protected String
protected Map<String,
PropertyChange> contains all changed properties of this entityprotected int
protected boolean
protected int
protected TaskDefinition
protected String
protected List<IdentityLinkEntity>
protected String
protected VariableStore<VariableInstanceEntity>
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext
Fields inherited from interface org.camunda.bpm.engine.task.Task
PRIORITY_MAXIMUM, PRIORITY_MINIUM, PRIORITY_NORMAL
-
Constructor Summary
ModifierConstructorDescriptionMybatis constructorTaskEntity
(String id) Standalone task constructorTaskEntity
(CaseExecutionEntity caseExecution) CMMN execution constructorTaskEntity
(ExecutionEntity execution) BPMN execution constructorprotected
TaskEntity
(TaskEntity.TaskState initialState) -
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
addCustomLifecycleListener
(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) void
addGroupIdentityLink
(String groupId, String identityLinkType) Involves a group with group task.addIdentityLink
(String userId, String groupId, String type) void
addIdentityLinkChanges
(String type, String oldProperty, String newProperty) void
addUserIdentityLink
(String userId, String identityLinkType) Involves a user with a task.void
void
void
complete()
set status to complete.void
delegates this task to the given user and sets thedelegationState
toDelegationState.PENDING
.void
void
protected void
deleteAuthorizations
(AuthorizationEntity[] authorizations) void
deleteCandidateGroup
(String groupId) Convenience shorthand for#deleteGroupIdentityLink(String, 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
deleteIdentityLink
(String userId, String groupId, String type) void
void
deleteUserIdentityLink
(String userId, String identityLinkType) Removes the association between a user and a task for the given identityLinkType.void
dispatchEvent
(VariableEvent variableEvent) protected void
void
protected void
protected void
boolean
void
escalation
(String escalationCode, Map<String, Object> variables) void
executeMetrics
(String metricsName, CommandContext commandContext) protected void
fireAddIdentityLinkAuthorizationProvider
(String type, String userId, String groupId) protected void
fireAssigneeAuthorizationProvider
(String oldAssignee, String newAssignee) protected boolean
void
protected void
fireAuthorizationProvider
(String property, String oldValue, String newValue) protected void
fireDeleteIdentityLinkAuthorizationProvider
(String type, String userId, String groupId) boolean
void
void
fireIdentityLinkHistoryEvents
(String userId, String groupId, String type, HistoryEventTypes historyEventType) protected void
fireOwnerAuthorizationProvider
(String oldOwner, String newOwner) Provides access to the currentUserTask
Element from the Bpmn Model.Returns theBpmnModelInstance
for 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 currentDelegationState
for 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()
TheuserId
of 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.int
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] highestReference to the process definition or null if it is not related to a process.Returns theProcessEngine
providing access to the public API of the process engine.Returns theProcessEngineServices
providing 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 ResourceAuthorizationProvider
int
int
int
The id of the activity in the process defining this task or null if this is not related to a processReturns the task's tenant id or null in case this task does not belong to a tenant.protected TaskListener
getTimeoutListener
(String timeoutId) protected VariableInstanceFactory<CoreVariableInstance>
protected VariableStore<CoreVariableInstance>
int
hashCode()
void
void
insert()
protected boolean
invokeListener
(String taskEventName, TaskListener taskListener) protected boolean
invokeListener
(CoreExecution currentExecution, String eventName, TaskListener taskListener) protected boolean
boolean
boolean
boolean
Indicated whether this task is suspended or not.void
logUserOperation
(String operation) newIdentityLink
(String userId, String groupId, String type) void
onCommandContextClose
(CommandContext commandContext) void
onCommandFailed
(CommandContext commandContext, Throwable t) protected void
propagateExecutionTenantId
(ExecutionEntity execution) void
protected void
propertyChanged
(String propertyName, Object orgValue, Object newValue) Tracks a property change.provideVariables
(Collection<String> variableNames) protected void
removeCustomLifecycleListener
(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) void
resolve()
protected void
saveAuthorizations
(AuthorizationEntity[] authorizations) void
setAssignee
(String assignee) void
setAssigneeWithoutCascade
(String assignee) void
setCaseDefinitionId
(String caseDefinitionId) void
setCaseExecution
(CaseExecutionEntity caseExecution) void
setCaseExecutionId
(String caseExecutionId) void
setCaseInstanceId
(String caseInstanceId) The case instance id for which this task is associated for.void
setCaseInstanceIdWithoutCascade
(String caseInstanceId) void
setCreateTime
(Date createTime) void
setDelegationState
(DelegationState delegationState) The currentDelegationState
for this task.void
setDelegationStateString
(String delegationState) Setter for mybatis mapper.void
setDelegationStateWithoutCascade
(DelegationState delegationState) void
setDeleted
(boolean isDeleted) void
setDescription
(String description) Change the description of the taskvoid
setDescriptionWithoutCascade
(String description) void
setDueDate
(Date dueDate) Change due date of the task.void
setDueDateWithoutCascade
(Date dueDate) void
setEventName
(String eventName) void
setExecution
(PvmExecutionImpl execution) void
setExecutionId
(String executionId) void
setExecutionVariables
(Map<String, Object> parameters) void
setFollowUpDate
(Date followUpDate) Change follow-up date of the task.void
setFollowUpDateWithoutCascade
(Date followUpDate) void
void
setLastUpdated
(Date lastUpdated) void
Name or title of the task.void
setNameWithoutCascade
(String taskName) void
TheuserId
of the person that is responsible for this task.void
setOwnerWithoutCascade
(String owner) void
setParentTaskId
(String parentTaskId) the parent task for which this task is a subtaskvoid
setParentTaskIdWithoutCascade
(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] highestvoid
setPriorityWithoutCascade
(int priority) void
setProcessDefinitionId
(String processDefinitionId) void
setProcessInstance
(ExecutionEntity processInstance) void
setProcessInstanceId
(String processInstanceId) void
setRevision
(int revision) void
setSuspensionState
(int suspensionState) void
setTaskDefinition
(TaskDefinition taskDefinition) void
setTaskDefinitionKey
(String taskDefinitionKey) void
setTaskDefinitionKeyWithoutCascade
(String taskDefinitionKey) void
setTenantId
(String tenantId) Sets the tenant id for this task.void
setVariablesLocal
(Map<String, ?> variables, boolean skipJavaSerializationFormatCheck) protected boolean
tenantIdIsSame
(TaskEntity otherTask) toString()
boolean
transitionTo
(TaskEntity.TaskState state) boolean
triggerTimeoutEvent
(String timeoutId) boolean
void
update()
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, setVariablesLocal
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
Methods 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
-
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
-
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:DelegateTask
set status to complete.- Specified by:
complete
in interfaceDelegateTask
-
caseExecutionCompleted
public void caseExecutionCompleted() -
delete
-
delete
-
delegate
Description copied from interface:Task
delegates this task to the given user and sets thedelegationState
toDelegationState.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:DbEntity
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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
ensureParentTaskActive
public void ensureParentTaskActive() -
ensureTaskActive
protected void ensureTaskActive() -
getBpmnModelElementInstance
Description copied from interface:DelegateTask
Provides access to the currentUserTask
Element from the Bpmn Model.- Specified by:
getBpmnModelElementInstance
in interfaceBpmnModelExecutionContext
- Specified by:
getBpmnModelElementInstance
in interfaceDelegateTask
- Returns:
- the current
UserTask
Element from the Bpmn Model.
-
getBpmnModelInstance
Description copied from interface:BpmnModelExecutionContext
Returns theBpmnModelInstance
for the currently executed Bpmn Model- Specified by:
getBpmnModelInstance
in interfaceBpmnModelExecutionContext
- Returns:
- the current
BpmnModelInstance
-
getVariableStore
- Specified by:
getVariableStore
in classAbstractVariableScope
-
getVariableInstanceFactory
- Specified by:
getVariableInstanceFactory
in classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()- Specified by:
getVariableInstanceLifecycleListeners
in classAbstractVariableScope
-
addCustomLifecycleListener
public void addCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) -
removeCustomLifecycleListener
public VariableInstanceLifecycleListener<VariableInstanceEntity> removeCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) -
dispatchEvent
- Specified by:
dispatchEvent
in interfaceVariableEventDispatcher
- Overrides:
dispatchEvent
in classAbstractVariableScope
-
provideVariables
- Specified by:
provideVariables
in interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
provideVariables
- Specified by:
provideVariables
in interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
getParentVariableScope
- Specified by:
getParentVariableScope
in classAbstractVariableScope
-
getVariableScopeKey
- Specified by:
getVariableScopeKey
in interfaceVariableScope
- Overrides:
getVariableScopeKey
in classAbstractVariableScope
-
getParentTask
-
getExecution
Description copied from interface:DelegateTask
Returns the execution currently at the task.- Specified by:
getExecution
in interfaceDelegateTask
-
setExecution
-
getCaseExecution
Description copied from interface:DelegateTask
Returns the case execution currently at the task.- Specified by:
getCaseExecution
in interfaceDelegateTask
-
ensureCaseExecutionInitialized
protected void ensureCaseExecutionInitialized() -
setCaseExecution
-
getCaseExecutionId
Description copied from interface:Task
Reference to the path of case execution or null if it is not related to a case instance.- Specified by:
getCaseExecutionId
in interfaceDelegateTask
- Specified by:
getCaseExecutionId
in interfaceTask
-
setCaseExecutionId
-
getCaseInstanceId
Description copied from interface:Task
Reference to the case instance or null if it is not related to a case instance.- Specified by:
getCaseInstanceId
in interfaceDelegateTask
- Specified by:
getCaseInstanceId
in interfaceTask
-
setCaseInstanceId
Description copied from interface:Task
The case instance id for which this task is associated for.- Specified by:
setCaseInstanceId
in interfaceTask
-
getCaseDefinition
-
getCaseDefinitionId
Description copied from interface:Task
Reference to the case definition or null if it is not related to a case.- Specified by:
getCaseDefinitionId
in interfaceDelegateTask
- Specified by:
getCaseDefinitionId
in 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:DelegateTask
Retrieves the candidate users and groups associated with the task.- Specified by:
getCandidates
in interfaceDelegateTask
- Returns:
- set of
IdentityLink
s of typeIdentityLinkType.CANDIDATE
.
-
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
-
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
).
-
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
).
-
deleteCandidateGroup
Description copied from interface:DelegateTask
Convenience shorthand for#deleteGroupIdentityLink(String, String, String)
; with typeIdentityLinkType.CANDIDATE
- Specified by:
deleteCandidateGroup
in interfaceDelegateTask
- Parameters:
groupId
- id of the group to use as candidate, cannot be null.
-
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.
-
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
).
-
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
).
-
getIdentityLinks
-
getActivityInstanceVariables
-
setExecutionVariables
-
toString
-
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
- Specified by:
setAssignee
in interfaceDelegateTask
- Specified by:
setAssignee
in interfaceTask
-
setOwner
Description copied from interface:Task
TheuserId
of the person that is responsible for this task. This is used when a task isdelegated
.- Specified by:
setOwner
in interfaceDelegateTask
- Specified by:
setOwner
in interfaceTask
-
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
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- Specified by:
setPriority
in interfaceDelegateTask
- Specified by:
setPriority
in interfaceTask
-
setParentTaskId
Description copied from interface:Task
the parent task for which this task is a subtask- Specified by:
setParentTaskId
in 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:Task
DB id of the task. -
setId
-
getRevision
public int getRevision()- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision) - Specified by:
setRevision
in interfaceHasDbRevision
-
getName
Description copied from interface:Task
Name or title of the task.- Specified by:
getName
in interfaceDelegateTask
- Specified by:
getName
in interfaceTask
-
getDescription
Description copied from interface:Task
Free text description of the task.- Specified by:
getDescription
in interfaceDelegateTask
- Specified by:
getDescription
in interfaceTask
-
getDueDate
Description copied from interface:Task
Due date of the task.- Specified by:
getDueDate
in interfaceDelegateTask
- Specified by:
getDueDate
in interfaceTask
-
getPriority
public int getPriority()Description copied from interface:Task
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- Specified by:
getPriority
in interfaceDelegateTask
- Specified by:
getPriority
in interfaceTask
-
getCreateTime
Description copied from interface:Task
The date/time when this task was created- Specified by:
getCreateTime
in interfaceDelegateTask
- Specified by:
getCreateTime
in interfaceTask
-
setCreateTime
-
getLastUpdated
Description copied from interface:Task
The date/time when this task was last updated. All operations that fireTaskListener.EVENTNAME_UPDATE
count as an update to the task. Returns null if the task was never updated before (i.e. it was only created).- Specified by:
getLastUpdated
in interfaceDelegateTask
- Specified by:
getLastUpdated
in interfaceTask
-
setLastUpdated
-
getExecutionId
Description copied from interface:Task
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 interfaceTask
-
getProcessInstanceId
Description copied from interface:Task
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 interfaceTask
-
isStandaloneTask
public boolean isStandaloneTask() -
getProcessDefinition
-
getProcessDefinitionId
Description copied from interface:Task
Reference to the process definition or null if it is not related to a process.- Specified by:
getProcessDefinitionId
in interfaceDelegateTask
- Specified by:
getProcessDefinitionId
in interfaceTask
-
initializeFormKey
public void initializeFormKey() -
getFormKey
Description copied from interface:Task
Provides 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:
getFormKey
in interfaceTask
- Returns:
- the form key for this task
-
getCamundaFormRef
Description copied from interface:Task
Provides 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:
getCamundaFormRef
in interfaceTask
- Returns:
- the reference key, binding type and version (if type is
version
)
-
setProcessDefinitionId
-
getAssignee
Description copied from interface:Task
- Specified by:
getAssignee
in interfaceDelegateTask
- Specified by:
getAssignee
in interfaceTask
-
getTaskDefinitionKey
Description copied from interface:Task
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 interfaceTask
-
setTaskDefinitionKey
-
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
-
setExecutionId
-
getProcessInstance
-
setProcessInstance
-
setProcessInstanceId
-
getOwner
Description copied from interface:Task
TheuserId
of the person that is responsible for this task. This is used when a task isdelegated
.- Specified by:
getOwner
in interfaceDelegateTask
- Specified by:
getOwner
in interfaceTask
-
getDelegationState
Description copied from interface:Task
The currentDelegationState
for this task.- Specified by:
getDelegationState
in interfaceTask
-
setDelegationState
Description copied from interface:Task
The currentDelegationState
for this task.- Specified by:
setDelegationState
in interfaceTask
-
getDelegationStateString
-
isDeleted
public boolean isDeleted() -
getDeleteReason
Description copied from interface:DelegateTask
Get delete reason of the task.- Specified by:
getDeleteReason
in interfaceDelegateTask
-
setDeleted
public void setDeleted(boolean isDeleted) -
getParentTaskId
Description copied from interface:Task
the parent task for which this task is a subtask- Specified by:
getParentTaskId
in interfaceTask
-
getSuspensionState
public int getSuspensionState() -
setSuspensionState
public void setSuspensionState(int suspensionState) -
isSuspended
public boolean isSuspended()Description copied from interface:Task
Indicated whether this task is suspended or not.- Specified by:
isSuspended
in interfaceTask
-
getFollowUpDate
Description copied from interface:Task
Follow-up date of the task.- Specified by:
getFollowUpDate
in interfaceDelegateTask
- Specified by:
getFollowUpDate
in interfaceTask
-
getTenantId
Description copied from interface:Task
Returns the task's tenant id or null in case this task does not belong to a tenant.- Specified by:
getTenantId
in interfaceDelegateTask
- Specified by:
getTenantId
in interfaceTask
- Returns:
- the task's tenant id or null
-
setTenantId
Description copied from interface:Task
Sets the tenant id for this task.- Specified by:
setTenantId
in interfaceTask
- Parameters:
tenantId
- the tenant id to set
-
setFollowUpDate
Description copied from interface:Task
Change follow-up date of the task.- Specified by:
setFollowUpDate
in interfaceDelegateTask
- Specified by:
setFollowUpDate
in interfaceTask
-
getVariablesInternal
-
onCommandContextClose
- Specified by:
onCommandContextClose
in interfaceCommandContextListener
-
onCommandFailed
- Specified by:
onCommandFailed
in interfaceCommandContextListener
-
registerCommandContextCloseListener
protected void registerCommandContextCloseListener() -
getPropertyChanges
-
logUserOperation
-
fireHistoricIdentityLinks
public void fireHistoricIdentityLinks() -
getProcessEngineServices
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngineServices
providing access to the public API of the process engine.- Specified by:
getProcessEngineServices
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngineServices
.
-
getProcessEngine
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngine
providing access to the public API of the process engine.- Specified by:
getProcessEngine
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngine
.
-
hashCode
public int hashCode() -
equals
-
executeMetrics
-
addIdentityLinkChanges
-
setVariablesLocal
- Overrides:
setVariablesLocal
in classAbstractVariableScope
-
getReferencedEntityIds
Description copied from interface:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntityIds
in 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:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClass
in 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
-
escalation
-