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 ExecutionImpl |
replacedBy |
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, processDefinition, processInstanceStartContext, startContext, transition, transitionBeingTakenbusinessKey, eventName, eventSource, id, listenerIndex, skipCustomListenerscachedElContext| Constructor and Description |
|---|
ExecutionImpl() |
ExecutionImpl(ActivityImpl startActivity) |
| Modifier and Type | Method and Description |
|---|---|
ExecutionImpl |
createExecution(boolean initializeExecutionStartContext)
creates a new execution.
|
PvmExecutionImpl |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey) |
PvmExecutionImpl |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey,
String caseInstanceId) |
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
|
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
|
PvmExecutionImpl |
getReplacedBy() |
ExecutionImpl |
getSubProcessInstance() |
CaseExecutionImpl |
getSuperCaseExecution() |
ExecutionImpl |
getSuperExecution() |
protected String |
getToStringIdentity() |
protected CoreVariableStore |
getVariableStore() |
void |
initialize() |
void |
interruptScope(String reason)
Called when an execution is interrupted.
|
protected ExecutionImpl |
newExecution()
instantiates a new execution.
|
void |
setBusinessKey(String businessKey) |
void |
setExecutions(List<ExecutionImpl> executions) |
void |
setParent(PvmExecutionImpl parent)
all updates need to go through this setter as subclasses can override this method
|
void |
setProcessInstance(PvmExecutionImpl processInstance)
for setting the process instance, this setter must be used as subclasses can override
|
void |
setReplacedBy(PvmExecutionImpl replacedBy) |
void |
setSubProcessInstance(PvmExecutionImpl subProcessInstance) |
void |
setSuperCaseExecution(CmmnExecution superCaseExecution) |
void |
setSuperExecution(PvmExecutionImpl superExecution) |
void |
start(Map<String,Object> variables) |
String |
toString() |
allExecutionsInSameActivity, cancelScope, collectActiveActivityIds, createExecution, createSubProcessInstance, deleteCascade, deleteCascade, deleteCascade2, destroy, disposeExecutionStartContext, disposeProcessInstanceStartContext, end, endCompensation, enterActivityInstance, executeActivity, findActiveActivityIds, findExecution, findInactiveConcurrentExecutions, forceUpdateActivityInstance, getActivity, getActivityId, getActivityInstanceId, getActivityInstanceState, getAllChildExecutions, getCaseInstanceId, getCurrentActivityId, getCurrentTransitionId, getDeleteReason, getExecutionStartContext, getNextActivity, getParentActivityInstanceId, getParentId, getParentVariableScope, getProcessDefinition, getProcessInstanceStartContext, getScopeActivity, getTransition, getTransitionBeingTaken, getVariableScopeKey, hasConcurrentSiblings, inactivate, isActive, isActive, isCanceled, isCompleteScope, isConcurrent, isDeleteRoot, isEnded, isEventScope, isProcessInstanceExecution, isScope, leaveActivityInstance, remove, removeEventScopes, replace, setActive, setActivity, setActivityInstanceId, setCanceled, setCaseInstanceId, setCompleteScope, setConcurrent, setDeleteReason, setEventScope, setProcessDefinition, setScope, setStartContext, setTransition, setTransitionBeingTaken, signal, start, take, takeAllgetEventName, getEventSource, getListenerIndex, invokeListener, isSkipCustomListeners, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListenerscollectVariableNames, 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, setVariablesLocalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancelScope, createExecution, createSubProcessInstance, end, endCompensation, enterActivityInstance, executeActivity, findInactiveConcurrentExecutions, getActivity, getActivityInstanceId, getNextActivity, getParentActivityInstanceId, inactivate, isActive, isCanceled, isCompleteScope, isConcurrent, isEnded, isProcessInstanceExecution, isScope, leaveActivityInstance, remove, setActive, setActivity, setActivityInstanceId, setConcurrent, setScope, signal, take, takeAllgetCurrentActivityId, getCurrentTransitionId, getParentIdgetEventNamegetVariable, 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, isEnded, 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 ExecutionImpl replacedBy
protected SimpleVariableStore variableStore
public ExecutionImpl()
public ExecutionImpl(ActivityImpl startActivity)
public ExecutionImpl createExecution(boolean initializeExecutionStartContext)
createExecution in interface ActivityExecutioncreateExecution in class PvmExecutionImplprotected ExecutionImpl newExecution()
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
createSubProcessInstance in interface ActivityExecutioncreateSubProcessInstance in class PvmExecutionImplprocessDefinition - The PvmProcessDefinition of the subprocess.businessKey - the business key of the process instanceActivityExecution.createSubProcessInstance(PvmProcessDefinition)public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId)
createSubProcessInstance in interface ActivityExecutioncreateSubProcessInstance in class PvmExecutionImplprocessDefinition - The PvmProcessDefinition of the subprocess.businessKey - the business key of the process instancecaseInstanceId - the case instance id of the process instanceActivityExecution.createSubProcessInstance(PvmProcessDefinition)public void initialize()
initialize in class PvmExecutionImplpublic void interruptScope(String reason)
ActivityExecutioninterruptScope in interface ActivityExecutionpublic ExecutionImpl getParent()
getParent in interface ActivityExecutiongetParent in class PvmExecutionImplpublic void setParent(PvmExecutionImpl parent)
setParent in class PvmExecutionImplpublic List<ExecutionImpl> getExecutions()
getExecutions in interface ActivityExecutiongetExecutions in class PvmExecutionImplpublic ExecutionImpl getSuperExecution()
getSuperExecution 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 String getProcessDefinitionId()
DelegateExecutiongetProcessDefinitionId in interface DelegateExecutionpublic void start(Map<String,Object> variables)
start in interface PvmProcessInstancestart in class PvmExecutionImplpublic ExecutionImpl getProcessInstance()
getProcessInstance in class PvmExecutionImplpublic String getProcessInstanceId()
DelegateExecutiongetProcessInstanceId in interface DelegateExecutionpublic String getBusinessKey()
BaseDelegateExecutiongetBusinessKey in interface BaseDelegateExecutiongetBusinessKey in class CoreExecutionpublic 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 CoreVariableStore getVariableStore()
getVariableStore in class AbstractVariableScopepublic PvmExecutionImpl getReplacedBy()
getReplacedBy in class PvmExecutionImplpublic void setReplacedBy(PvmExecutionImpl replacedBy)
setReplacedBy 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.Copyright © 2018. All rights reserved.