Class ExecutionEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
-
- org.camunda.bpm.engine.impl.core.instance.CoreExecution
-
- org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl
-
- org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity
-
- All Implemented Interfaces:
java.io.Serializable,BaseDelegateExecution,BpmnModelExecutionContext,DelegateExecution,ProcessEngineServicesAware,VariableScope,VariableEventDispatcher,VariableStore.VariablesProvider<VariableInstanceEntity>,DbEntity,HasDbReferences,HasDbRevision,ActivityExecution,PvmExecution,PvmProcessInstance,Execution,ProcessInstance
public class ExecutionEntity extends PvmExecutionImpl implements Execution, ProcessInstance, DbEntity, HasDbRevision, HasDbReferences, VariableStore.VariablesProvider<VariableInstanceEntity>
- Author:
- Tom Baeyens, Daniel Meyer, Falko Menge
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringactivityIdpersisted reference to the current position in the diagram within thePvmExecutionImpl.processDefinition.protected java.lang.StringactivityNameThe name of the current activity positionprotected intcachedEntityStatestatic intEVENT_SUBSCRIPTIONS_STATE_BITprotected java.util.List<EventSubscriptionEntity>eventSubscriptionsprotected java.util.List<ExecutionObserver>executionObserversContains observers which are observe the execution.protected java.util.List<ExecutionEntity>executionsnested executions representing scopes or concurrent pathsstatic intEXTERNAL_TASKS_BITprotected java.util.List<ExternalTaskEntity>externalTasksstatic intINCIDENT_STATE_BITprotected java.util.List<IncidentEntity>incidentsprotected java.util.List<JobEntity>jobsstatic intJOBS_STATE_BITprotected static EnginePersistenceLoggerLOGprotected ExecutionEntityparentthe parent executionprotected java.lang.StringparentIdpersisted reference to the parent of this execution.protected java.lang.StringprocessDefinitionIdpersisted reference to the processDefinition.protected ExecutionEntityprocessInstancethe process instance.protected java.lang.StringprocessInstanceIdpersisted reference to the process instance.protected java.util.List<VariableInstanceLifecycleListener<VariableInstanceEntity>>registeredVariableListenersprotected intrevisionprotected java.lang.StringrootProcessInstanceIdpersisted reference to the root process instance.protected booleanshouldQueryForSubCaseInstanceprotected booleanshouldQueryForSubprocessInstancestatic intSUB_CASE_INSTANCE_STATE_BITstatic intSUB_PROCESS_INSTANCE_STATE_BITprotected CaseExecutionEntitysubCaseInstancereference to a subcaseinstance, not-null if currently subcase is started from this executionprotected ExecutionEntitysubProcessInstancereference to a subprocessinstance, not-null if currently subprocess is started from this executionprotected CaseExecutionEntitysuperCaseExecutionsuper case execution, not-null if this execution is part of a case executionprotected java.lang.StringsuperCaseExecutionIdpersisted reference to the super case execution of this executionprotected ExecutionEntitysuperExecutionsuper execution, not-null if this execution is part of a subprocessprotected java.lang.StringsuperExecutionIdpersisted reference to the super execution of this executionprotected intsuspensionStateprotected java.util.List<TaskEntity>tasksstatic intTASKS_STATE_BITstatic intVARIABLES_STATE_BITprotected VariableStore<VariableInstanceEntity>variableStore-
Fields inherited from class org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl
activity, activityInstanceEndListenersFailed, activityInstanceId, activityInstanceState, caseInstanceId, delayedEvents, deleteReason, deleteRoot, externallyTerminated, ignoreAsync, isActive, isConcurrent, isEnded, isEventScope, isRemoved, isScope, isStarting, nextActivity, preserveScope, processDefinition, replacedBy, scopeInstantiationContext, sequenceCounter, transition, transitionsToTake
-
Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
businessKey, businessKeyWithoutCascade, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, skipSubprocesses, tenantId
-
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext
-
-
Constructor Summary
Constructors Constructor Description ExecutionEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)voidaddExecutionObserver(ExecutionObserver observer)voidaddExternalTask(ExternalTaskEntity externalTask)voidaddIncident(IncidentEntity incident)voidaddJob(JobEntity jobEntity)voidaddTask(TaskEntity taskEntity)voidaddVariableInternal(VariableInstanceEntity variable)voidaddVariableListener(VariableInstanceLifecycleListener<VariableInstanceEntity> listener)protected voidclearExecution()ExecutionEntitycreateExecution()creates a new execution.protected static ExecutionEntitycreateNewExecution()CaseExecutionEntitycreateSubCaseInstance(CmmnCaseDefinition caseDefinition)Creates a new sub case instance.CaseExecutionEntitycreateSubCaseInstance(CmmnCaseDefinition caseDefinition, java.lang.String businessKey)Creates a new sub case instance.ExecutionEntitycreateSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey, java.lang.String caseInstanceId)protected voidcreateTimerInstances(java.util.Collection<TimerDeclarationImpl> timerDeclarations)voiddestroy()Method used for destroying a scope in a way that the execution can be removed afterwards.voiddispatchEvent(VariableEvent variableEvent)protected voidensureActivityInitialized()must be called before the activity member field or getActivity() is calledprotected voidensureEventSubscriptionsInitialized()protected voidensureExecutionsInitialized()protected voidensureExecutionTreeInitialized()Fetch all the executions inside the same process instance as list and then reconstruct the complete execution tree.protected voidensureExternalTasksInitialized()protected voidensureIncidentsInitialized()protected voidensureJobsInitialized()protected voidensureNotSuspended()protected voidensureParentInitialized()protected voidensureProcessDefinitionInitialized()for setting the process definition, this setter must be used as subclasses can overrideprotected voidensureProcessInstanceInitialized()protected voidensureSubCaseInstanceInitialized()protected voidensureSubProcessInstanceInitialized()protected voidensureSuperCaseExecutionInitialized()protected voidensureSuperExecutionInitialized()protected voidensureTasksInitialized()voidfireHistoricActivityInstanceUpdate()voidfireHistoricProcessStartEvent()voidforceUpdate()protected java.lang.StringgenerateActivityInstanceId(java.lang.String activityId)generates an activity instance idActivityImplgetActivity()ensures initialization and returns the activityjava.lang.StringgetActivityId()FlowElementgetBpmnModelElementInstance()Returns the currently executed Element in the BPMN Model.BpmnModelInstancegetBpmnModelInstance()Returns theBpmnModelInstancefor the currently executed Bpmn ModelintgetCachedEntityState()intgetCachedEntityStateRaw()java.util.List<EventSubscriptionEntity>getCompensateEventSubscriptions()java.util.List<EventSubscriptionEntity>getCompensateEventSubscriptions(java.lang.String activityId)java.lang.StringgetCurrentActivityId()Gets the id of the current activity.java.lang.StringgetCurrentActivityName()Gets the name of the current activity.java.util.List<EventSubscriptionEntity>getEventSubscriptions()java.util.List<EventSubscriptionEntity>getEventSubscriptionsInternal()java.util.List<ExecutionEntity>getExecutions()returns the list of execution of which this execution the parent of.java.util.List<ExecutionEntity>getExecutionsAsCopy()java.util.List<ExternalTaskEntity>getExternalTasks()protected java.util.List<ExternalTaskEntity>getExternalTasksInternal()IncidentEntitygetIncidentByCauseIncidentId(java.lang.String causeIncidentId)java.util.List<IncidentEntity>getIncidents()protected java.util.List<IncidentEntity>getIncidentsInternal()java.util.List<JobEntity>getJobs()protected java.util.List<JobEntity>getJobsInternal()ExecutionEntitygetParent()ensures initialization and returns the parentjava.lang.StringgetParentId()Gets the id of the parent of this execution.java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessBusinessKey()The business key for the process instance this execution is associated with.ProcessDefinitionEntitygetProcessDefinition()ensures initialization and returns the process definition.java.lang.StringgetProcessDefinitionId()The id of the process definition of the process instance.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()ensures initialization and returns the process instance.java.lang.StringgetProcessInstanceId()Id of the root of the execution tree representing the process instance.java.util.Map<java.lang.String,java.lang.Class>getReferencedEntitiesIdAndClass()Scope: IN-MEMORY referencesjava.util.Set<java.lang.String>getReferencedEntityIds()Scope: IN-MEMORY referencesExecutionEntitygetReplacedBy()Returns an execution that has replaced this execution for executing activities in their shared scope.intgetRevision()intgetRevisionNext()java.lang.StringgetRootProcessInstanceId()The id of the root process instance associated with this process instance.java.lang.StringgetRootProcessInstanceIdRaw()CaseExecutionEntitygetSubCaseInstance()ExecutionEntitygetSubProcessInstance()CaseExecutionEntitygetSuperCaseExecution()java.lang.StringgetSuperCaseExecutionId()ExecutionEntitygetSuperExecution()In case this delegate execution is the process instance execution and this process instance was started by a call activity, this method returns the execution which executed the call activity in the super process instance.java.lang.StringgetSuperExecutionId()intgetSuspensionState()java.util.List<TaskEntity>getTasks()protected java.util.List<TaskEntity>getTasksInternal()protected java.lang.StringgetToStringIdentity()protected VariableInstanceFactory<CoreVariableInstance>getVariableInstanceFactory()protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>>getVariableInstanceLifecycleListeners()VariableInstanceLifecycleListener<CoreVariableInstance>getVariablePersistenceListener()java.util.Collection<VariableInstanceEntity>getVariablesInternal()protected VariableStore<CoreVariableInstance>getVariableStore()voidhandleConditionalEventOnVariableChange(VariableEvent variableEvent)voidinactivate()Inactivates this execution.voidinitialize()protected static voidinitializeAssociations(ExecutionEntity execution)voidinitializeTimerDeclarations()voidinsert()voidinterrupt(java.lang.String reason, boolean skipCustomListeners, boolean skipIoMappings, boolean externallyTerminated)booleanisActive(java.lang.String activityId)booleanisExecutingScopeLeafActivity()protected booleanisExecutionTreePrefetchEnabled()booleanisProcessInstanceExecution()returns whether this execution is a process instance or not.booleanisProcessInstanceStarting()booleanisSuspended()Indicates if the execution is suspended.protected voidmoveActivityLocalJobsTo(ExecutionEntity other)protected voidmoveConcurrentLocalVariablesTo(ExecutionEntity other)protected voidmoveExternalTasksTo(ExecutionEntity other)protected voidmoveTasksTo(ExecutionEntity other)protected voidmoveVariablesTo(ExecutionEntity other)protected voidmoveVariableTo(VariableInstanceEntity variable, ExecutionEntity other)protected PvmExecutionImplnewExecution()voidonConcurrentExpand(PvmExecutionImpl scopeExecution)Callback on tree expansion when this execution is used as the concurrent execution where the argument's children become a subordinate to.<T extends CoreExecution>
voidperformOperation(CoreAtomicOperation<T> operation)voidperformOperation(AtomicOperation executionOperation)<T extends CoreExecution>
voidperformOperationSync(CoreAtomicOperation<T> operation)voidperformOperationSync(AtomicOperation executionOperation)protected voidprovideTenantId(java.util.Map<java.lang.String,java.lang.Object> variables, VariableMap properties)java.util.Collection<VariableInstanceEntity>provideVariables()java.util.Collection<VariableInstanceEntity>provideVariables(java.util.Collection<java.lang.String> variableNames)voidremove()protected voidremoveActivityJobs(java.lang.String reason)voidremoveAllTasks()voidremoveEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)voidremoveEventSubscriptions()protected voidremoveEventSubscriptionsExceptCompensation()voidremoveExecutionObserver(ExecutionObserver observer)voidremoveExternalTask(ExternalTaskEntity externalTask)protected voidremoveExternalTasks()voidremoveIncident(IncidentEntity incident)voidremoveJob(JobEntity job)voidremoveTask(TaskEntity task)protected voidremoveTasks(java.lang.String reason)voidremoveVariableInternal(VariableInstanceEntity variable)voidremoveVariableListener(VariableInstanceLifecycleListener<VariableInstanceEntity> listener)voidremoveVariablesLocalInternal()voidreplace(PvmExecutionImpl execution)Replace an execution by this execution.protected booleanrequiresUnsuspendedExecution(AtomicOperation executionOperation)ExecutionEntityresolveReplacedBy()Instead ofPvmExecutionImpl.getReplacedBy(), which returns the execution that this execution was directly replaced with, this resolves the chain of replacements (i.e.voidrestoreProcessInstance(java.util.Collection<ExecutionEntity> executions, java.util.Collection<EventSubscriptionEntity> eventSubscriptions, java.util.Collection<VariableInstanceEntity> variables, java.util.Collection<TaskEntity> tasks, java.util.Collection<JobEntity> jobs, java.util.Collection<IncidentEntity> incidents, java.util.Collection<ExternalTaskEntity> externalTasks)Restores a complete process instance tree including referenced entities.voidscheduleAtomicOperationAsync(AtomicOperationInvocation executionOperationInvocation)voidsetActivity(PvmActivity activity)voidsetActivityId(java.lang.String activityId)voidsetCachedEntityState(int cachedEntityState)voidsetExecutions(java.util.List<ExecutionEntity> executions)voidsetParentExecution(PvmExecutionImpl parent)Use #setParent to also update the child execution setsvoidsetParentId(java.lang.String parentId)voidsetProcessDefinition(ProcessDefinitionImpl processDefinition)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessInstance(PvmExecutionImpl processInstance)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRevision(int revision)voidsetRootProcessInstanceId(java.lang.String rootProcessInstanceId)voidsetSubCaseInstance(CmmnExecution subCaseInstance)voidsetSubProcessInstance(PvmExecutionImpl subProcessInstance)voidsetSuperCaseExecution(CmmnExecution superCaseExecution)voidsetSuperCaseExecutionId(java.lang.String superCaseExecutionId)voidsetSuperExecution(PvmExecutionImpl superExecution)voidsetSuperExecutionId(java.lang.String superExecutionId)voidsetSuspensionState(int suspensionState)voidstart(java.util.Map<java.lang.String,java.lang.Object> variables, VariableMap formProperties)voidstartWithoutExecuting(java.util.Map<java.lang.String,java.lang.Object> variables)perform starting behavior but don't execute the initial activityjava.lang.StringtoString()-
Methods inherited from class org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl
activityInstanceDone, activityInstanceEndListenerFailure, activityInstanceStarted, activityInstanceStarting, clearDelayedEvents, clearScope, collectActiveActivityIds, collectExecutions, continueExecutionIfNotCanceled, continueIfExecutionDoesNotAffectNextOperation, createActivityExecutionMapping, createActivityExecutionMapping, createActivityExecutionMapping, createConcurrentExecution, createIncident, createIncident, createIncidentContext, createSubProcessInstance, createSubProcessInstance, delayEvent, delayEvent, deleteCascade, deleteCascade, deleteCascade, dispatchDelayedEventsAndPerformOperation, dispatchDelayedEventsAndPerformOperation, dispatchScopeEvents, disposeScopeInstantiationContext, end, endCompensation, enterActivityInstance, executeActivities, executeActivitiesConcurrent, executeActivity, executeEventHandlerActivity, executeIoMapping, findActiveActivityIds, findExecution, findExecutionForFlowScope, findExecutionForFlowScope, findExecutionForScope, findExecutions, findInactiveChildExecutions, findInactiveConcurrentExecutions, findIncidentHandler, getActivityInstanceId, getActivityInstanceState, getAllChildExecutions, getBusinessKey, getCaseInstanceId, getCurrentTransitionId, getDelayedEvents, getDeleteReason, getEventScopeExecutions, getFlowScope, getFlowScopeExecution, getNextActivity, getNonEventScopeExecutions, getParentActivityInstanceId, getParentScopeExecution, getParentVariableScope, getScopeActivity, getScopeInstantiationContext, getSequenceCounter, getTransition, getTransitionsToTake, getVariableScopeKey, hasChildren, hasFailedOnEndListeners, hasReplacedParent, incrementSequenceCounter, initActivityIds, instantiateScopes, interrupt, isActive, isCanceled, isCompleteScope, isConcurrent, isDeleteRoot, isEnded, isEventScope, isExternallyTerminated, isIgnoreAsync, isInState, isPreserveScope, isRemoved, isReplacedByParent, isScope, isStarting, leaveActivityInstance, leaveActivityViaTransition, leaveActivityViaTransitions, propagateEnd, removeEventScopes, resolveIncident, setActive, setActivityInstanceId, setCanceled, setCaseInstanceId, setCompleteScope, setConcurrent, setDeleteReason, setDeleteRoot, setEnded, setEventScope, setExternallyTerminated, setIgnoreAsync, setNextActivity, setParent, setPreserveScope, setProcessBusinessKey, setProcessInstanceStarting, setScope, setSequenceCounter, setStartContext, setStarting, setTransition, setTransitionsToTake, setVariable, signal, start, start, startWithFormProperties, take, tryPruneLastConcurrentChild
-
Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
getBusinessKeyWithoutCascade, getEventName, getEventSource, getId, getListenerIndex, getTenantId, invokeListener, isSkipCustomListeners, isSkipIoMappings, isSkipSubprocesses, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings, setSkipSubprocesseses, setTenantId
-
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, setVariablesLocal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecution
getEventName, getId
-
Methods inherited from interface org.camunda.bpm.engine.delegate.DelegateExecution
getTenantId
-
Methods inherited from interface org.camunda.bpm.engine.runtime.Execution
getId, getTenantId, isEnded
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
Methods inherited from interface org.camunda.bpm.engine.runtime.ProcessInstance
getBusinessKey, getCaseInstanceId
-
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmExecution
getVariable, getVariables, hasVariable, setVariable
-
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
-
LOG
protected static final EnginePersistenceLogger LOG
-
EVENT_SUBSCRIPTIONS_STATE_BIT
public static final int EVENT_SUBSCRIPTIONS_STATE_BIT
- See Also:
- Constant Field Values
-
TASKS_STATE_BIT
public static final int TASKS_STATE_BIT
- See Also:
- Constant Field Values
-
JOBS_STATE_BIT
public static final int JOBS_STATE_BIT
- See Also:
- Constant Field Values
-
INCIDENT_STATE_BIT
public static final int INCIDENT_STATE_BIT
- See Also:
- Constant Field Values
-
VARIABLES_STATE_BIT
public static final int VARIABLES_STATE_BIT
- See Also:
- Constant Field Values
-
SUB_PROCESS_INSTANCE_STATE_BIT
public static final int SUB_PROCESS_INSTANCE_STATE_BIT
- See Also:
- Constant Field Values
-
SUB_CASE_INSTANCE_STATE_BIT
public static final int SUB_CASE_INSTANCE_STATE_BIT
- See Also:
- Constant Field Values
-
EXTERNAL_TASKS_BIT
public static final int EXTERNAL_TASKS_BIT
- See Also:
- Constant Field Values
-
processInstance
protected transient ExecutionEntity processInstance
the process instance. this is the root of the execution tree. the processInstance of a process instance is a self reference.
-
parent
protected transient ExecutionEntity parent
the parent execution
-
executions
protected transient java.util.List<ExecutionEntity> executions
nested executions representing scopes or concurrent paths
-
superExecution
protected transient ExecutionEntity superExecution
super execution, not-null if this execution is part of a subprocess
-
superCaseExecution
protected transient CaseExecutionEntity superCaseExecution
super case execution, not-null if this execution is part of a case execution
-
subProcessInstance
protected transient ExecutionEntity subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution
-
subCaseInstance
protected transient CaseExecutionEntity subCaseInstance
reference to a subcaseinstance, not-null if currently subcase is started from this execution
-
shouldQueryForSubprocessInstance
protected boolean shouldQueryForSubprocessInstance
-
shouldQueryForSubCaseInstance
protected boolean shouldQueryForSubCaseInstance
-
eventSubscriptions
protected transient java.util.List<EventSubscriptionEntity> eventSubscriptions
-
jobs
protected transient java.util.List<JobEntity> jobs
-
tasks
protected transient java.util.List<TaskEntity> tasks
-
externalTasks
protected transient java.util.List<ExternalTaskEntity> externalTasks
-
incidents
protected transient java.util.List<IncidentEntity> incidents
-
cachedEntityState
protected int cachedEntityState
-
variableStore
protected transient VariableStore<VariableInstanceEntity> variableStore
-
suspensionState
protected int suspensionState
-
revision
protected int revision
-
processDefinitionId
protected java.lang.String processDefinitionId
persisted reference to the processDefinition.
-
activityId
protected java.lang.String activityId
persisted reference to the current position in the diagram within thePvmExecutionImpl.processDefinition.- See Also:
PvmExecutionImpl.activity,getActivity()
-
activityName
protected java.lang.String activityName
The name of the current activity position
-
processInstanceId
protected java.lang.String processInstanceId
persisted reference to the process instance.- See Also:
getProcessInstance()
-
parentId
protected java.lang.String parentId
persisted reference to the parent of this execution.- See Also:
getParent()
-
superExecutionId
protected java.lang.String superExecutionId
persisted reference to the super execution of this execution- See Also:
setSuperExecution(ExecutionEntity)
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
persisted reference to the root process instance.- See Also:
getRootProcessInstanceId()
-
superCaseExecutionId
protected java.lang.String superCaseExecutionId
persisted reference to the super case execution of this execution- See Also:
setSuperCaseExecution(ExecutionEntity)
-
executionObservers
protected transient java.util.List<ExecutionObserver> executionObservers
Contains observers which are observe the execution.- Since:
- 7.6
-
registeredVariableListeners
protected transient java.util.List<VariableInstanceLifecycleListener<VariableInstanceEntity>> registeredVariableListeners
-
-
Method Detail
-
createExecution
public ExecutionEntity createExecution()
creates a new execution. properties processDefinition, processInstance and activity will be initialized.- Specified by:
createExecutionin interfaceActivityExecution- Specified by:
createExecutionin classPvmExecutionImpl
-
createSubProcessInstance
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey, java.lang.String caseInstanceId)
- Specified by:
createSubProcessInstancein interfaceActivityExecution- Overrides:
createSubProcessInstancein classPvmExecutionImpl- Parameters:
processDefinition- ThePvmProcessDefinitionof the subprocess.businessKey- the business key of the process instancecaseInstanceId- the case instance id of the process instance- See Also:
ActivityExecution.createSubProcessInstance(PvmProcessDefinition)
-
createNewExecution
protected static ExecutionEntity createNewExecution()
-
newExecution
protected PvmExecutionImpl newExecution()
- Specified by:
newExecutionin classPvmExecutionImpl
-
createSubCaseInstance
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Description copied from interface:ActivityExecutionCreates a new sub case instance.
Thisexecution will be the super execution of the created sub case instance.- Specified by:
createSubCaseInstancein interfaceActivityExecution- Specified by:
createSubCaseInstancein classPvmExecutionImpl- Parameters:
caseDefinition- TheCmmnCaseDefinitionof the sub case instance.
-
createSubCaseInstance
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition, java.lang.String businessKey)
Description copied from interface:ActivityExecutionCreates a new sub case instance.
Thisexecution will be the super execution of the created sub case instance.- Specified by:
createSubCaseInstancein interfaceActivityExecution- Specified by:
createSubCaseInstancein classPvmExecutionImpl- Parameters:
caseDefinition- TheCmmnCaseDefinitionof the sub case instance.businessKey- The businessKey to be set on sub case instance.
-
fireHistoricActivityInstanceUpdate
public void fireHistoricActivityInstanceUpdate()
-
initialize
public void initialize()
- Specified by:
initializein classPvmExecutionImpl
-
initializeTimerDeclarations
public void initializeTimerDeclarations()
- Specified by:
initializeTimerDeclarationsin classPvmExecutionImpl
-
createTimerInstances
protected void createTimerInstances(java.util.Collection<TimerDeclarationImpl> timerDeclarations)
-
initializeAssociations
protected static void initializeAssociations(ExecutionEntity execution)
-
start
public void start(java.util.Map<java.lang.String,java.lang.Object> variables, VariableMap formProperties)- Overrides:
startin classPvmExecutionImpl
-
startWithoutExecuting
public void startWithoutExecuting(java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from class:PvmExecutionImplperform starting behavior but don't execute the initial activity- Overrides:
startWithoutExecutingin classPvmExecutionImpl- Parameters:
variables- the variables which are used for the start
-
provideTenantId
protected void provideTenantId(java.util.Map<java.lang.String,java.lang.Object> variables, VariableMap properties)
-
fireHistoricProcessStartEvent
public void fireHistoricProcessStartEvent()
- Specified by:
fireHistoricProcessStartEventin classPvmExecutionImpl
-
destroy
public void destroy()
Method used for destroying a scope in a way that the execution can be removed afterwards.- Specified by:
destroyin interfaceActivityExecution- Overrides:
destroyin classPvmExecutionImpl
-
removeAllTasks
public void removeAllTasks()
- Overrides:
removeAllTasksin classPvmExecutionImpl
-
clearExecution
protected void clearExecution()
-
removeVariablesLocalInternal
public void removeVariablesLocalInternal()
- Specified by:
removeVariablesLocalInternalin classPvmExecutionImpl
-
interrupt
public void interrupt(java.lang.String reason, boolean skipCustomListeners, boolean skipIoMappings, boolean externallyTerminated)- Overrides:
interruptin classPvmExecutionImpl
-
removeActivityJobs
protected void removeActivityJobs(java.lang.String reason)
-
performOperation
public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
- Overrides:
performOperationin classCoreExecution
-
performOperationSync
public <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
- Overrides:
performOperationSyncin classCoreExecution
-
performOperation
public void performOperation(AtomicOperation executionOperation)
-
performOperationSync
public void performOperationSync(AtomicOperation executionOperation)
-
ensureNotSuspended
protected void ensureNotSuspended()
-
requiresUnsuspendedExecution
protected boolean requiresUnsuspendedExecution(AtomicOperation executionOperation)
-
scheduleAtomicOperationAsync
public void scheduleAtomicOperationAsync(AtomicOperationInvocation executionOperationInvocation)
-
isActive
public boolean isActive(java.lang.String activityId)
- Overrides:
isActivein classPvmExecutionImpl
-
inactivate
public void inactivate()
Description copied from interface:ActivityExecutionInactivates this execution. This is useful for example in a join: the execution still exists, but it is not longer active.- Specified by:
inactivatein interfaceActivityExecution- Overrides:
inactivatein classPvmExecutionImpl
-
addExecutionObserver
public void addExecutionObserver(ExecutionObserver observer)
-
removeExecutionObserver
public void removeExecutionObserver(ExecutionObserver observer)
-
getExecutions
public java.util.List<ExecutionEntity> getExecutions()
Description copied from interface:ActivityExecutionreturns the list of execution of which this execution the parent of. This is a copy of the actual list, so a modification has no direct effect.- Specified by:
getExecutionsin interfaceActivityExecution- Specified by:
getExecutionsin classPvmExecutionImpl
-
getExecutionsAsCopy
public java.util.List<ExecutionEntity> getExecutionsAsCopy()
- Specified by:
getExecutionsAsCopyin classPvmExecutionImpl
-
ensureExecutionsInitialized
protected void ensureExecutionsInitialized()
-
isExecutionTreePrefetchEnabled
protected boolean isExecutionTreePrefetchEnabled()
- Returns:
- true if execution tree prefetching is enabled
-
setExecutions
public void setExecutions(java.util.List<ExecutionEntity> executions)
-
getProcessBusinessKey
public java.lang.String getProcessBusinessKey()
Description copied from interface:DelegateExecutionThe business key for the process instance this execution is associated with.- Specified by:
getProcessBusinessKeyin interfaceDelegateExecution- Overrides:
getProcessBusinessKeyin classPvmExecutionImpl
-
getProcessDefinition
public ProcessDefinitionEntity getProcessDefinition()
ensures initialization and returns the process definition.- Overrides:
getProcessDefinitionin classPvmExecutionImpl
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:ProcessInstanceThe id of the process definition of the process instance.- Specified by:
getProcessDefinitionIdin interfaceDelegateExecution- Specified by:
getProcessDefinitionIdin interfaceProcessInstance
-
ensureProcessDefinitionInitialized
protected void ensureProcessDefinitionInitialized()
for setting the process definition, this setter must be used as subclasses can override
-
setProcessDefinition
public void setProcessDefinition(ProcessDefinitionImpl processDefinition)
- Overrides:
setProcessDefinitionin classPvmExecutionImpl
-
getProcessInstance
public ExecutionEntity getProcessInstance()
ensures initialization and returns the process instance.- Specified by:
getProcessInstancein interfaceDelegateExecution- Specified by:
getProcessInstancein classPvmExecutionImpl
-
ensureProcessInstanceInitialized
protected void ensureProcessInstanceInitialized()
-
setProcessInstance
public void setProcessInstance(PvmExecutionImpl processInstance)
- Specified by:
setProcessInstancein classPvmExecutionImpl
-
isProcessInstanceExecution
public boolean isProcessInstanceExecution()
Description copied from interface:ActivityExecutionreturns whether this execution is a process instance or not.- Specified by:
isProcessInstanceExecutionin interfaceActivityExecution- Overrides:
isProcessInstanceExecutionin classPvmExecutionImpl
-
isProcessInstanceStarting
public boolean isProcessInstanceStarting()
- Overrides:
isProcessInstanceStartingin classPvmExecutionImpl
-
getActivity
public ActivityImpl getActivity()
ensures initialization and returns the activity- Specified by:
getActivityin interfaceActivityExecution- Specified by:
getActivityin interfacePvmExecution- Overrides:
getActivityin classPvmExecutionImpl
-
getActivityId
public java.lang.String getActivityId()
- Overrides:
getActivityIdin classPvmExecutionImpl
-
ensureActivityInitialized
protected void ensureActivityInitialized()
must be called before the activity member field or getActivity() is called
-
setActivity
public void setActivity(PvmActivity activity)
- Specified by:
setActivityin interfaceActivityExecution- Overrides:
setActivityin classPvmExecutionImpl
-
generateActivityInstanceId
protected java.lang.String generateActivityInstanceId(java.lang.String activityId)
generates an activity instance id- Specified by:
generateActivityInstanceIdin classPvmExecutionImpl
-
getParent
public ExecutionEntity getParent()
ensures initialization and returns the parent- Specified by:
getParentin interfaceActivityExecution- Specified by:
getParentin classPvmExecutionImpl
-
ensureParentInitialized
protected void ensureParentInitialized()
-
setParentExecution
public void setParentExecution(PvmExecutionImpl parent)
Description copied from class:PvmExecutionImplUse #setParent to also update the child execution sets- Specified by:
setParentExecutionin classPvmExecutionImpl
-
getSuperExecutionId
public java.lang.String getSuperExecutionId()
-
getSuperExecution
public ExecutionEntity getSuperExecution()
Description copied from interface:DelegateExecutionIn case this delegate execution is the process instance execution and this process instance was started by a call activity, this method returns the execution which executed the call activity in the super process instance.- Specified by:
getSuperExecutionin interfaceDelegateExecution- Specified by:
getSuperExecutionin classPvmExecutionImpl- Returns:
- the super execution or null.
-
setSuperExecution
public void setSuperExecution(PvmExecutionImpl superExecution)
- Specified by:
setSuperExecutionin classPvmExecutionImpl
-
ensureSuperExecutionInitialized
protected void ensureSuperExecutionInitialized()
-
getSubProcessInstance
public ExecutionEntity getSubProcessInstance()
- Specified by:
getSubProcessInstancein classPvmExecutionImpl
-
setSubProcessInstance
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
- Specified by:
setSubProcessInstancein classPvmExecutionImpl
-
ensureSubProcessInstanceInitialized
protected void ensureSubProcessInstanceInitialized()
-
getSuperCaseExecutionId
public java.lang.String getSuperCaseExecutionId()
-
setSuperCaseExecutionId
public void setSuperCaseExecutionId(java.lang.String superCaseExecutionId)
-
getSuperCaseExecution
public CaseExecutionEntity getSuperCaseExecution()
- Specified by:
getSuperCaseExecutionin classPvmExecutionImpl
-
setSuperCaseExecution
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
- Specified by:
setSuperCaseExecutionin classPvmExecutionImpl
-
ensureSuperCaseExecutionInitialized
protected void ensureSuperCaseExecutionInitialized()
-
getSubCaseInstance
public CaseExecutionEntity getSubCaseInstance()
- Specified by:
getSubCaseInstancein classPvmExecutionImpl
-
setSubCaseInstance
public void setSubCaseInstance(CmmnExecution subCaseInstance)
- Specified by:
setSubCaseInstancein classPvmExecutionImpl
-
ensureSubCaseInstanceInitialized
protected void ensureSubCaseInstanceInitialized()
-
remove
public void remove()
- Specified by:
removein interfaceActivityExecution- Overrides:
removein classPvmExecutionImpl
-
removeEventSubscriptionsExceptCompensation
protected void removeEventSubscriptionsExceptCompensation()
-
removeEventSubscriptions
public void removeEventSubscriptions()
-
removeTasks
protected void removeTasks(java.lang.String reason)
-
removeExternalTasks
protected void removeExternalTasks()
-
getReplacedBy
public ExecutionEntity getReplacedBy()
Description copied from class:PvmExecutionImplReturns an execution that has replaced this execution for executing activities in their shared scope.
Invariant: this execution and getReplacedBy() execute in the same scope.
- Specified by:
getReplacedByin classPvmExecutionImpl
-
resolveReplacedBy
public ExecutionEntity resolveReplacedBy()
Description copied from class:PvmExecutionImplInstead ofPvmExecutionImpl.getReplacedBy(), which returns the execution that this execution was directly replaced with, this resolves the chain of replacements (i.e. in the case the replacedBy execution itself was replaced again)- Overrides:
resolveReplacedByin classPvmExecutionImpl
-
replace
public void replace(PvmExecutionImpl execution)
Description copied from class:PvmExecutionImplReplace an execution by this execution. The replaced execution has a pointer (
PvmExecutionImpl.getReplacedBy()) to this execution. This pointer is maintained until the replaced execution is removed or this execution is removed/ended.This is used for two cases: Execution tree expansion and execution tree compaction
- expansion: Before:
------- | e1 | scope -------After:------- | e1 | scope ------- | ------- | e2 | cc (no scope) -------e2 replaces e1: it should receive all entities associated with the activity currently executed by e1; these are tasks, (local) variables, jobs (specific for the activity, not the scope) - compaction: Before:
------- | e1 | scope ------- | ------- | e2 | cc (no scope) -------After:------- | e1 | scope -------e1 replaces e2: it should receive all entities associated with the activity currently executed by e2; these are tasks, (all) variables, all jobs
- Overrides:
replacein classPvmExecutionImpl- See Also:
PvmExecutionImpl.createConcurrentExecution(),PvmExecutionImpl.tryPruneLastConcurrentChild()
- expansion: Before:
-
onConcurrentExpand
public void onConcurrentExpand(PvmExecutionImpl scopeExecution)
Description copied from class:PvmExecutionImplCallback on tree expansion when this execution is used as the concurrent execution where the argument's children become a subordinate to. Note that this case is not the inverse of replace because replace has the semantics that the replacing execution can be used to continue execution of this execution's activity instance.- Overrides:
onConcurrentExpandin classPvmExecutionImpl
-
moveTasksTo
protected void moveTasksTo(ExecutionEntity other)
-
moveExternalTasksTo
protected void moveExternalTasksTo(ExecutionEntity other)
-
moveActivityLocalJobsTo
protected void moveActivityLocalJobsTo(ExecutionEntity other)
-
moveVariablesTo
protected void moveVariablesTo(ExecutionEntity other)
-
moveVariableTo
protected void moveVariableTo(VariableInstanceEntity variable, ExecutionEntity other)
-
moveConcurrentLocalVariablesTo
protected void moveConcurrentLocalVariablesTo(ExecutionEntity other)
-
addVariableListener
public void addVariableListener(VariableInstanceLifecycleListener<VariableInstanceEntity> listener)
-
removeVariableListener
public void removeVariableListener(VariableInstanceLifecycleListener<VariableInstanceEntity> listener)
-
isExecutingScopeLeafActivity
public boolean isExecutingScopeLeafActivity()
-
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>
-
ensureExecutionTreeInitialized
protected void ensureExecutionTreeInitialized()
Fetch all the executions inside the same process instance as list and then reconstruct the complete execution tree. In many cases this is an optimization over fetching the execution tree lazily. Usually we need all executions anyway and it is preferable to fetch more data in a single query (maybe even too much data) then to run multiple queries, each returning a fraction of the data. The most important consideration here is network roundtrip: If the process engine and database run on separate hosts, network roundtrip has to be added to each query. Economizing on the number of queries economizes on network roundtrip. The tradeoff here is network roundtrip vs. throughput: multiple roundtrips carrying small chucks of data vs. a single roundtrip carrying more data.
-
restoreProcessInstance
public void restoreProcessInstance(java.util.Collection<ExecutionEntity> executions, java.util.Collection<EventSubscriptionEntity> eventSubscriptions, java.util.Collection<VariableInstanceEntity> variables, java.util.Collection<TaskEntity> tasks, java.util.Collection<JobEntity> jobs, java.util.Collection<IncidentEntity> incidents, java.util.Collection<ExternalTaskEntity> externalTasks)
Restores a complete process instance tree including referenced entities.- Parameters:
executions- the list of all executions that are part of this process instance. Cannot be null, must include the process instance execution itself.eventSubscriptions- the list of all event subscriptions that are linked to executions which is part of this process instance If null, event subscriptions are not initialized and lazy loaded on demandvariables- the list of all variables that are linked to executions which are part of this process instance If null, variables are not initialized and are lazy loaded on demandjobs-tasks-incidents-
-
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
-
insert
public void insert()
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasDbRevision
-
forceUpdate
public void forceUpdate()
- Specified by:
forceUpdatein interfaceActivityExecution
-
toString
public java.lang.String toString()
- Overrides:
toStringin classPvmExecutionImpl
-
getToStringIdentity
protected java.lang.String getToStringIdentity()
- Overrides:
getToStringIdentityin classPvmExecutionImpl
-
getEventSubscriptionsInternal
public java.util.List<EventSubscriptionEntity> getEventSubscriptionsInternal()
-
getEventSubscriptions
public java.util.List<EventSubscriptionEntity> getEventSubscriptions()
-
getCompensateEventSubscriptions
public java.util.List<EventSubscriptionEntity> getCompensateEventSubscriptions()
-
getCompensateEventSubscriptions
public java.util.List<EventSubscriptionEntity> getCompensateEventSubscriptions(java.lang.String activityId)
-
ensureEventSubscriptionsInitialized
protected void ensureEventSubscriptionsInitialized()
-
addEventSubscription
public void addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
-
removeEventSubscription
public void removeEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
-
ensureJobsInitialized
protected void ensureJobsInitialized()
-
getJobsInternal
protected java.util.List<JobEntity> getJobsInternal()
-
getJobs
public java.util.List<JobEntity> getJobs()
-
addJob
public void addJob(JobEntity jobEntity)
-
removeJob
public void removeJob(JobEntity job)
-
ensureIncidentsInitialized
protected void ensureIncidentsInitialized()
-
getIncidentsInternal
protected java.util.List<IncidentEntity> getIncidentsInternal()
-
getIncidents
public java.util.List<IncidentEntity> getIncidents()
-
addIncident
public void addIncident(IncidentEntity incident)
-
removeIncident
public void removeIncident(IncidentEntity incident)
-
getIncidentByCauseIncidentId
public IncidentEntity getIncidentByCauseIncidentId(java.lang.String causeIncidentId)
-
ensureTasksInitialized
protected void ensureTasksInitialized()
-
getTasksInternal
protected java.util.List<TaskEntity> getTasksInternal()
-
getTasks
public java.util.List<TaskEntity> getTasks()
-
addTask
public void addTask(TaskEntity taskEntity)
-
removeTask
public void removeTask(TaskEntity task)
-
ensureExternalTasksInitialized
protected void ensureExternalTasksInitialized()
-
getExternalTasksInternal
protected java.util.List<ExternalTaskEntity> getExternalTasksInternal()
-
addExternalTask
public void addExternalTask(ExternalTaskEntity externalTask)
-
removeExternalTask
public void removeExternalTask(ExternalTaskEntity externalTask)
-
getExternalTasks
public java.util.List<ExternalTaskEntity> getExternalTasks()
-
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
-
getVariablePersistenceListener
public VariableInstanceLifecycleListener<CoreVariableInstance> getVariablePersistenceListener()
-
getVariablesInternal
public java.util.Collection<VariableInstanceEntity> getVariablesInternal()
-
removeVariableInternal
public void removeVariableInternal(VariableInstanceEntity variable)
-
addVariableInternal
public void addVariableInternal(VariableInstanceEntity variable)
-
handleConditionalEventOnVariableChange
public void handleConditionalEventOnVariableChange(VariableEvent variableEvent)
-
dispatchEvent
public void dispatchEvent(VariableEvent variableEvent)
- Specified by:
dispatchEventin interfaceVariableEventDispatcher- Overrides:
dispatchEventin classAbstractVariableScope
-
setCachedEntityState
public void setCachedEntityState(int cachedEntityState)
-
getCachedEntityState
public int getCachedEntityState()
-
getCachedEntityStateRaw
public int getCachedEntityStateRaw()
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
Description copied from interface:ProcessInstanceThe id of the root process instance associated with this process instance.- Specified by:
getRootProcessInstanceIdin interfaceProcessInstance
-
getRootProcessInstanceIdRaw
public java.lang.String getRootProcessInstanceIdRaw()
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:ExecutionId of the root of the execution tree representing the process instance. It is the same asExecution.getId()if this execution is the process instance.- Specified by:
getProcessInstanceIdin interfaceDelegateExecution- Specified by:
getProcessInstanceIdin interfaceExecution
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
getParentId
public java.lang.String getParentId()
Description copied from interface:DelegateExecutionGets the id of the parent of this execution. If null, the execution represents a process-instance.- Specified by:
getParentIdin interfaceDelegateExecution- Overrides:
getParentIdin classPvmExecutionImpl
-
setParentId
public void setParentId(java.lang.String parentId)
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
setActivityId
public void setActivityId(java.lang.String activityId)
-
setSuperExecutionId
public void setSuperExecutionId(java.lang.String superExecutionId)
-
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.
-
getSuspensionState
public int getSuspensionState()
-
setSuspensionState
public void setSuspensionState(int suspensionState)
-
isSuspended
public boolean isSuspended()
Description copied from interface:ExecutionIndicates if the execution is suspended.- Specified by:
isSuspendedin interfaceExecution- Specified by:
isSuspendedin interfaceProcessInstance
-
getCurrentActivityId
public java.lang.String getCurrentActivityId()
Description copied from interface:DelegateExecutionGets the id of the current activity.- Specified by:
getCurrentActivityIdin interfaceDelegateExecution- Overrides:
getCurrentActivityIdin classPvmExecutionImpl
-
getCurrentActivityName
public java.lang.String getCurrentActivityName()
Description copied from interface:DelegateExecutionGets the name of the current activity.- Specified by:
getCurrentActivityNamein interfaceDelegateExecution- Overrides:
getCurrentActivityNamein classPvmExecutionImpl
-
getBpmnModelElementInstance
public FlowElement getBpmnModelElementInstance()
Description copied from interface:BpmnModelExecutionContextReturns the currently executed Element in the BPMN Model. This method returns a
FlowElementwhich may be casted to the concrete type of the Bpmn Model Element currently executed.If called from a Service
ExecutionListener, the method will return the correspondingFlowNodeforExecutionListener.EVENTNAME_STARTandExecutionListener.EVENTNAME_ENDand the correspondingSequenceFlowforExecutionListener.EVENTNAME_TAKE.- Specified by:
getBpmnModelElementInstancein interfaceBpmnModelExecutionContext- Returns:
- the
FlowElementcorresponding to the current Bpmn Model Element
-
getBpmnModelInstance
public BpmnModelInstance getBpmnModelInstance()
Description copied from interface:BpmnModelExecutionContextReturns theBpmnModelInstancefor the currently executed Bpmn Model- Specified by:
getBpmnModelInstancein interfaceBpmnModelExecutionContext- Returns:
- the current
BpmnModelInstance
-
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.
-
-