Class CaseExecutionImpl
- All Implemented Interfaces:
Serializable,BaseDelegateExecution,CmmnModelExecutionContext,DelegateCaseExecution,ProcessEngineServicesAware,VariableScope,CmmnActivityExecution,CmmnCaseInstance,VariableEventDispatcher
- Author:
- Roman Smirnov
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CaseExecutionImpl>protected CaseExecutionImplprotected List<CaseSentryPartImpl>protected static final CmmnBehaviorLoggerprotected CaseExecutionImplprotected CaseExecutionImplprotected ExecutionImplprotected CaseExecutionImplprotected ExecutionImplprotected VariableStore<SimpleVariableInstance>Fields inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
activity, caseDefinition, currentState, entryCriterionSatisfied, previousState, required, task, variableEventsQueueFields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
businessKey, businessKeyWithoutCascade, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, skipSubprocesses, tenantIdFields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSentryPart(CmmnSentryPart sentryPart) protected CaseExecutionImplcreateCaseExecution(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 aListof child case executions.protected List<CaseExecutionImpl>ensures initialization and returns the process instance.Returns the currently executed Element in the Cmmn Model.Returns theCmmnModelInstancefor 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 theProcessEngineproviding access to the public API of the process engine.Returns theProcessEngineServicesproviding access to the public API of the process engine.protected Map<String,List<CmmnSentryPart>> protected Stringprotected VariableInstanceFactory<CoreVariableInstance>protected VariableStore<CoreVariableInstance>protected CaseExecutionImplprotected CmmnSentryPartvoidsetCaseInstance(CmmnExecution caseInstance) voidsetParent(CmmnExecution parent) voidsetSubCaseInstance(CmmnExecution subCaseInstance) voidsetSubProcessInstance(PvmExecutionImpl subProcessInstance) voidsetSuperCaseExecution(CmmnExecution superCaseExecution) voidsetSuperExecution(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, triggerChildExecutionsLifecycleMethods 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, setTenantIdMethods 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, setVariablesLocalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.delegate.DelegateCaseExecution
getEventName, getTenantIdMethods 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:
getCaseDefinitionIdin interfaceDelegateCaseExecution
-
getParent
Description copied from class:CmmnExecutionensures initialization and returns the parent- Specified by:
getParentin interfaceCmmnActivityExecution- Specified by:
getParentin classCmmnExecution- Returns:
- a
parentor null.
-
setParent
- Specified by:
setParentin classCmmnExecution
-
getParentId
- Specified by:
getParentIdin interfaceDelegateCaseExecution
-
getActivityId
- Specified by:
getActivityIdin interfaceDelegateCaseExecution
-
getActivityName
- Specified by:
getActivityNamein interfaceDelegateCaseExecution
-
getCaseExecutions
Description copied from interface:CmmnActivityExecutionReturns a
Listof child case executions. Ifthiscase execution has no child case executions an emptyListwill be returned.- Specified by:
getCaseExecutionsin interfaceCmmnActivityExecution- Specified by:
getCaseExecutionsin classCmmnExecution- Returns:
- a
Listof child case executions.
-
getCaseExecutionsInternal
- Specified by:
getCaseExecutionsInternalin classCmmnExecution
-
getCaseInstance
Description copied from class:CmmnExecutionensures initialization and returns the process instance.- Specified by:
getCaseInstancein classCmmnExecution
-
setCaseInstance
- Specified by:
setCaseInstancein classCmmnExecution
-
getSuperExecution
- Specified by:
getSuperExecutionin classCmmnExecution
-
setSuperExecution
- Specified by:
setSuperExecutionin classCmmnExecution
-
getSubProcessInstance
- Specified by:
getSubProcessInstancein classCmmnExecution
-
setSubProcessInstance
- Specified by:
setSubProcessInstancein classCmmnExecution
-
createSubProcessInstance
Description copied from interface:CmmnActivityExecutionCreates a new sub process instance.
Thiscase execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstancein interfaceCmmnActivityExecution- Specified by:
createSubProcessInstancein classCmmnExecution- Parameters:
processDefinition- ThePvmProcessDefinitionof the subprocess.
-
createSubProcessInstance
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey) Description copied from interface:CmmnActivityExecutionCreates a new sub process instance.
Thiscase execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstancein interfaceCmmnActivityExecution- Specified by:
createSubProcessInstancein classCmmnExecution- Parameters:
processDefinition- ThePvmProcessDefinitionof 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:CmmnActivityExecutionCreates a new sub process instance.
Thiscase execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstancein interfaceCmmnActivityExecution- Specified by:
createSubProcessInstancein classCmmnExecution- Parameters:
processDefinition- ThePvmProcessDefinitionof 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:
getSubCaseInstancein classCmmnExecution
-
setSubCaseInstance
- Specified by:
setSubCaseInstancein classCmmnExecution
-
createSubCaseInstance
Description copied from interface:CmmnActivityExecutionCreates a new sub case instance.
Thiscase execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstancein interfaceCmmnActivityExecution- Specified by:
createSubCaseInstancein classCmmnExecution- Parameters:
caseDefinition- TheCmmnCaseDefinitionof the sub case instance.
-
createSubCaseInstance
public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey) Description copied from interface:CmmnActivityExecutionCreates a new sub case instance.
Thiscase execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstancein interfaceCmmnActivityExecution- Specified by:
createSubCaseInstancein classCmmnExecution- Parameters:
caseDefinition- TheCmmnCaseDefinitionof the sub case instance.businessKey- The businessKey to be set on sub case instance.
-
getSuperCaseExecution
- Specified by:
getSuperCaseExecutionin classCmmnExecution
-
setSuperCaseExecution
- Specified by:
setSuperCaseExecutionin classCmmnExecution
-
getCaseSentryParts
- Specified by:
getCaseSentryPartsin classCmmnExecution
-
getSentries
- Specified by:
getSentriesin classCmmnExecution
-
findSentry
- Specified by:
findSentryin classCmmnExecution
-
addSentryPart
- Specified by:
addSentryPartin classCmmnExecution
-
newSentryPart
- Specified by:
newSentryPartin classCmmnExecution
-
createCaseExecution
- Specified by:
createCaseExecutionin classCmmnExecution
-
newCaseExecution
- Specified by:
newCaseExecutionin classCmmnExecution
-
getVariableStore
- Specified by:
getVariableStorein classAbstractVariableScope
-
getVariableInstanceFactory
- Specified by:
getVariableInstanceFactoryin classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()- Specified by:
getVariableInstanceLifecycleListenersin classAbstractVariableScope
-
toString
- Overrides:
toStringin classCmmnExecution
-
getToStringIdentity
- Overrides:
getToStringIdentityin classCmmnExecution
-
getId
Description copied from interface:BaseDelegateExecutionUnique 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:
getIdin interfaceBaseDelegateExecution- Specified by:
getIdin interfaceDelegateCaseExecution- Overrides:
getIdin classCoreExecution
-
getProcessEngineServices
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineServicesproviding access to the public API of the process engine.- Specified by:
getProcessEngineServicesin interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngineServices.
-
getProcessEngine
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineproviding access to the public API of the process engine.- Specified by:
getProcessEnginein interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngine.
-
getCmmnModelElementInstance
Description copied from interface:CmmnModelExecutionContextReturns the currently executed Element in the Cmmn Model. This method returns a
CmmnElementwhich may be casted to the concrete type of the Cmmn Model Element currently executed.- Specified by:
getCmmnModelElementInstancein interfaceCmmnModelExecutionContext- Returns:
- the
CmmnElementcorresponding to the current Cmmn Model Element
-
getCmmnModelInstance
Description copied from interface:CmmnModelExecutionContextReturns theCmmnModelInstancefor the currently executed Cmmn Model- Specified by:
getCmmnModelInstancein interfaceCmmnModelExecutionContext- Returns:
- the current
CmmnModelInstance
-