|
||||||||||
| 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 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
|
| Fields inherited from class org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl |
|---|
activity, activityInstanceId, activityInstanceState, caseInstanceId, deleteReason, deleteRoot, isActive, isConcurrent, isEnded, isEventScope, isScope, nextActivity, preserveScope, processDefinition, sequenceCounter, startContext, transition, transitionsToTake |
| Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution |
|---|
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping |
| Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope |
|---|
cachedElContext |
| Constructor Summary | |
|---|---|
ExecutionImpl()
|
|
| Method Summary | |
|---|---|
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 |
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()
|
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 |
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 |
setSubCaseInstance(CmmnExecution subCaseInstance)
|
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, isSkipIoMappings, performOperation, performOperationSync, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings |
| 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.delegate.DelegateExecution |
|---|
getCurrentActivityId, getCurrentTransitionId, getParentId, isCanceled |
| 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, findExecutions, 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 CaseExecutionImpl subCaseInstance
protected ExecutionImpl replacedBy
protected SimpleVariableStore variableStore
| Constructor Detail |
|---|
public ExecutionImpl()
| Method Detail |
|---|
public ExecutionImpl createExecution(boolean initializeExecutionStartContext)
createExecution in interface ActivityExecutioncreateExecution in class PvmExecutionImplprotected ExecutionImpl newExecution()
newExecution in class PvmExecutionImplpublic void initialize()
initialize in class PvmExecutionImplpublic void initializeTimerDeclarations()
initializeTimerDeclarations in class PvmExecutionImplpublic 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()
DelegateExecution
getSuperExecution in interface DelegateExecutiongetSuperExecution 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 CaseExecutionImpl getSubCaseInstance()
getSubCaseInstance in class PvmExecutionImplpublic void setSubCaseInstance(CmmnExecution subCaseInstance)
setSubCaseInstance in class PvmExecutionImplpublic CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition)
ActivityExecutionCreates a new sub case instance.
This execution will be the super execution of the
created sub case instance.
createSubCaseInstance in interface ActivityExecutioncreateSubCaseInstance in class PvmExecutionImplcaseDefinition - The CmmnCaseDefinition of the sub case instance.
public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition,
String businessKey)
ActivityExecutionCreates a new sub case instance.
This execution will be the super execution of the
created sub case instance.
createSubCaseInstance in interface ActivityExecutioncreateSubCaseInstance in class PvmExecutionImplcaseDefinition - The CmmnCaseDefinition of the sub case instance.businessKey - The businessKey to be set on sub case instance.public String getProcessDefinitionId()
DelegateExecution
getProcessDefinitionId in interface DelegateExecutionpublic void start(Map<String,Object> variables)
start in interface PvmProcessInstancestart in class PvmExecutionImplpublic ExecutionImpl getProcessInstance()
getProcessInstance in interface DelegateExecutiongetProcessInstance 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.public void forceUpdate()
forceUpdate in interface ActivityExecutionpublic void fireHistoricProcessStartEvent()
fireHistoricProcessStartEvent in class PvmExecutionImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||