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 SimpleVariableStore |
variableStore |
activity, activityInstanceId, activityInstanceState, caseInstanceId, deleteReason, deleteRoot, isActive, isConcurrent, isEnded, isEventScope, isScope, nextActivity, preserveScope, processDefinition, replacedBy, sequenceCounter, startContext, transition, transitionsToTake
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping
cachedElContext
Constructor and Description |
---|
ExecutionImpl() |
Modifier and Type | Method and Description |
---|---|
ExecutionImpl |
createExecution(boolean initializeExecutionStartContext)
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 this execution.
|
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.
|
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 CoreVariableStore |
getVariableStore() |
void |
initialize() |
void |
initializeTimerDeclarations() |
protected ExecutionImpl |
newExecution()
instantiates a new execution.
|
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) |
void |
start(Map<String,Object> variables) |
String |
toString() |
clearScope, collectActiveActivityIds, collectExecutions, createActivityExecutionMapping, createActivityExecutionMapping, createConcurrentExecution, createExecution, createSubProcessInstance, createSubProcessInstance, createSubProcessInstance, deleteCascade, deleteCascade, deleteCascade, deleteCascade2, destroy, disposeExecutionStartContext, disposeProcessInstanceStartContext, end, endCompensation, enterActivityInstance, executeActivities, executeActivitiesConcurrent, executeActivity, executeEventHandlerActivity, executeIoMapping, findActiveActivityIds, findExecution, findExecutionForFlowScope, findExecutionForScope, findExecutions, findInactiveConcurrentExecutions, forceUpdateActivityInstance, getActivity, getActivityId, getActivityInstanceId, getActivityInstanceState, getAllChildExecutions, getCaseInstanceId, getCurrentActivityId, getCurrentTransitionId, getDeleteReason, getEventScopeExecutions, getExecutionStartContext, getFlowScopeExecution, getNextActivity, getNonEventScopeExecutions, getParentActivityInstanceId, getParentId, getParentScopeExecution, getParentVariableScope, getProcessDefinition, getProcessInstanceStartContext, getScopeActivity, getSequenceCounter, getTransition, getTransitionsToTake, getVariableScopeKey, hasChildren, hasProcessInstanceStartContext, hasReplacedParent, inactivate, incrementSequenceCounter, interrupt, interrupt, isActive, isActive, isCanceled, isCompensationHandler, isCompensationThrowing, isCompleteScope, isConcurrent, isDeleteRoot, isEnded, isEventScope, isPreserveScope, isProcessInstanceExecution, isReplacedByParent, isScope, leaveActivityInstance, leaveActivityViaTransition, leaveActivityViaTransitions, propagateEnd, remove, removeEventScopes, replace, setActive, setActivity, setActivityInstanceId, setCanceled, setCaseInstanceId, setCompleteScope, setConcurrent, setDeleteReason, setEventScope, setNextActivity, setParent, setPreserveScope, setProcessDefinition, setScope, setSequenceCounter, setStartContext, setTransition, setTransitionsToTake, signal, start, startWithoutExecuting, take, tryPruneLastConcurrentChild
getEventName, getEventSource, getListenerIndex, invokeListener, isSkipCustomListeners, isSkipIoMappings, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings
collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createActivityExecutionMapping, createExecution, createSubProcessInstance, createSubProcessInstance, createSubProcessInstance, destroy, end, endCompensation, enterActivityInstance, executeActivity, findExecutionForFlowScope, findInactiveConcurrentExecutions, getActivity, getActivityInstanceId, getNextActivity, getNonEventScopeExecutions, getParentActivityInstanceId, getTransition, hasChildren, inactivate, interrupt, isActive, isCompleteScope, isConcurrent, isEnded, isProcessInstanceExecution, isScope, leaveActivityInstance, leaveActivityViaTransition, leaveActivityViaTransitions, remove, setActive, setActivity, setActivityInstanceId, setConcurrent, setScope, signal, tryPruneLastConcurrentChild
getCurrentActivityId, getCurrentTransitionId, getParentId, isCanceled
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
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 SimpleVariableStore variableStore
public ExecutionImpl createExecution(boolean initializeExecutionStartContext)
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 void start(Map<String,Object> variables)
start
in interface PvmProcessInstance
start
in class PvmExecutionImpl
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 CoreExecution
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 CoreVariableStore getVariableStore()
getVariableStore
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 void forceUpdate()
forceUpdate
in interface ActivityExecution
public void fireHistoricProcessStartEvent()
fireHistoricProcessStartEvent
in class PvmExecutionImpl
Copyright © 2018. All rights reserved.