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, transitionsToTake
businessKey, businessKeyWithoutCascade, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, skipSubprocesses, tenantId
cachedElContext
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, tryPruneLastConcurrentChild
getBusinessKeyWithoutCascade, getEventName, getEventSource, getListenerIndex, getTenantId, invokeListener, isSkipCustomListeners, isSkipIoMappings, isSkipSubprocesses, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings, setSkipSubprocesseses, setTenantId
collectVariableNames, 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, setVariablesLocal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createActivityExecutionMapping, 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, tryPruneLastConcurrentChild
createIncident, createIncident, getCurrentActivityId, getCurrentTransitionId, getParentId, getTenantId, isCanceled, resolveIncident, setProcessBusinessKey, setVariable
getEventName
getVariable, 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, setVariablesLocal
deleteCascade, findActiveActivityIds, findExecution, findExecutions, isEnded, start, start
getActivity, getVariable, getVariables, hasVariable, setVariable, signal
protected 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 ActivityExecution
createExecution
in class PvmExecutionImpl
protected ExecutionImpl newExecution()
newExecution
in class PvmExecutionImpl
public void initialize()
initialize
in class PvmExecutionImpl
public void initializeTimerDeclarations()
initializeTimerDeclarations
in class PvmExecutionImpl
public ExecutionImpl getParent()
getParent
in interface ActivityExecution
getParent
in class PvmExecutionImpl
public void setParentExecution(PvmExecutionImpl parent)
PvmExecutionImpl
setParentExecution
in class PvmExecutionImpl
public List<ExecutionImpl> getExecutionsAsCopy()
getExecutionsAsCopy
in class PvmExecutionImpl
public List<ExecutionImpl> getExecutions()
getExecutions
in interface ActivityExecution
getExecutions
in class PvmExecutionImpl
public ExecutionImpl getSuperExecution()
DelegateExecution
getSuperExecution
in interface DelegateExecution
getSuperExecution
in class PvmExecutionImpl
public void setSuperExecution(PvmExecutionImpl superExecution)
setSuperExecution
in class PvmExecutionImpl
public ExecutionImpl getSubProcessInstance()
getSubProcessInstance
in class PvmExecutionImpl
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
setSubProcessInstance
in class PvmExecutionImpl
public CaseExecutionImpl getSuperCaseExecution()
getSuperCaseExecution
in class PvmExecutionImpl
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
setSuperCaseExecution
in class PvmExecutionImpl
public CaseExecutionImpl getSubCaseInstance()
getSubCaseInstance
in class PvmExecutionImpl
public void setSubCaseInstance(CmmnExecution subCaseInstance)
setSubCaseInstance
in class PvmExecutionImpl
public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition)
ActivityExecution
Creates a new sub case instance.
This
execution will be the super execution of the
created sub case instance.
createSubCaseInstance
in interface ActivityExecution
createSubCaseInstance
in class PvmExecutionImpl
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey)
ActivityExecution
Creates a new sub case instance.
This
execution will be the super execution of the
created sub case instance.
createSubCaseInstance
in interface ActivityExecution
createSubCaseInstance
in class PvmExecutionImpl
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.businessKey
- The businessKey to be set on sub case instance.public String getProcessDefinitionId()
DelegateExecution
getProcessDefinitionId
in interface DelegateExecution
public ExecutionImpl getProcessInstance()
getProcessInstance
in interface DelegateExecution
getProcessInstance
in class PvmExecutionImpl
public String getProcessInstanceId()
DelegateExecution
getProcessInstanceId
in interface DelegateExecution
public String getBusinessKey()
BaseDelegateExecution
getBusinessKey
in interface BaseDelegateExecution
getBusinessKey
in class PvmExecutionImpl
public void setBusinessKey(String businessKey)
setBusinessKey
in class CoreExecution
public String getProcessBusinessKey()
DelegateExecution
getProcessBusinessKey
in interface DelegateExecution
getProcessBusinessKey
in class PvmExecutionImpl
public void setProcessInstance(PvmExecutionImpl processInstance)
setProcessInstance
in class PvmExecutionImpl
protected String generateActivityInstanceId(String activityId)
generateActivityInstanceId
in class PvmExecutionImpl
public String toString()
toString
in class PvmExecutionImpl
protected String getToStringIdentity()
getToStringIdentity
in class PvmExecutionImpl
public String getId()
BaseDelegateExecution
getId
in interface BaseDelegateExecution
getId
in class CoreExecution
protected VariableStore<CoreVariableInstance> getVariableStore()
getVariableStore
in class AbstractVariableScope
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
getVariableInstanceFactory
in class AbstractVariableScope
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
getVariableInstanceLifecycleListeners
in class AbstractVariableScope
public ExecutionImpl getReplacedBy()
PvmExecutionImpl
Returns 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 PvmExecutionImpl
public void setExecutions(List<ExecutionImpl> executions)
public String getCurrentActivityName()
DelegateExecution
getCurrentActivityName
in interface DelegateExecution
getCurrentActivityName
in class PvmExecutionImpl
public FlowElement getBpmnModelElementInstance()
BpmnModelExecutionContext
Returns 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 BpmnModelExecutionContext
FlowElement
corresponding to the current Bpmn Model Elementpublic BpmnModelInstance getBpmnModelInstance()
BpmnModelExecutionContext
BpmnModelInstance
for the currently executed Bpmn ModelgetBpmnModelInstance
in interface BpmnModelExecutionContext
BpmnModelInstance
public ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAware
ProcessEngineServices
providing access to the
public API of the process engine.getProcessEngineServices
in interface ProcessEngineServicesAware
ProcessEngineServices
.public ProcessEngine getProcessEngine()
ProcessEngineServicesAware
ProcessEngine
providing access to the
public API of the process engine.getProcessEngine
in interface ProcessEngineServicesAware
ProcessEngine
.public void forceUpdate()
forceUpdate
in interface ActivityExecution
public void fireHistoricProcessStartEvent()
fireHistoricProcessStartEvent
in class PvmExecutionImpl
protected void removeVariablesLocalInternal()
removeVariablesLocalInternal
in class PvmExecutionImpl
Copyright © 2022. All rights reserved.