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, transitionBeingTaken
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners
cachedElContext
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, takeAll
getEventName, getEventSource, getListenerIndex, invokeListener, isSkipCustomListeners, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners
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
cancelScope, 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, takeAll
getCurrentActivityId, getCurrentTransitionId, getParentId
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, 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 ExecutionImpl replacedBy
protected SimpleVariableStore variableStore
public ExecutionImpl()
public ExecutionImpl(ActivityImpl startActivity)
public ExecutionImpl createExecution(boolean initializeExecutionStartContext)
createExecution
in interface ActivityExecution
createExecution
in class PvmExecutionImpl
protected ExecutionImpl newExecution()
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
createSubProcessInstance
in interface ActivityExecution
createSubProcessInstance
in class PvmExecutionImpl
processDefinition
- 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 ActivityExecution
createSubProcessInstance
in class PvmExecutionImpl
processDefinition
- 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 PvmExecutionImpl
public void interruptScope(String reason)
ActivityExecution
interruptScope
in interface ActivityExecution
public ExecutionImpl getParent()
getParent
in interface ActivityExecution
getParent
in class PvmExecutionImpl
public void setParent(PvmExecutionImpl parent)
setParent
in class PvmExecutionImpl
public List<ExecutionImpl> getExecutions()
getExecutions
in interface ActivityExecution
getExecutions
in class PvmExecutionImpl
public ExecutionImpl getSuperExecution()
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 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 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 PvmExecutionImpl getReplacedBy()
getReplacedBy
in class PvmExecutionImpl
public void setReplacedBy(PvmExecutionImpl replacedBy)
setReplacedBy
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
.Copyright © 2018. All rights reserved.