org.camunda.bpm.engine.impl.cmmn.execution
Class CaseExecutionImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.CoreVariableScope
      extended by org.camunda.bpm.engine.impl.core.instance.CoreExecution
          extended by org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
              extended by org.camunda.bpm.engine.impl.cmmn.execution.CaseExecutionImpl
All Implemented Interfaces:
Serializable, BaseDelegateExecution, CmmnModelExecutionContext, DelegateCaseExecution, ProcessEngineServicesAware, VariableScope, CmmnActivityExecution, CmmnCaseInstance

public class CaseExecutionImpl
extends CmmnExecution
implements Serializable

Author:
Roman Smirnov
See Also:
Serialized Form

Field Summary
protected  List<CaseExecutionImpl> caseExecutions
           
protected  CaseExecutionImpl caseInstance
           
protected  CaseExecutionImpl parent
           
protected  SimpleVariableStore variableStore
           
 
Fields inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
activity, caseDefinition, currentState, nextActivity, previousState
 
Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
businessKey, eventName, eventSource, id, listenerIndex
 
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.CoreVariableScope
cachedElContext
 
Constructor Summary
CaseExecutionImpl()
           
 
Method Summary
protected  CaseExecutionImpl createCaseExecution(CmmnActivity activity)
           
 String getActivityId()
           
 String getActivityName()
           
 String getCaseDefinitionId()
           
 List<CaseExecutionImpl> getCaseExecutions()
           
 CaseExecutionImpl getCaseInstance()
          ensures initialization and returns the process instance.
 org.camunda.bpm.model.cmmn.instance.CmmnElement getCmmnModelElementInstance()
          Returns the currently executed Element in the Cmmn Model.
 org.camunda.bpm.model.cmmn.CmmnModelInstance getCmmnModelInstance()
          Returns the CmmnModelInstance for the currently executed Cmmn Model
 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.
 CaseExecutionImpl getParent()
          ensures initialization and returns the parent
 String getParentId()
           
 ProcessEngineServices getProcessEngineServices()
          Returns the ProcessEngineServices providing access to the public API of the process engine.
protected  String getToStringIdentity()
           
protected  CoreVariableStore getVariableStore()
           
protected  CaseExecutionImpl newCaseExecution()
           
 void setCaseInstance(CmmnExecution caseInstance)
           
 void setParent(CmmnExecution parent)
           
 String toString()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
complete, create, create, create, create, create, deleteCascade, disable, enable, findCaseExecution, getActivity, getCaseBusinessKey, getCaseDefinition, getCaseInstanceId, getCurrentState, getNextActivity, getParentVariableScope, getPreviousState, isActive, isAvailable, isCaseInstanceExecution, isClosed, isCompleted, isDisabled, isEnabled, isFailed, isSuspended, isTerminated, manualStart, reenable, remove, setActivity, setCaseDefinition, setCurrentState, setCurrentState, setNextActivity, setPreviousState, start, transition
 
Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
getBusinessKey, getEventName, getEventSource, getListenerIndex, invokeListener, performOperation, performOperationSync, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex
 
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.CoreVariableScope
collectVariableNames, collectVariables, createVariableInstance, createVariableLocal, createVariableLocal, createVariablesLocal, getCachedElContext, getSourceActivityVariableScope, getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal, updateVariableInstance
 
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
 
Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecution
getBusinessKey
 
Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
 

Field Detail

caseExecutions

protected List<CaseExecutionImpl> caseExecutions

caseInstance

protected CaseExecutionImpl caseInstance

parent

protected CaseExecutionImpl parent

variableStore

protected SimpleVariableStore variableStore
Constructor Detail

CaseExecutionImpl

public CaseExecutionImpl()
Method Detail

getCaseDefinitionId

public String getCaseDefinitionId()
Specified by:
getCaseDefinitionId in interface DelegateCaseExecution

getParent

public CaseExecutionImpl getParent()
Description copied from class: CmmnExecution
ensures initialization and returns the parent

Specified by:
getParent in class CmmnExecution

setParent

public void setParent(CmmnExecution parent)
Specified by:
setParent in class CmmnExecution

getParentId

public String getParentId()
Specified by:
getParentId in interface DelegateCaseExecution

getActivityId

public String getActivityId()
Specified by:
getActivityId in interface DelegateCaseExecution

getActivityName

public String getActivityName()
Specified by:
getActivityName in interface DelegateCaseExecution

getCaseExecutions

public List<CaseExecutionImpl> getCaseExecutions()
Specified by:
getCaseExecutions in class CmmnExecution

getCaseInstance

public CaseExecutionImpl getCaseInstance()
Description copied from class: CmmnExecution
ensures initialization and returns the process instance.

Specified by:
getCaseInstance in class CmmnExecution

setCaseInstance

public void setCaseInstance(CmmnExecution caseInstance)
Specified by:
setCaseInstance in class CmmnExecution

createCaseExecution

protected CaseExecutionImpl createCaseExecution(CmmnActivity activity)
Specified by:
createCaseExecution in class CmmnExecution

newCaseExecution

protected CaseExecutionImpl newCaseExecution()
Specified by:
newCaseExecution in class CmmnExecution

getVariableStore

protected CoreVariableStore getVariableStore()
Specified by:
getVariableStore in class CoreVariableScope

toString

public String toString()
Overrides:
toString in class CmmnExecution

getToStringIdentity

protected String getToStringIdentity()
Overrides:
getToStringIdentity in class CmmnExecution

getId

public String 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 interface BaseDelegateExecution
Specified by:
getId in interface DelegateCaseExecution
Overrides:
getId in class CoreExecution

getProcessEngineServices

public ProcessEngineServices getProcessEngineServices()
Description copied from interface: ProcessEngineServicesAware
Returns the ProcessEngineServices providing access to the public API of the process engine.

Specified by:
getProcessEngineServices in interface ProcessEngineServicesAware
Returns:
the ProcessEngineServices.

getCmmnModelElementInstance

public org.camunda.bpm.model.cmmn.instance.CmmnElement 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 interface CmmnModelExecutionContext
Returns:
the CmmnElement corresponding to the current Cmmn Model Element

getCmmnModelInstance

public org.camunda.bpm.model.cmmn.CmmnModelInstance getCmmnModelInstance()
Description copied from interface: CmmnModelExecutionContext
Returns the CmmnModelInstance for the currently executed Cmmn Model

Specified by:
getCmmnModelInstance in interface CmmnModelExecutionContext
Returns:
the current CmmnModelInstance


Copyright © 2014 camunda services GmbH. All Rights Reserved.