Class CaseExecutionImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
-
- org.camunda.bpm.engine.impl.core.instance.CoreExecution
-
- org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
-
- org.camunda.bpm.engine.impl.cmmn.execution.CaseExecutionImpl
-
- All Implemented Interfaces:
Serializable,BaseDelegateExecution,CmmnModelExecutionContext,DelegateCaseExecution,ProcessEngineServicesAware,VariableScope,CmmnActivityExecution,CmmnCaseInstance,VariableEventDispatcher
public class CaseExecutionImpl extends CmmnExecution implements Serializable
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<CaseExecutionImpl>caseExecutionsprotected CaseExecutionImplcaseInstanceprotected List<CaseSentryPartImpl>caseSentryPartsprotected static CmmnBehaviorLoggerLOGprotected CaseExecutionImplparentprotected CaseExecutionImplsubCaseInstanceprotected ExecutionImplsubProcessInstanceprotected CaseExecutionImplsuperCaseExecutionprotected ExecutionImplsuperExecutionprotected VariableStore<SimpleVariableInstance>variableStore-
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
Constructors Constructor Description CaseExecutionImpl()
-
Method Summary
-
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 Detail
-
LOG
protected static final CmmnBehaviorLogger LOG
-
caseExecutions
protected List<CaseExecutionImpl> caseExecutions
-
caseSentryParts
protected List<CaseSentryPartImpl> caseSentryParts
-
caseInstance
protected CaseExecutionImpl caseInstance
-
parent
protected CaseExecutionImpl parent
-
subProcessInstance
protected ExecutionImpl subProcessInstance
-
superExecution
protected ExecutionImpl superExecution
-
subCaseInstance
protected CaseExecutionImpl subCaseInstance
-
superCaseExecution
protected CaseExecutionImpl superCaseExecution
-
variableStore
protected VariableStore<SimpleVariableInstance> variableStore
-
-
Method Detail
-
getCaseDefinitionId
public String getCaseDefinitionId()
- Specified by:
getCaseDefinitionIdin interfaceDelegateCaseExecution
-
getParent
public CaseExecutionImpl getParent()
Description copied from class:CmmnExecutionensures initialization and returns the parent- Specified by:
getParentin interfaceCmmnActivityExecution- Specified by:
getParentin classCmmnExecution- Returns:
- a
parentor null.
-
setParent
public void setParent(CmmnExecution parent)
- Specified by:
setParentin classCmmnExecution
-
getParentId
public String getParentId()
- Specified by:
getParentIdin interfaceDelegateCaseExecution
-
getActivityId
public String getActivityId()
- Specified by:
getActivityIdin interfaceDelegateCaseExecution
-
getActivityName
public String getActivityName()
- Specified by:
getActivityNamein interfaceDelegateCaseExecution
-
getCaseExecutions
public List<CaseExecutionImpl> 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
protected List<CaseExecutionImpl> getCaseExecutionsInternal()
- Specified by:
getCaseExecutionsInternalin classCmmnExecution
-
getCaseInstance
public CaseExecutionImpl getCaseInstance()
Description copied from class:CmmnExecutionensures initialization and returns the process instance.- Specified by:
getCaseInstancein classCmmnExecution
-
setCaseInstance
public void setCaseInstance(CmmnExecution caseInstance)
- Specified by:
setCaseInstancein classCmmnExecution
-
getSuperExecution
public ExecutionImpl getSuperExecution()
- Specified by:
getSuperExecutionin classCmmnExecution
-
setSuperExecution
public void setSuperExecution(PvmExecutionImpl superExecution)
- Specified by:
setSuperExecutionin classCmmnExecution
-
getSubProcessInstance
public ExecutionImpl getSubProcessInstance()
- Specified by:
getSubProcessInstancein classCmmnExecution
-
setSubProcessInstance
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
- Specified by:
setSubProcessInstancein classCmmnExecution
-
createSubProcessInstance
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition)
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
public CaseExecutionImpl getSubCaseInstance()
- Specified by:
getSubCaseInstancein classCmmnExecution
-
setSubCaseInstance
public void setSubCaseInstance(CmmnExecution subCaseInstance)
- Specified by:
setSubCaseInstancein classCmmnExecution
-
createSubCaseInstance
public CaseExecutionImpl createSubCaseInstance(CmmnCaseDefinition caseDefinition)
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
public CaseExecutionImpl getSuperCaseExecution()
- Specified by:
getSuperCaseExecutionin classCmmnExecution
-
setSuperCaseExecution
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
- Specified by:
setSuperCaseExecutionin classCmmnExecution
-
getCaseSentryParts
public List<CaseSentryPartImpl> getCaseSentryParts()
- Specified by:
getCaseSentryPartsin classCmmnExecution
-
getSentries
protected Map<String,List<CmmnSentryPart>> getSentries()
- Specified by:
getSentriesin classCmmnExecution
-
findSentry
protected List<CaseSentryPartImpl> findSentry(String sentryId)
- Specified by:
findSentryin classCmmnExecution
-
addSentryPart
protected void addSentryPart(CmmnSentryPart sentryPart)
- Specified by:
addSentryPartin classCmmnExecution
-
newSentryPart
protected CmmnSentryPart newSentryPart()
- Specified by:
newSentryPartin classCmmnExecution
-
createCaseExecution
protected CaseExecutionImpl createCaseExecution(CmmnActivity activity)
- Specified by:
createCaseExecutionin classCmmnExecution
-
newCaseExecution
protected CaseExecutionImpl newCaseExecution()
- Specified by:
newCaseExecutionin classCmmnExecution
-
getVariableStore
protected VariableStore<CoreVariableInstance> getVariableStore()
- Specified by:
getVariableStorein classAbstractVariableScope
-
getVariableInstanceFactory
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
- Specified by:
getVariableInstanceFactoryin classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
- Specified by:
getVariableInstanceLifecycleListenersin classAbstractVariableScope
-
toString
public String toString()
- Overrides:
toStringin classCmmnExecution
-
getToStringIdentity
protected String getToStringIdentity()
- Overrides:
getToStringIdentityin classCmmnExecution
-
getId
public String 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
public ProcessEngineServices getProcessEngineServices()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineServicesproviding access to the public API of the process engine.- Specified by:
getProcessEngineServicesin interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngineServices.
-
getProcessEngine
public ProcessEngine getProcessEngine()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineproviding access to the public API of the process engine.- Specified by:
getProcessEnginein interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngine.
-
getCmmnModelElementInstance
public CmmnElement 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
public CmmnModelInstance getCmmnModelInstance()
Description copied from interface:CmmnModelExecutionContextReturns theCmmnModelInstancefor the currently executed Cmmn Model- Specified by:
getCmmnModelInstancein interfaceCmmnModelExecutionContext- Returns:
- the current
CmmnModelInstance
-
-