public class ExecutionImpl extends PvmExecutionImpl implements Serializable, ActivityExecution, PvmProcessInstance
| Modifier and Type | Field and Description |
|---|---|
protected List<ExecutionImpl> |
executions
nested executions representing scopes or concurrent paths
|
protected ExecutionImpl |
parent
the parent execution
|
protected ExecutionImpl |
processInstance
the process instance.
|
protected CaseExecutionImpl |
subCaseInstance
reference to a subcaseinstance, not-null if currently subcase is started from this execution
|
protected ExecutionImpl |
subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution
|
protected CaseExecutionImpl |
superCaseExecution
super case execution, not-null if this execution is part of a case execution
|
protected ExecutionImpl |
superExecution
super execution, not-null if this execution is part of a subprocess
|
protected VariableStore<CoreVariableInstance> |
variableStore |
activity, activityInstanceEndListenersFailed, activityInstanceId, activityInstanceState, caseInstanceId, delayedEvents, deleteReason, deleteRoot, externallyTerminated, ignoreAsync, isActive, isConcurrent, isEnded, isEventScope, isRemoved, isScope, isStarting, nextActivity, preserveScope, processDefinition, replacedBy, scopeInstantiationContext, sequenceCounter, transition, transitionsToTakebusinessKey, businessKeyWithoutCascade, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, skipSubprocesses, tenantIdcachedElContext| Constructor and Description |
|---|
ExecutionImpl() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionImpl |
createExecution()
creates a new execution.
|
CaseExecutionImpl |
createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Creates a new sub case instance.
|
CaseExecutionImpl |
createSubCaseInstance(CmmnCaseDefinition caseDefinition,
String businessKey)
Creates a new sub case instance.
|
void |
fireHistoricProcessStartEvent() |
void |
forceUpdate() |
protected String |
generateActivityInstanceId(String activityId)
generates an activity instance id
|
FlowElement |
getBpmnModelElementInstance()
Returns the currently executed Element in the BPMN Model.
|
BpmnModelInstance |
getBpmnModelInstance()
Returns the
BpmnModelInstance for the currently executed Bpmn Model |
String |
getBusinessKey()
The business key for the root execution (e.g.
|
String |
getCurrentActivityName()
Gets the name of the current activity.
|
List<ExecutionImpl> |
getExecutions()
ensures initialization and returns the non-null executions list
|
List<ExecutionImpl> |
getExecutionsAsCopy() |
String |
getId()
Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.
|
ExecutionImpl |
getParent()
ensures initialization and returns the parent
|
String |
getProcessBusinessKey()
The business key for the process instance this execution is associated
with.
|
String |
getProcessDefinitionId()
The process definition key for the process instance this execution is
associated with.
|
ProcessEngine |
getProcessEngine()
Returns the
ProcessEngine providing access to the
public API of the process engine. |
ProcessEngineServices |
getProcessEngineServices()
Returns the
ProcessEngineServices providing access to the
public API of the process engine. |
ExecutionImpl |
getProcessInstance()
ensures initialization and returns the process instance.
|
String |
getProcessInstanceId()
Reference to the overall process instance
|
ExecutionImpl |
getReplacedBy()
Returns an execution that has replaced this execution for executing activities in their shared scope.
|
CaseExecutionImpl |
getSubCaseInstance() |
ExecutionImpl |
getSubProcessInstance() |
CaseExecutionImpl |
getSuperCaseExecution() |
ExecutionImpl |
getSuperExecution()
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.
|
protected String |
getToStringIdentity() |
protected VariableInstanceFactory<CoreVariableInstance> |
getVariableInstanceFactory() |
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> |
getVariableInstanceLifecycleListeners() |
protected VariableStore<CoreVariableInstance> |
getVariableStore() |
void |
initialize() |
void |
initializeTimerDeclarations() |
protected ExecutionImpl |
newExecution()
instantiates a new execution.
|
protected void |
removeVariablesLocalInternal() |
void |
setBusinessKey(String businessKey) |
void |
setExecutions(List<ExecutionImpl> executions) |
void |
setParentExecution(PvmExecutionImpl parent)
Use #setParent to also update the child execution sets
|
void |
setProcessInstance(PvmExecutionImpl processInstance)
for setting the process instance, this setter must be used as subclasses can override
|
void |
setSubCaseInstance(CmmnExecution subCaseInstance) |
void |
setSubProcessInstance(PvmExecutionImpl subProcessInstance) |
void |
setSuperCaseExecution(CmmnExecution superCaseExecution) |
void |
setSuperExecution(PvmExecutionImpl superExecution) |
String |
toString() |
activityInstanceDone, activityInstanceEndListenerFailure, activityInstanceStarted, activityInstanceStarting, clearDelayedEvents, clearScope, collectActiveActivityIds, collectExecutions, continueExecutionIfNotCanceled, continueIfExecutionDoesNotAffectNextOperation, createActivityExecutionMapping, createActivityExecutionMapping, createActivityExecutionMapping, createConcurrentExecution, createIncident, createIncident, createIncidentContext, createSubProcessInstance, createSubProcessInstance, createSubProcessInstance, delayEvent, delayEvent, deleteCascade, deleteCascade, deleteCascade, destroy, dispatchDelayedEventsAndPerformOperation, dispatchDelayedEventsAndPerformOperation, dispatchScopeEvents, disposeScopeInstantiationContext, end, endCompensation, enterActivityInstance, executeActivities, executeActivitiesConcurrent, executeActivity, executeEventHandlerActivity, executeIoMapping, findActiveActivityIds, findExecution, findExecutionForFlowScope, findExecutionForFlowScope, findExecutionForScope, findExecutions, findInactiveChildExecutions, findInactiveConcurrentExecutions, findIncidentHandler, getActivity, getActivityId, getActivityInstanceId, getActivityInstanceState, getAllChildExecutions, getCaseInstanceId, getCurrentActivityId, getCurrentTransitionId, getDelayedEvents, getDeleteReason, getEventScopeExecutions, getFlowScope, getFlowScopeExecution, getNextActivity, getNonEventScopeExecutions, getParentActivityInstanceId, getParentId, getParentScopeExecution, getParentVariableScope, getProcessDefinition, getScopeActivity, getScopeInstantiationContext, getSequenceCounter, getTransition, getTransitionsToTake, getVariableScopeKey, hasChildren, hasFailedOnEndListeners, hasReplacedParent, inactivate, incrementSequenceCounter, initActivityIds, instantiateScopes, interrupt, interrupt, isActive, isActive, isCanceled, isCompleteScope, isConcurrent, isDeleteRoot, isEnded, isEventScope, isExternallyTerminated, isIgnoreAsync, isInState, isPreserveScope, isProcessInstanceExecution, isProcessInstanceStarting, isRemoved, isReplacedByParent, isScope, isStarting, leaveActivityInstance, leaveActivityViaTransition, leaveActivityViaTransitions, onConcurrentExpand, propagateEnd, remove, removeAllTasks, removeEventScopes, replace, resolveIncident, resolveReplacedBy, setActive, setActivity, setActivityInstanceId, setCanceled, setCaseInstanceId, setCompleteScope, setConcurrent, setDeleteReason, setDeleteRoot, setEnded, setEventScope, setExternallyTerminated, setIgnoreAsync, setNextActivity, setParent, setPreserveScope, setProcessBusinessKey, setProcessDefinition, setProcessInstanceStarting, setScope, setSequenceCounter, setStartContext, setStarting, setTransition, setTransitionsToTake, setVariable, signal, start, start, start, startWithFormProperties, startWithoutExecuting, take, tryPruneLastConcurrentChildgetBusinessKeyWithoutCascade, getEventName, getEventSource, getListenerIndex, getTenantId, invokeListener, isSkipCustomListeners, isSkipIoMappings, isSkipSubprocesses, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings, setSkipSubprocesseses, setTenantIdcollectVariableNames, collectVariables, dispatchEvent, 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, setVariablesLocalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateActivityExecutionMapping, createSubProcessInstance, createSubProcessInstance, createSubProcessInstance, destroy, end, endCompensation, enterActivityInstance, executeActivity, findExecutionForFlowScope, findInactiveChildExecutions, findInactiveConcurrentExecutions, getActivity, getActivityInstanceId, getNextActivity, getNonEventScopeExecutions, getParentActivityInstanceId, getTransition, hasChildren, inactivate, interrupt, isActive, isCompleteScope, isConcurrent, isEnded, isProcessInstanceExecution, isScope, leaveActivityInstance, leaveActivityViaTransition, leaveActivityViaTransitions, remove, setActive, setActivity, setActivityInstanceId, setConcurrent, setEnded, setScope, signal, tryPruneLastConcurrentChildcreateIncident, createIncident, getCurrentActivityId, getCurrentTransitionId, getParentId, getTenantId, isCanceled, resolveIncident, setProcessBusinessKey, setVariablegetEventNamegetVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocaldeleteCascade, findActiveActivityIds, findExecution, findExecutions, isEnded, start, startgetActivity, getVariable, getVariables, hasVariable, setVariable, signalprotected ExecutionImpl processInstance
protected ExecutionImpl parent
protected List<ExecutionImpl> executions
protected ExecutionImpl superExecution
protected ExecutionImpl subProcessInstance
protected CaseExecutionImpl superCaseExecution
protected CaseExecutionImpl subCaseInstance
protected VariableStore<CoreVariableInstance> variableStore
public ExecutionImpl createExecution()
createExecution in interface ActivityExecutioncreateExecution in class PvmExecutionImplprotected ExecutionImpl newExecution()
newExecution in class PvmExecutionImplpublic void initialize()
initialize in class PvmExecutionImplpublic void initializeTimerDeclarations()
initializeTimerDeclarations in class PvmExecutionImplpublic ExecutionImpl getParent()
getParent in interface ActivityExecutiongetParent in class PvmExecutionImplpublic void setParentExecution(PvmExecutionImpl parent)
PvmExecutionImplsetParentExecution in class PvmExecutionImplpublic List<ExecutionImpl> getExecutionsAsCopy()
getExecutionsAsCopy in class PvmExecutionImplpublic List<ExecutionImpl> getExecutions()
getExecutions in interface ActivityExecutiongetExecutions in class PvmExecutionImplpublic ExecutionImpl getSuperExecution()
DelegateExecutiongetSuperExecution in interface DelegateExecutiongetSuperExecution in class PvmExecutionImplpublic void setSuperExecution(PvmExecutionImpl superExecution)
setSuperExecution in class PvmExecutionImplpublic ExecutionImpl getSubProcessInstance()
getSubProcessInstance in class PvmExecutionImplpublic void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
setSubProcessInstance in class PvmExecutionImplpublic CaseExecutionImpl getSuperCaseExecution()
getSuperCaseExecution in class PvmExecutionImplpublic void setSuperCaseExecution(CmmnExecution superCaseExecution)
setSuperCaseExecution in class PvmExecutionImplpublic CaseExecutionImpl getSubCaseInstance()
getSubCaseInstance in class PvmExecutionImplpublic void setSubCaseInstance(CmmnExecution subCaseInstance)
setSubCaseInstance in class PvmExecutionImplpublic CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition)
ActivityExecutionCreates a new sub case instance.
This execution will be the super execution of the
created sub case instance.
createSubCaseInstance in interface ActivityExecutioncreateSubCaseInstance in class PvmExecutionImplcaseDefinition - The CmmnCaseDefinition of the sub case instance.public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey)
ActivityExecutionCreates a new sub case instance.
This execution will be the super execution of the
created sub case instance.
createSubCaseInstance in interface ActivityExecutioncreateSubCaseInstance in class PvmExecutionImplcaseDefinition - The CmmnCaseDefinition of the sub case instance.businessKey - The businessKey to be set on sub case instance.public String getProcessDefinitionId()
DelegateExecutiongetProcessDefinitionId in interface DelegateExecutionpublic ExecutionImpl getProcessInstance()
getProcessInstance in interface DelegateExecutiongetProcessInstance in class PvmExecutionImplpublic String getProcessInstanceId()
DelegateExecutiongetProcessInstanceId in interface DelegateExecutionpublic String getBusinessKey()
BaseDelegateExecutiongetBusinessKey in interface BaseDelegateExecutiongetBusinessKey in class PvmExecutionImplpublic void setBusinessKey(String businessKey)
setBusinessKey in class CoreExecutionpublic String getProcessBusinessKey()
DelegateExecutiongetProcessBusinessKey in interface DelegateExecutiongetProcessBusinessKey in class PvmExecutionImplpublic void setProcessInstance(PvmExecutionImpl processInstance)
setProcessInstance in class PvmExecutionImplprotected String generateActivityInstanceId(String activityId)
generateActivityInstanceId in class PvmExecutionImplpublic String toString()
toString in class PvmExecutionImplprotected String getToStringIdentity()
getToStringIdentity in class PvmExecutionImplpublic String getId()
BaseDelegateExecutiongetId in interface BaseDelegateExecutiongetId in class CoreExecutionprotected VariableStore<CoreVariableInstance> getVariableStore()
getVariableStore in class AbstractVariableScopeprotected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
getVariableInstanceFactory in class AbstractVariableScopeprotected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
getVariableInstanceLifecycleListeners in class AbstractVariableScopepublic ExecutionImpl getReplacedBy()
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.
getReplacedBy in class PvmExecutionImplpublic void setExecutions(List<ExecutionImpl> executions)
public String getCurrentActivityName()
DelegateExecutiongetCurrentActivityName in interface DelegateExecutiongetCurrentActivityName in class PvmExecutionImplpublic FlowElement getBpmnModelElementInstance()
BpmnModelExecutionContextReturns the currently executed Element in the BPMN Model. This method returns a FlowElement which 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 corresponding FlowNode
for ExecutionListener.EVENTNAME_START and ExecutionListener.EVENTNAME_END and the corresponding
SequenceFlow for ExecutionListener.EVENTNAME_TAKE.
getBpmnModelElementInstance in interface BpmnModelExecutionContextFlowElement corresponding to the current Bpmn Model Elementpublic BpmnModelInstance getBpmnModelInstance()
BpmnModelExecutionContextBpmnModelInstance for the currently executed Bpmn ModelgetBpmnModelInstance in interface BpmnModelExecutionContextBpmnModelInstancepublic ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAwareProcessEngineServices providing access to the
public API of the process engine.getProcessEngineServices in interface ProcessEngineServicesAwareProcessEngineServices.public ProcessEngine getProcessEngine()
ProcessEngineServicesAwareProcessEngine providing access to the
public API of the process engine.getProcessEngine in interface ProcessEngineServicesAwareProcessEngine.public void forceUpdate()
forceUpdate in interface ActivityExecutionpublic void fireHistoricProcessStartEvent()
fireHistoricProcessStartEvent in class PvmExecutionImplprotected void removeVariablesLocalInternal()
removeVariablesLocalInternal in class PvmExecutionImplCopyright © 2022. All rights reserved.