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:
java.io.Serializable,BpmnModelExecutionContext,DelegateTask,ProcessEngineServicesAware,VariableScope,VariableEventDispatcher,VariableStore.VariablesProvider<VariableInstanceEntity>,DbEntity,HasDbReferences,HasDbRevision,CommandContextListener,Task
public class TaskEntity extends AbstractVariableScope implements Task, DelegateTask, java.io.Serializable, DbEntity, HasDbRevision, HasDbReferences, CommandContextListener, VariableStore.VariablesProvider<VariableInstanceEntity>
- Author:
- Tom Baeyens, Joram Barrez, Falko Menge, Deivarayan Azhagappan
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskEntity.TaskState
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringassigneestatic java.lang.StringASSIGNEEprotected CamundaFormRefcamundaFormRefstatic java.lang.StringCASE_INSTANCE_IDprotected java.lang.StringcaseDefinitionIdprotected CaseExecutionEntitycaseExecutionprotected java.lang.StringcaseExecutionIdprotected java.lang.StringcaseInstanceIdprotected java.util.DatecreateTimeprotected java.util.List<VariableInstanceLifecycleListener<VariableInstanceEntity>>customLifecycleListenersprotected static java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>>DEFAULT_VARIABLE_LIFECYCLE_LISTENERSstatic java.lang.StringDELEGATIONprotected DelegationStatedelegationStatestatic java.lang.StringDELETEstatic java.lang.StringDELETE_REASON_COMPLETEDstatic java.lang.StringDELETE_REASON_DELETEDprotected java.lang.StringdeleteReasonprotected java.lang.Stringdescriptionstatic java.lang.StringDESCRIPTIONstatic java.lang.StringDUE_DATEprotected java.util.DatedueDateprotected java.lang.StringeventNameprotected ExecutionEntityexecutionprotected java.lang.StringexecutionIdstatic java.lang.StringFOLLOW_UP_DATEprotected java.util.DatefollowUpDateprotected java.lang.StringformKeyprotected java.lang.Stringidprotected java.util.List<PropertyChange>identityLinkChangesprotected booleanisDeletedprotected booleanisFormKeyInitializedprotected booleanisIdentityLinksInitializedprotected TaskEntity.TaskStatelifecycleStateprotected static EnginePersistenceLoggerLOGprotected java.lang.Stringnamestatic java.lang.StringNAMEprotected java.lang.Stringownerstatic java.lang.StringOWNERstatic java.lang.StringPARENT_TASKprotected TaskEntityparentTaskprotected java.lang.StringparentTaskIdprotected intprioritystatic java.lang.StringPRIORITYprotected java.lang.StringprocessDefinitionIdprotected ExecutionEntityprocessInstanceprotected java.lang.StringprocessInstanceIdprotected java.util.Map<java.lang.String,PropertyChange>propertyChangescontains all changed properties of this entityprotected intrevisionprotected booleanskipCustomListenersprotected intsuspensionStateprotected TaskDefinitiontaskDefinitionprotected java.lang.StringtaskDefinitionKeyprotected java.util.List<IdentityLinkEntity>taskIdentityLinkEntitiesprotected java.lang.StringtenantIdprotected VariableStore<VariableInstanceEntity>variableStore-
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
Constructors Modifier Constructor Description TaskEntity()Mybatis constructorTaskEntity(java.lang.String id)Standalone task constructorTaskEntity(CaseExecutionEntity caseExecution)CMMN execution constructorTaskEntity(ExecutionEntity execution)BPMN execution constructorprotectedTaskEntity(TaskEntity.TaskState initialState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCandidateGroup(java.lang.String groupId)Adds the given group as candidate group to this taskvoidaddCandidateGroups(java.util.Collection<java.lang.String> candidateGroups)Adds multiple groups as candidate group to this task.voidaddCandidateUser(java.lang.String userId)Adds the given user as a candidate user to this task.voidaddCandidateUsers(java.util.Collection<java.lang.String> candidateUsers)Adds multiple users as candidate user to this task.voidaddCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener)voidaddGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Involves a group with group task.IdentityLinkEntityaddIdentityLink(java.lang.String userId, java.lang.String groupId, java.lang.String type)voidaddIdentityLinkChanges(java.lang.String type, java.lang.String oldProperty, java.lang.String newProperty)voidaddUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Involves a user with a task.voidbpmnError(java.lang.String errorCode, java.lang.String errorMessage, java.util.Map<java.lang.String,java.lang.Object> variables)voidcaseExecutionCompleted()voidcomplete()set status to complete.voiddelegate(java.lang.String userId)delegates this task to the given user and sets thedelegationStatetoDelegationState.PENDING.voiddelete(java.lang.String deleteReason, boolean cascade)voiddelete(java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)protected voiddeleteAuthorizations(AuthorizationEntity[] authorizations)voiddeleteCandidateGroup(java.lang.String groupId)Convenience shorthand for#deleteGroupIdentityLink(String, String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteCandidateUser(java.lang.String userId)Convenience shorthand forDelegateTask.deleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Removes the association between a group and a task for the given identityLinkType.voiddeleteIdentityLink(java.lang.String userId, java.lang.String groupId, java.lang.String type)voiddeleteIdentityLinks()voiddeleteUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Removes the association between a user and a task for the given identityLinkType.voiddispatchEvent(VariableEvent variableEvent)protected voidensureCaseExecutionInitialized()voidensureParentTaskActive()protected voidensureTaskActive()protected voidensureTenantIdNotChanged()booleanequals(java.lang.Object obj)voidescalation(java.lang.String escalationCode, java.util.Map<java.lang.String,java.lang.Object> variables)voidexecuteMetrics(java.lang.String metricsName, CommandContext commandContext)protected voidfireAddIdentityLinkAuthorizationProvider(java.lang.String type, java.lang.String userId, java.lang.String groupId)protected voidfireAssigneeAuthorizationProvider(java.lang.String oldAssignee, java.lang.String newAssignee)protected booleanfireAssignmentEvent()voidfireAuthorizationProvider()protected voidfireAuthorizationProvider(java.lang.String property, java.lang.String oldValue, java.lang.String newValue)protected voidfireDeleteIdentityLinkAuthorizationProvider(java.lang.String type, java.lang.String userId, java.lang.String groupId)booleanfireEvent(java.lang.String taskEventName)voidfireHistoricIdentityLinks()voidfireIdentityLinkHistoryEvents(java.lang.String userId, java.lang.String groupId, java.lang.String type, HistoryEventTypes historyEventType)protected voidfireOwnerAuthorizationProvider(java.lang.String oldOwner, java.lang.String newOwner)java.util.Map<java.lang.String,java.lang.Object>getActivityInstanceVariables()java.lang.StringgetAssignee()UserTaskgetBpmnModelElementInstance()Provides access to the currentUserTaskElement from the Bpmn Model.BpmnModelInstancegetBpmnModelInstance()Returns theBpmnModelInstancefor the currently executed Bpmn ModelCamundaFormRefgetCamundaFormRef()Provides the form binding reference to the Camunda Form for the task.java.util.Set<IdentityLink>getCandidates()Retrieves the candidate users and groups associated with the task.CaseDefinitionEntitygetCaseDefinition()java.lang.StringgetCaseDefinitionId()Reference to the case definition or null if it is not related to a case.CaseExecutionEntitygetCaseExecution()Returns the case execution currently at the task.java.lang.StringgetCaseExecutionId()Reference to the path of case execution or null if it is not related to a case instance.java.lang.StringgetCaseInstanceId()Reference to the case instance or null if it is not related to a case instance.java.util.DategetCreateTime()The date/time when this task was createdDelegationStategetDelegationState()The currentDelegationStatefor this task.java.lang.StringgetDelegationStateString()java.lang.StringgetDeleteReason()Get delete reason of the task.java.lang.StringgetDescription()Free text description of the task.java.util.DategetDueDate()Due date of the task.java.lang.StringgetEventName()Returns the event name which triggered the task listener to fire for this task.ExecutionEntitygetExecution()Returns the execution currently at the task.java.lang.StringgetExecutionId()Reference to the path of execution or null if it is not related to a process instance.java.util.DategetFollowUpDate()Follow-up date of the task.java.lang.StringgetFormKey()Provides the form key for the task.java.lang.StringgetId()DB id of the task.java.util.List<IdentityLinkEntity>getIdentityLinks()protected java.util.List<TaskListener>getListenersForEvent(java.lang.String event)java.lang.StringgetName()Name or title of the task.java.lang.StringgetOwner()TheuserIdof the person that is responsible for this task.TaskEntitygetParentTask()java.lang.StringgetParentTaskId()the parent task for which this task is a subtaskAbstractVariableScopegetParentVariableScope()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.intgetPriority()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] highestProcessDefinitionEntitygetProcessDefinition()java.lang.StringgetProcessDefinitionId()Reference to the process definition or null if it is not related to a process.ProcessEnginegetProcessEngine()Returns theProcessEngineproviding access to the public API of the process engine.ProcessEngineServicesgetProcessEngineServices()Returns theProcessEngineServicesproviding access to the public API of the process engine.ExecutionEntitygetProcessInstance()java.lang.StringgetProcessInstanceId()Reference to the process instance or null if it is not related to a process instance.java.util.Map<java.lang.String,PropertyChange>getPropertyChanges()java.util.Map<java.lang.String,java.lang.Class>getReferencedEntitiesIdAndClass()Scope: IN-MEMORY referencesjava.util.Set<java.lang.String>getReferencedEntityIds()Scope: IN-MEMORY referencesprotected ResourceAuthorizationProvidergetResourceAuthorizationProvider()intgetRevision()intgetRevisionNext()intgetSuspensionState()TaskDefinitiongetTaskDefinition()java.lang.StringgetTaskDefinitionKey()The id of the activity in the process defining this task or null if this is not related to a processjava.lang.StringgetTenantId()Returns the task's tenant id or null in case this task does not belong to a tenant.protected TaskListenergetTimeoutListener(java.lang.String timeoutId)protected VariableInstanceFactory<CoreVariableInstance>getVariableInstanceFactory()protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>>getVariableInstanceLifecycleListeners()java.lang.StringgetVariableScopeKey()java.util.Collection<VariableInstanceEntity>getVariablesInternal()protected VariableStore<CoreVariableInstance>getVariableStore()inthashCode()voidinitializeFormKey()voidinsert()protected booleaninvokeListener(java.lang.String taskEventName, TaskListener taskListener)protected booleaninvokeListener(CoreExecution currentExecution, java.lang.String eventName, TaskListener taskListener)protected booleanisAuthorizationEnabled()booleanisDeleted()booleanisStandaloneTask()booleanisSuspended()Indicated whether this task is suspended or not.voidlogUserOperation(java.lang.String operation)IdentityLinkEntitynewIdentityLink(java.lang.String userId, java.lang.String groupId, java.lang.String type)voidonCommandContextClose(CommandContext commandContext)voidonCommandFailed(CommandContext commandContext, java.lang.Throwable t)protected voidpropagateExecutionTenantId(ExecutionEntity execution)voidpropagateParentTaskTenantId()protected voidpropertyChanged(java.lang.String propertyName, java.lang.Object orgValue, java.lang.Object newValue)Tracks a property change.java.util.Collection<VariableInstanceEntity>provideVariables()java.util.Collection<VariableInstanceEntity>provideVariables(java.util.Collection<java.lang.String> variableNames)protected voidregisterCommandContextCloseListener()VariableInstanceLifecycleListener<VariableInstanceEntity>removeCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener)voidresolve()protected voidsaveAuthorizations(AuthorizationEntity[] authorizations)voidsetAssignee(java.lang.String assignee)voidsetAssigneeWithoutCascade(java.lang.String assignee)voidsetCaseDefinitionId(java.lang.String caseDefinitionId)voidsetCaseExecution(CaseExecutionEntity caseExecution)voidsetCaseExecutionId(java.lang.String caseExecutionId)voidsetCaseInstanceId(java.lang.String caseInstanceId)The case instance id for which this task is associated for.voidsetCaseInstanceIdWithoutCascade(java.lang.String caseInstanceId)voidsetCreateTime(java.util.Date createTime)voidsetDelegationState(DelegationState delegationState)The currentDelegationStatefor this task.voidsetDelegationStateString(java.lang.String delegationState)Setter for mybatis mapper.voidsetDelegationStateWithoutCascade(DelegationState delegationState)voidsetDeleted(boolean isDeleted)voidsetDescription(java.lang.String description)Change the description of the taskvoidsetDescriptionWithoutCascade(java.lang.String description)voidsetDueDate(java.util.Date dueDate)Change due date of the task.voidsetDueDateWithoutCascade(java.util.Date dueDate)voidsetEventName(java.lang.String eventName)voidsetExecution(PvmExecutionImpl execution)voidsetExecutionId(java.lang.String executionId)voidsetExecutionVariables(java.util.Map<java.lang.String,java.lang.Object> parameters)voidsetFollowUpDate(java.util.Date followUpDate)Change follow-up date of the task.voidsetFollowUpDateWithoutCascade(java.util.Date followUpDate)voidsetId(java.lang.String id)voidsetName(java.lang.String taskName)Name or title of the task.voidsetNameWithoutCascade(java.lang.String taskName)voidsetOwner(java.lang.String owner)TheuserIdof the person that is responsible for this task.voidsetOwnerWithoutCascade(java.lang.String owner)voidsetParentTaskId(java.lang.String parentTaskId)the parent task for which this task is a subtaskvoidsetParentTaskIdWithoutCascade(java.lang.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(java.lang.String processDefinitionId)voidsetProcessInstance(ExecutionEntity processInstance)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRevision(int revision)voidsetSuspensionState(int suspensionState)voidsetTaskDefinition(TaskDefinition taskDefinition)voidsetTaskDefinitionKey(java.lang.String taskDefinitionKey)voidsetTaskDefinitionKeyWithoutCascade(java.lang.String taskDefinitionKey)voidsetTenantId(java.lang.String tenantId)Sets the tenant id for this task.voidsetVariablesLocal(java.util.Map<java.lang.String,?> variables, boolean skipJavaSerializationFormatCheck)protected booleantenantIdIsSame(TaskEntity otherTask)java.lang.StringtoString()booleantransitionTo(TaskEntity.TaskState state)booleantriggerTimeoutEvent(java.lang.String timeoutId)booleantriggerUpdateEvent()voidupdate()-
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 Detail
-
DEFAULT_VARIABLE_LIFECYCLE_LISTENERS
protected static final java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>> DEFAULT_VARIABLE_LIFECYCLE_LISTENERS
-
LOG
protected static final EnginePersistenceLogger LOG
-
DELETE_REASON_COMPLETED
public static final java.lang.String DELETE_REASON_COMPLETED
- See Also:
- Constant Field Values
-
DELETE_REASON_DELETED
public static final java.lang.String DELETE_REASON_DELETED
- See Also:
- Constant Field Values
-
id
protected java.lang.String id
-
revision
protected int revision
-
owner
protected java.lang.String owner
-
assignee
protected java.lang.String assignee
-
delegationState
protected DelegationState delegationState
-
parentTaskId
protected java.lang.String parentTaskId
-
parentTask
protected transient TaskEntity parentTask
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
priority
protected int priority
-
createTime
protected java.util.Date createTime
-
dueDate
protected java.util.Date dueDate
-
followUpDate
protected java.util.Date followUpDate
-
suspensionState
protected int suspensionState
-
lifecycleState
protected TaskEntity.TaskState lifecycleState
-
tenantId
protected java.lang.String tenantId
-
isIdentityLinksInitialized
protected boolean isIdentityLinksInitialized
-
taskIdentityLinkEntities
protected transient java.util.List<IdentityLinkEntity> taskIdentityLinkEntities
-
executionId
protected java.lang.String executionId
-
execution
protected transient ExecutionEntity execution
-
processInstanceId
protected java.lang.String processInstanceId
-
processInstance
protected transient ExecutionEntity processInstance
-
processDefinitionId
protected java.lang.String processDefinitionId
-
caseExecutionId
protected java.lang.String caseExecutionId
-
caseExecution
protected transient CaseExecutionEntity caseExecution
-
caseInstanceId
protected java.lang.String caseInstanceId
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
taskDefinition
protected transient TaskDefinition taskDefinition
-
taskDefinitionKey
protected java.lang.String taskDefinitionKey
-
isDeleted
protected boolean isDeleted
-
deleteReason
protected java.lang.String deleteReason
-
eventName
protected java.lang.String eventName
-
isFormKeyInitialized
protected boolean isFormKeyInitialized
-
formKey
protected java.lang.String formKey
-
camundaFormRef
protected CamundaFormRef camundaFormRef
-
variableStore
protected transient VariableStore<VariableInstanceEntity> variableStore
-
skipCustomListeners
protected transient boolean skipCustomListeners
-
propertyChanges
protected transient java.util.Map<java.lang.String,PropertyChange> propertyChanges
contains all changed properties of this entity
-
identityLinkChanges
protected transient java.util.List<PropertyChange> identityLinkChanges
-
customLifecycleListeners
protected java.util.List<VariableInstanceLifecycleListener<VariableInstanceEntity>> customLifecycleListeners
-
ASSIGNEE
public static final java.lang.String ASSIGNEE
- See Also:
- Constant Field Values
-
DELEGATION
public static final java.lang.String DELEGATION
- See Also:
- Constant Field Values
-
DELETE
public static final java.lang.String DELETE
- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
- See Also:
- Constant Field Values
-
DUE_DATE
public static final java.lang.String DUE_DATE
- See Also:
- Constant Field Values
-
FOLLOW_UP_DATE
public static final java.lang.String FOLLOW_UP_DATE
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
OWNER
public static final java.lang.String OWNER
- See Also:
- Constant Field Values
-
PARENT_TASK
public static final java.lang.String PARENT_TASK
- See Also:
- Constant Field Values
-
PRIORITY
public static final java.lang.String PRIORITY
- See Also:
- Constant Field Values
-
CASE_INSTANCE_ID
public static final java.lang.String CASE_INSTANCE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaskEntity
public TaskEntity()
Mybatis constructor
-
TaskEntity
public TaskEntity(java.lang.String id)
Standalone task constructor
-
TaskEntity
protected TaskEntity(TaskEntity.TaskState initialState)
-
TaskEntity
public TaskEntity(ExecutionEntity execution)
BPMN execution constructor
-
TaskEntity
public TaskEntity(CaseExecutionEntity caseExecution)
CMMN execution constructor
-
-
Method Detail
-
insert
public void insert()
-
propagateExecutionTenantId
protected void propagateExecutionTenantId(ExecutionEntity execution)
-
propagateParentTaskTenantId
public void propagateParentTaskTenantId()
-
update
public void update()
-
ensureTenantIdNotChanged
protected void ensureTenantIdNotChanged()
-
tenantIdIsSame
protected boolean tenantIdIsSame(TaskEntity otherTask)
-
complete
public void complete()
Description copied from interface:DelegateTaskset status to complete.- Specified by:
completein interfaceDelegateTask
-
caseExecutionCompleted
public void caseExecutionCompleted()
-
delete
public void delete(java.lang.String deleteReason, boolean cascade)
-
delete
public void delete(java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
-
delegate
public void delegate(java.lang.String userId)
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
public java.lang.Object 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
public UserTask 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
public BpmnModelInstance getBpmnModelInstance()
Description copied from interface:BpmnModelExecutionContextReturns theBpmnModelInstancefor the currently executed Bpmn Model- Specified by:
getBpmnModelInstancein interfaceBpmnModelExecutionContext- Returns:
- the current
BpmnModelInstance
-
getVariableStore
protected VariableStore<CoreVariableInstance> getVariableStore()
- Specified by:
getVariableStorein classAbstractVariableScope
-
getVariableInstanceFactory
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
- Specified by:
getVariableInstanceFactoryin classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
- Specified by:
getVariableInstanceLifecycleListenersin classAbstractVariableScope
-
addCustomLifecycleListener
public void addCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener)
-
removeCustomLifecycleListener
public VariableInstanceLifecycleListener<VariableInstanceEntity> removeCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener)
-
dispatchEvent
public void dispatchEvent(VariableEvent variableEvent)
- Specified by:
dispatchEventin interfaceVariableEventDispatcher- Overrides:
dispatchEventin classAbstractVariableScope
-
provideVariables
public java.util.Collection<VariableInstanceEntity> provideVariables()
- Specified by:
provideVariablesin interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
provideVariables
public java.util.Collection<VariableInstanceEntity> provideVariables(java.util.Collection<java.lang.String> variableNames)
- Specified by:
provideVariablesin interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
getParentVariableScope
public AbstractVariableScope getParentVariableScope()
- Specified by:
getParentVariableScopein classAbstractVariableScope
-
getVariableScopeKey
public java.lang.String getVariableScopeKey()
- Specified by:
getVariableScopeKeyin interfaceVariableScope- Overrides:
getVariableScopeKeyin classAbstractVariableScope
-
getParentTask
public TaskEntity getParentTask()
-
getExecution
public ExecutionEntity getExecution()
Description copied from interface:DelegateTaskReturns the execution currently at the task.- Specified by:
getExecutionin interfaceDelegateTask
-
setExecution
public void setExecution(PvmExecutionImpl execution)
-
getCaseExecution
public CaseExecutionEntity getCaseExecution()
Description copied from interface:DelegateTaskReturns the case execution currently at the task.- Specified by:
getCaseExecutionin interfaceDelegateTask
-
ensureCaseExecutionInitialized
protected void ensureCaseExecutionInitialized()
-
setCaseExecution
public void setCaseExecution(CaseExecutionEntity caseExecution)
-
getCaseExecutionId
public java.lang.String 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
public void setCaseExecutionId(java.lang.String caseExecutionId)
-
getCaseInstanceId
public java.lang.String 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
public void setCaseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:TaskThe case instance id for which this task is associated for.- Specified by:
setCaseInstanceIdin interfaceTask
-
getCaseDefinition
public CaseDefinitionEntity getCaseDefinition()
-
getCaseDefinitionId
public java.lang.String 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
public void setCaseDefinitionId(java.lang.String caseDefinitionId)
-
addIdentityLink
public IdentityLinkEntity addIdentityLink(java.lang.String userId, java.lang.String groupId, java.lang.String type)
-
fireIdentityLinkHistoryEvents
public void fireIdentityLinkHistoryEvents(java.lang.String userId, java.lang.String groupId, java.lang.String type, HistoryEventTypes historyEventType)
-
newIdentityLink
public IdentityLinkEntity newIdentityLink(java.lang.String userId, java.lang.String groupId, java.lang.String type)
-
deleteIdentityLink
public void deleteIdentityLink(java.lang.String userId, java.lang.String groupId, java.lang.String type)
-
deleteIdentityLinks
public void deleteIdentityLinks()
-
getCandidates
public java.util.Set<IdentityLink> 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
public void addCandidateUser(java.lang.String userId)
Description copied from interface:DelegateTaskAdds the given user as a candidate user to this task.- Specified by:
addCandidateUserin interfaceDelegateTask
-
addCandidateUsers
public void addCandidateUsers(java.util.Collection<java.lang.String> candidateUsers)
Description copied from interface:DelegateTaskAdds multiple users as candidate user to this task.- Specified by:
addCandidateUsersin interfaceDelegateTask
-
addCandidateGroup
public void addCandidateGroup(java.lang.String groupId)
Description copied from interface:DelegateTaskAdds the given group as candidate group to this task- Specified by:
addCandidateGroupin interfaceDelegateTask
-
addCandidateGroups
public void addCandidateGroups(java.util.Collection<java.lang.String> candidateGroups)
Description copied from interface:DelegateTaskAdds multiple groups as candidate group to this task.- Specified by:
addCandidateGroupsin interfaceDelegateTask
-
addGroupIdentityLink
public void addGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)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
public void addUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)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
public void deleteCandidateGroup(java.lang.String groupId)
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
public void deleteCandidateUser(java.lang.String userId)
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
public void deleteGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)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
public void deleteUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)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
public java.util.List<IdentityLinkEntity> getIdentityLinks()
-
getActivityInstanceVariables
public java.util.Map<java.lang.String,java.lang.Object> getActivityInstanceVariables()
-
setExecutionVariables
public void setExecutionVariables(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setName
public void setName(java.lang.String taskName)
Description copied from interface:TaskName or title of the task.- Specified by:
setNamein interfaceDelegateTask- Specified by:
setNamein interfaceTask
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:TaskChange the description of the task- Specified by:
setDescriptionin interfaceDelegateTask- Specified by:
setDescriptionin interfaceTask
-
setAssignee
public void setAssignee(java.lang.String assignee)
Description copied from interface:Task- Specified by:
setAssigneein interfaceDelegateTask- Specified by:
setAssigneein interfaceTask
-
setOwner
public void setOwner(java.lang.String owner)
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
public void setDueDate(java.util.Date dueDate)
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
public void setParentTaskId(java.lang.String parentTaskId)
Description copied from interface:Taskthe parent task for which this task is a subtask- Specified by:
setParentTaskIdin interfaceTask
-
setNameWithoutCascade
public void setNameWithoutCascade(java.lang.String taskName)
-
setDescriptionWithoutCascade
public void setDescriptionWithoutCascade(java.lang.String description)
-
setAssigneeWithoutCascade
public void setAssigneeWithoutCascade(java.lang.String assignee)
-
setOwnerWithoutCascade
public void setOwnerWithoutCascade(java.lang.String owner)
-
setDueDateWithoutCascade
public void setDueDateWithoutCascade(java.util.Date dueDate)
-
setPriorityWithoutCascade
public void setPriorityWithoutCascade(int priority)
-
setCaseInstanceIdWithoutCascade
public void setCaseInstanceIdWithoutCascade(java.lang.String caseInstanceId)
-
setParentTaskIdWithoutCascade
public void setParentTaskIdWithoutCascade(java.lang.String parentTaskId)
-
setTaskDefinitionKeyWithoutCascade
public void setTaskDefinitionKeyWithoutCascade(java.lang.String taskDefinitionKey)
-
setDelegationStateWithoutCascade
public void setDelegationStateWithoutCascade(DelegationState delegationState)
-
setDelegationStateString
public void setDelegationStateString(java.lang.String delegationState)
Setter for mybatis mapper.- Parameters:
delegationState- the delegation state as string
-
setFollowUpDateWithoutCascade
public void setFollowUpDateWithoutCascade(java.util.Date followUpDate)
-
fireEvent
public boolean fireEvent(java.lang.String taskEventName)
- 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
protected java.util.List<TaskListener> getListenersForEvent(java.lang.String event)
-
getTimeoutListener
protected TaskListener getTimeoutListener(java.lang.String timeoutId)
-
invokeListener
protected boolean invokeListener(java.lang.String taskEventName, TaskListener taskListener)
-
invokeListener
protected boolean invokeListener(CoreExecution currentExecution, java.lang.String eventName, TaskListener taskListener) throws java.lang.Exception
- Returns:
- true if the next listener can be invoked; false if not
- Throws:
java.lang.Exception
-
propertyChanged
protected void propertyChanged(java.lang.String propertyName, java.lang.Object orgValue, java.lang.Object newValue)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
public boolean transitionTo(TaskEntity.TaskState state)
-
triggerUpdateEvent
public boolean triggerUpdateEvent()
-
triggerTimeoutEvent
public boolean triggerTimeoutEvent(java.lang.String timeoutId)
- 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
protected void fireAssigneeAuthorizationProvider(java.lang.String oldAssignee, java.lang.String newAssignee)
-
fireOwnerAuthorizationProvider
protected void fireOwnerAuthorizationProvider(java.lang.String oldOwner, java.lang.String newOwner)
-
fireAuthorizationProvider
protected void fireAuthorizationProvider(java.lang.String property, java.lang.String oldValue, java.lang.String newValue)
-
fireAddIdentityLinkAuthorizationProvider
protected void fireAddIdentityLinkAuthorizationProvider(java.lang.String type, java.lang.String userId, java.lang.String groupId)
-
fireDeleteIdentityLinkAuthorizationProvider
protected void fireDeleteIdentityLinkAuthorizationProvider(java.lang.String type, java.lang.String userId, java.lang.String groupId)
-
getResourceAuthorizationProvider
protected ResourceAuthorizationProvider getResourceAuthorizationProvider()
-
saveAuthorizations
protected void saveAuthorizations(AuthorizationEntity[] authorizations)
-
deleteAuthorizations
protected void deleteAuthorizations(AuthorizationEntity[] authorizations)
-
isAuthorizationEnabled
protected boolean isAuthorizationEnabled()
-
setTaskDefinition
public void setTaskDefinition(TaskDefinition taskDefinition)
-
getTaskDefinition
public TaskDefinition getTaskDefinition()
-
getId
public java.lang.String getId()
Description copied from interface:TaskDB id of the task.
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
getName
public java.lang.String getName()
Description copied from interface:TaskName or title of the task.- Specified by:
getNamein interfaceDelegateTask- Specified by:
getNamein interfaceTask
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TaskFree text description of the task.- Specified by:
getDescriptionin interfaceDelegateTask- Specified by:
getDescriptionin interfaceTask
-
getDueDate
public java.util.Date 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
public java.util.Date getCreateTime()
Description copied from interface:TaskThe date/time when this task was created- Specified by:
getCreateTimein interfaceDelegateTask- Specified by:
getCreateTimein interfaceTask
-
setCreateTime
public void setCreateTime(java.util.Date createTime)
-
getExecutionId
public java.lang.String 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
public java.lang.String 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
public ProcessDefinitionEntity getProcessDefinition()
-
getProcessDefinitionId
public java.lang.String 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()
-
getFormKey
public java.lang.String 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
public CamundaFormRef 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
public void setProcessDefinitionId(java.lang.String processDefinitionId)
-
getAssignee
public java.lang.String getAssignee()
Description copied from interface:Task- Specified by:
getAssigneein interfaceDelegateTask- Specified by:
getAssigneein interfaceTask
-
getTaskDefinitionKey
public java.lang.String 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
public void setTaskDefinitionKey(java.lang.String taskDefinitionKey)
-
getEventName
public java.lang.String getEventName()
Description copied from interface:DelegateTaskReturns the event name which triggered the task listener to fire for this task.- Specified by:
getEventNamein interfaceDelegateTask
-
setEventName
public void setEventName(java.lang.String eventName)
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
-
getProcessInstance
public ExecutionEntity getProcessInstance()
-
setProcessInstance
public void setProcessInstance(ExecutionEntity processInstance)
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
getOwner
public java.lang.String 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
public DelegationState getDelegationState()
Description copied from interface:TaskThe currentDelegationStatefor this task.- Specified by:
getDelegationStatein interfaceTask
-
setDelegationState
public void setDelegationState(DelegationState delegationState)
Description copied from interface:TaskThe currentDelegationStatefor this task.- Specified by:
setDelegationStatein interfaceTask
-
getDelegationStateString
public java.lang.String getDelegationStateString()
-
isDeleted
public boolean isDeleted()
-
getDeleteReason
public java.lang.String getDeleteReason()
Description copied from interface:DelegateTaskGet delete reason of the task.- Specified by:
getDeleteReasonin interfaceDelegateTask
-
setDeleted
public void setDeleted(boolean isDeleted)
-
getParentTaskId
public java.lang.String 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
public java.util.Date getFollowUpDate()
Description copied from interface:TaskFollow-up date of the task.- Specified by:
getFollowUpDatein interfaceDelegateTask- Specified by:
getFollowUpDatein interfaceTask
-
getTenantId
public java.lang.String 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
public void setTenantId(java.lang.String tenantId)
Description copied from interface:TaskSets the tenant id for this task.- Specified by:
setTenantIdin interfaceTask- Parameters:
tenantId- the tenant id to set
-
setFollowUpDate
public void setFollowUpDate(java.util.Date followUpDate)
Description copied from interface:TaskChange follow-up date of the task.- Specified by:
setFollowUpDatein interfaceDelegateTask- Specified by:
setFollowUpDatein interfaceTask
-
getVariablesInternal
public java.util.Collection<VariableInstanceEntity> getVariablesInternal()
-
onCommandContextClose
public void onCommandContextClose(CommandContext commandContext)
- Specified by:
onCommandContextClosein interfaceCommandContextListener
-
onCommandFailed
public void onCommandFailed(CommandContext commandContext, java.lang.Throwable t)
- Specified by:
onCommandFailedin interfaceCommandContextListener
-
registerCommandContextCloseListener
protected void registerCommandContextCloseListener()
-
getPropertyChanges
public java.util.Map<java.lang.String,PropertyChange> getPropertyChanges()
-
logUserOperation
public void logUserOperation(java.lang.String operation)
-
fireHistoricIdentityLinks
public void fireHistoricIdentityLinks()
-
getProcessEngineServices
public ProcessEngineServices getProcessEngineServices()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineServicesproviding access to the public API of the process engine.- Specified by:
getProcessEngineServicesin interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngineServices.
-
getProcessEngine
public ProcessEngine 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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
executeMetrics
public void executeMetrics(java.lang.String metricsName, CommandContext commandContext)
-
addIdentityLinkChanges
public void addIdentityLinkChanges(java.lang.String type, java.lang.String oldProperty, java.lang.String newProperty)
-
setVariablesLocal
public void setVariablesLocal(java.util.Map<java.lang.String,?> variables, boolean skipJavaSerializationFormatCheck)- Overrides:
setVariablesLocalin classAbstractVariableScope
-
getReferencedEntityIds
public java.util.Set<java.lang.String> 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
public java.util.Map<java.lang.String,java.lang.Class> 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
public void bpmnError(java.lang.String errorCode, java.lang.String errorMessage, java.util.Map<java.lang.String,java.lang.Object> variables)
-
escalation
public void escalation(java.lang.String escalationCode, java.util.Map<java.lang.String,java.lang.Object> variables)
-
-