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

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.PlanItemImpl
All Implemented Interfaces:
Serializable, BaseDelegateExecution, DelegatePlanItem, ProcessEngineServicesAware, VariableScope, CmmnActivityExecution, CmmnCaseInstance

public class PlanItemImpl
extends CmmnExecution
implements Serializable

Author:
Roman Smirnov
See Also:
Serialized Form

Field Summary
protected  PlanItemImpl caseInstance
           
protected  PlanItemImpl parent
           
protected  List<PlanItemImpl> planItems
           
protected  SimpleVariableStrore variableStrore
           
 
Fields inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
activity, activityInstanceId, caseDefinition, nextActivity, previousState, state
 
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
PlanItemImpl()
           
 
Method Summary
protected  PlanItemImpl createPlanItem(CmmnActivity activity)
           
protected  String generateActivityInstanceId(String activityId)
           
 String getActivityId()
           
 String getActivityName()
           
 String getCaseDefinitionId()
           
 PlanItemImpl getCaseInstance()
          ensures initialization and returns the process instance.
 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.
 PlanItemImpl getParent()
          ensures initialization and returns the parent
 String getParentId()
           
 List<PlanItemImpl> getPlanItems()
           
 ProcessEngineServices getProcessEngineServices()
          Returns the ProcessEngineServices providing access to the public API of the process engine.
protected  String getToStringIdentity()
           
protected  CoreVariableStore getVariableStore()
           
protected  PlanItemImpl newPlanItem()
           
 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, disable, enable, findPlanItem, getActivity, getActivityInstanceId, getCaseBusinessKey, getCaseDefinition, getCaseInstanceId, getNextActivity, getParentActivityInstanceId, getParentVariableScope, getPreviousState, getState, isActive, isAvailable, isCaseInstance, isClosed, isCompleted, isDisabled, isEnabled, isFailed, isSuspended, isTerminated, manualStart, reenable, setActivity, setActivityInstanceId, setCaseDefinition, setNextActivity, setPreviousState, setState, setState, 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.DelegatePlanItem
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

planItems

protected List<PlanItemImpl> planItems

caseInstance

protected PlanItemImpl caseInstance

parent

protected PlanItemImpl parent

variableStrore

protected SimpleVariableStrore variableStrore
Constructor Detail

PlanItemImpl

public PlanItemImpl()
Method Detail

getCaseDefinitionId

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

getParent

public PlanItemImpl 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 DelegatePlanItem

getActivityId

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

getActivityName

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

getPlanItems

public List<PlanItemImpl> getPlanItems()
Specified by:
getPlanItems in class CmmnExecution

getCaseInstance

public PlanItemImpl 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

generateActivityInstanceId

protected String generateActivityInstanceId(String activityId)
Specified by:
generateActivityInstanceId in class CmmnExecution

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.

createPlanItem

protected PlanItemImpl createPlanItem(CmmnActivity activity)
Specified by:
createPlanItem in class CmmnExecution

newPlanItem

protected PlanItemImpl newPlanItem()
Specified by:
newPlanItem 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 DelegatePlanItem
Overrides:
getId in class CoreExecution


Copyright © 2014 camunda services GmbH. All Rights Reserved.