Class CaseExecutionImpl
- All Implemented Interfaces:
Serializable
,BaseDelegateExecution
,CmmnModelExecutionContext
,DelegateCaseExecution
,ProcessEngineServicesAware
,VariableScope
,CmmnActivityExecution
,CmmnCaseInstance
,VariableEventDispatcher
- Author:
- Roman Smirnov
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<CaseExecutionImpl>
protected CaseExecutionImpl
protected List<CaseSentryPartImpl>
protected static final CmmnBehaviorLogger
protected CaseExecutionImpl
protected CaseExecutionImpl
protected ExecutionImpl
protected CaseExecutionImpl
protected ExecutionImpl
protected VariableStore<SimpleVariableInstance>
Fields inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
activity, caseDefinition, currentState, entryCriterionSatisfied, previousState, required, task, variableEventsQueue
Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
businessKey, businessKeyWithoutCascade, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, skipSubprocesses, tenantId
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addSentryPart
(CmmnSentryPart sentryPart) protected CaseExecutionImpl
createCaseExecution
(CmmnActivity activity) createSubCaseInstance
(CmmnCaseDefinition caseDefinition) Creates a new sub case instance.createSubCaseInstance
(CmmnCaseDefinition caseDefinition, String businessKey) Creates a new sub case instance.createSubProcessInstance
(PvmProcessDefinition processDefinition) Creates a new sub process instance.createSubProcessInstance
(PvmProcessDefinition processDefinition, String businessKey) Creates a new sub process instance.createSubProcessInstance
(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId) Creates a new sub process instance.protected List<CaseSentryPartImpl>
findSentry
(String sentryId) Returns aList
of child case executions.protected List<CaseExecutionImpl>
ensures initialization and returns the process instance.Returns the currently executed Element in the Cmmn Model.Returns theCmmnModelInstance
for the currently executed Cmmn ModelgetId()
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.ensures initialization and returns the parentReturns theProcessEngine
providing access to the public API of the process engine.Returns theProcessEngineServices
providing access to the public API of the process engine.protected Map<String,
List<CmmnSentryPart>> protected String
protected VariableInstanceFactory<CoreVariableInstance>
protected VariableStore<CoreVariableInstance>
protected CaseExecutionImpl
protected CmmnSentryPart
void
setCaseInstance
(CmmnExecution caseInstance) void
setParent
(CmmnExecution parent) void
setSubCaseInstance
(CmmnExecution subCaseInstance) void
setSubProcessInstance
(PvmExecutionImpl subProcessInstance) void
setSuperCaseExecution
(CmmnExecution superCaseExecution) void
setSuperExecution
(PvmExecutionImpl superExecution) toString()
Methods inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
addIdIfNotSatisfied, checkAndFireEntryCriteria, checkAndFireExitCriteria, close, collectAffectedSentries, collectAffectedSentriesWithVariableOnParts, collectAllSentries, collectCaseExecutionsInExecutionTree, collectSentryParts, complete, containsIfPartAndExecutionActive, create, create, createChildExecutions, createIfPart, createOnPart, createSentryPart, createSentryParts, createTask, createVariableOnPart, deleteCascade, disable, dispatchEvent, enable, exit, findCaseExecution, fireEntryCriteria, fireExitCriteria, fireIfOnlySentryParts, fireSentries, forceUpdateOnCaseSentryParts, forceUpdateOnSentries, getActivity, getAffectedSentryParts, getBusinessKey, getCaseBusinessKey, getCaseDefinition, getCaseInstanceId, getCurrentState, getParentVariableScope, getPrevious, getPreviousState, getSatisfiedSentries, getSatisfiedSentriesInExecutionTree, getState, getTask, getVariableEventQueue, getVariableScopeKey, handleChildTransition, handleVariableTransition, hasVariableWithSameNameInParent, invokeVariableListeners, isActive, isAvailable, isCaseInstanceExecution, isClosed, isCompleted, isDisabled, isEnabled, isEntryCriterionSatisfied, isFailed, isNew, isNotSatisfiedIfPartOnly, isRequired, isSentryPartsSatisfied, isSentrySatisfied, isSuspended, isSuspending, isTerminated, isTerminating, manualComplete, manualStart, occur, parentComplete, parentResume, parentSuspend, parentTerminate, performExit, performParentSuspension, performParentTerminate, performSuspension, performTerminate, queueVariableEvent, reactivate, reenable, remove, resetSentries, resetSentryParts, resume, setActivity, setCaseDefinition, setCurrentState, setPrevious, setRequired, setState, setTask, start, suspend, terminate, triggerChildExecutionsLifecycle
Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
getBusinessKeyWithoutCascade, getEventName, getEventSource, getListenerIndex, getTenantId, hasFailedOnEndListeners, invokeListener, isSkipCustomListeners, isSkipIoMappings, isSkipSubprocesses, performOperation, performOperationSync, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings, setSkipSubprocesseses, setTenantId
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal, setVariablesLocal
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.DelegateCaseExecution
getEventName, getTenantId
Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
-
Field Details
-
LOG
-
caseExecutions
-
caseSentryParts
-
caseInstance
-
parent
-
subProcessInstance
-
superExecution
-
subCaseInstance
-
superCaseExecution
-
variableStore
-
-
Constructor Details
-
CaseExecutionImpl
public CaseExecutionImpl()
-
-
Method Details
-
getCaseDefinitionId
- Specified by:
getCaseDefinitionId
in interfaceDelegateCaseExecution
-
getParent
Description copied from class:CmmnExecution
ensures initialization and returns the parent- Specified by:
getParent
in interfaceCmmnActivityExecution
- Specified by:
getParent
in classCmmnExecution
- Returns:
- a
parent
or null.
-
setParent
- Specified by:
setParent
in classCmmnExecution
-
getParentId
- Specified by:
getParentId
in interfaceDelegateCaseExecution
-
getActivityId
- Specified by:
getActivityId
in interfaceDelegateCaseExecution
-
getActivityName
- Specified by:
getActivityName
in interfaceDelegateCaseExecution
-
getCaseExecutions
Description copied from interface:CmmnActivityExecution
Returns a
List
of child case executions. Ifthis
case execution has no child case executions an emptyList
will be returned.- Specified by:
getCaseExecutions
in interfaceCmmnActivityExecution
- Specified by:
getCaseExecutions
in classCmmnExecution
- Returns:
- a
List
of child case executions.
-
getCaseExecutionsInternal
- Specified by:
getCaseExecutionsInternal
in classCmmnExecution
-
getCaseInstance
Description copied from class:CmmnExecution
ensures initialization and returns the process instance.- Specified by:
getCaseInstance
in classCmmnExecution
-
setCaseInstance
- Specified by:
setCaseInstance
in classCmmnExecution
-
getSuperExecution
- Specified by:
getSuperExecution
in classCmmnExecution
-
setSuperExecution
- Specified by:
setSuperExecution
in classCmmnExecution
-
getSubProcessInstance
- Specified by:
getSubProcessInstance
in classCmmnExecution
-
setSubProcessInstance
- Specified by:
setSubProcessInstance
in classCmmnExecution
-
createSubProcessInstance
Description copied from interface:CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubProcessInstance
in classCmmnExecution
- Parameters:
processDefinition
- ThePvmProcessDefinition
of the subprocess.
-
createSubProcessInstance
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey) Description copied from interface:CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubProcessInstance
in classCmmnExecution
- Parameters:
processDefinition
- ThePvmProcessDefinition
of the subprocess.businessKey
- The businessKey to be set on sub process instance.
-
createSubProcessInstance
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId) Description copied from interface:CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubProcessInstance
in classCmmnExecution
- Parameters:
processDefinition
- ThePvmProcessDefinition
of the subprocess.businessKey
- The businessKey to be set on sub process instance.caseInstanceId
- The caseInstanceId to be set on sub process instance.
-
getSubCaseInstance
- Specified by:
getSubCaseInstance
in classCmmnExecution
-
setSubCaseInstance
- Specified by:
setSubCaseInstance
in classCmmnExecution
-
createSubCaseInstance
Description copied from interface:CmmnActivityExecution
Creates a new sub case instance.
This
case execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubCaseInstance
in classCmmnExecution
- Parameters:
caseDefinition
- TheCmmnCaseDefinition
of the sub case instance.
-
createSubCaseInstance
public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey) Description copied from interface:CmmnActivityExecution
Creates a new sub case instance.
This
case execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubCaseInstance
in classCmmnExecution
- Parameters:
caseDefinition
- TheCmmnCaseDefinition
of the sub case instance.businessKey
- The businessKey to be set on sub case instance.
-
getSuperCaseExecution
- Specified by:
getSuperCaseExecution
in classCmmnExecution
-
setSuperCaseExecution
- Specified by:
setSuperCaseExecution
in classCmmnExecution
-
getCaseSentryParts
- Specified by:
getCaseSentryParts
in classCmmnExecution
-
getSentries
- Specified by:
getSentries
in classCmmnExecution
-
findSentry
- Specified by:
findSentry
in classCmmnExecution
-
addSentryPart
- Specified by:
addSentryPart
in classCmmnExecution
-
newSentryPart
- Specified by:
newSentryPart
in classCmmnExecution
-
createCaseExecution
- Specified by:
createCaseExecution
in classCmmnExecution
-
newCaseExecution
- Specified by:
newCaseExecution
in classCmmnExecution
-
getVariableStore
- Specified by:
getVariableStore
in classAbstractVariableScope
-
getVariableInstanceFactory
- Specified by:
getVariableInstanceFactory
in classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()- Specified by:
getVariableInstanceLifecycleListeners
in classAbstractVariableScope
-
toString
- Overrides:
toString
in classCmmnExecution
-
getToStringIdentity
- Overrides:
getToStringIdentity
in classCmmnExecution
-
getId
Description copied from interface:BaseDelegateExecution
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.- Specified by:
getId
in interfaceBaseDelegateExecution
- Specified by:
getId
in interfaceDelegateCaseExecution
- Overrides:
getId
in classCoreExecution
-
getProcessEngineServices
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngineServices
providing access to the public API of the process engine.- Specified by:
getProcessEngineServices
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngineServices
.
-
getProcessEngine
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngine
providing access to the public API of the process engine.- Specified by:
getProcessEngine
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngine
.
-
getCmmnModelElementInstance
Description copied from interface:CmmnModelExecutionContext
Returns the currently executed Element in the Cmmn Model. This method returns a
CmmnElement
which may be casted to the concrete type of the Cmmn Model Element currently executed.- Specified by:
getCmmnModelElementInstance
in interfaceCmmnModelExecutionContext
- Returns:
- the
CmmnElement
corresponding to the current Cmmn Model Element
-
getCmmnModelInstance
Description copied from interface:CmmnModelExecutionContext
Returns theCmmnModelInstance
for the currently executed Cmmn Model- Specified by:
getCmmnModelInstance
in interfaceCmmnModelExecutionContext
- Returns:
- the current
CmmnModelInstance
-