|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
org.camunda.bpm.engine.impl.core.instance.CoreExecution
org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl
org.camunda.bpm.engine.impl.pvm.runtime.ExecutionImpl
public class ExecutionImpl
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl |
|---|
activity, activityInstanceId, activityInstanceState, caseInstanceId, deleteReason, deleteRoot, isActive, isConcurrent, isEnded, isEventScope, isScope, nextActivity, processDefinition, processInstanceStartContext, startContext, transition, transitionBeingTaken |
| Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution |
|---|
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners |
| Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope |
|---|
cachedElContext |
| Constructor Summary | |
|---|---|
ExecutionImpl()
|
|
ExecutionImpl(ActivityImpl startActivity)
|
|
| Method Summary | |
|---|---|
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 |
org.camunda.bpm.model.bpmn.instance.FlowElement |
getBpmnModelElementInstance()
Returns the currently executed Element in the BPMN Model. |
org.camunda.bpm.model.bpmn.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()
|
| Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution |
|---|
getEventName, getEventSource, getListenerIndex, invokeListener, isSkipCustomListeners, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution |
|---|
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 |
| Methods inherited from interface org.camunda.bpm.engine.delegate.DelegateExecution |
|---|
getCurrentActivityId, getCurrentTransitionId, getParentId |
| Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecution |
|---|
getEventName |
| Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmProcessInstance |
|---|
deleteCascade, findActiveActivityIds, findExecution, isEnded, start |
| Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmExecution |
|---|
getActivity, getVariable, getVariables, hasVariable, setVariable, signal |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public ExecutionImpl()
public ExecutionImpl(ActivityImpl startActivity)
| Method Detail |
|---|
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)
ActivityExecution
interruptScope 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()
DelegateExecution
getProcessDefinitionId in interface DelegateExecutionpublic void start(Map<String,Object> variables)
start in interface PvmProcessInstancestart in class PvmExecutionImplpublic ExecutionImpl getProcessInstance()
getProcessInstance in class PvmExecutionImplpublic String getProcessInstanceId()
DelegateExecution
getProcessInstanceId in interface DelegateExecutionpublic String getBusinessKey()
BaseDelegateExecution
getBusinessKey in interface BaseDelegateExecutiongetBusinessKey in class CoreExecutionpublic void setBusinessKey(String businessKey)
setBusinessKey in class CoreExecutionpublic String getProcessBusinessKey()
DelegateExecution
getProcessBusinessKey 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()
BaseDelegateExecution
getId 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()
DelegateExecution
getCurrentActivityName in interface DelegateExecutiongetCurrentActivityName in class PvmExecutionImplpublic org.camunda.bpm.model.bpmn.instance.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 org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
BpmnModelExecutionContextBpmnModelInstance for the currently executed Bpmn Model
getBpmnModelInstance in interface BpmnModelExecutionContextBpmnModelInstancepublic ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAwareProcessEngineServices providing access to the
public API of the process engine.
getProcessEngineServices in interface ProcessEngineServicesAwareProcessEngineServices.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||