Class ProcessDefinitionImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.core.model.CoreModelElement
- 
- org.camunda.bpm.engine.impl.core.model.CoreActivity
- 
- org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
- 
- org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- PvmProcessDefinition,- PvmProcessElement,- PvmScope,- ReadOnlyProcessDefinition
 - Direct Known Subclasses:
- ProcessDefinitionEntity
 
 public class ProcessDefinitionImpl extends ScopeImpl implements PvmProcessDefinition - Author:
- Tom Baeyens, Daniel Meyer
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImplScopeImpl.BacklogErrorCallback
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected ActivityImplinitialprotected java.util.Map<ActivityImpl,java.util.List<ActivityImpl>>initialActivityStacksprotected java.util.List<LaneSet>laneSetsprotected java.lang.Stringnameprotected ParticipantProcessparticipantProcess- 
Fields inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImplBACKLOG, eventActivities, flowActivities, isSubProcessScope, namedFlowActivities, processDefinition
 - 
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivityioMapping
 - 
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElementbuiltInListeners, builtInVariableListeners, id, listeners, properties, variableListeners
 
- 
 - 
Constructor SummaryConstructors Constructor Description ProcessDefinitionImpl(java.lang.String id)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLaneSet(LaneSet newLaneSet)PvmProcessInstancecreateProcessInstance()PvmProcessInstancecreateProcessInstance(java.lang.String businessKey)PvmProcessInstancecreateProcessInstance(java.lang.String businessKey, java.lang.String caseInstanceId)PvmProcessInstancecreateProcessInstance(java.lang.String businessKey, java.lang.String caseInstanceId, ActivityImpl initial)PvmProcessInstancecreateProcessInstance(java.lang.String businessKey, ActivityImpl initial)PvmProcessInstancecreateProcessInstanceForInitial(ActivityImpl initial)creates a process instance using the provided activity as initialprotected voidensureDefaultInitialExists()CoreActivityBehavior<? extends BaseDelegateExecution>getActivityBehavior()java.lang.StringgetDeploymentId()java.lang.StringgetDescription()java.lang.StringgetDiagramResourceName()PvmScopegetEventScope()The event scope for an activity is the scope in which the activity listens for events.ScopeImplgetFlowScope()The flow scope of the activity.ActivityImplgetInitial()java.util.List<ActivityImpl>getInitialActivityStack()java.util.List<ActivityImpl>getInitialActivityStack(ActivityImpl startActivity)LanegetLaneForId(java.lang.String id)java.util.List<LaneSet>getLaneSets()PvmScopegetLevelOfSubprocessScope()The "level of subprocess scope" as defined in bpmn: this is the subprocess containing the activity.ParticipantProcessgetParticipantProcess()booleanisScope()Indicates whether this is a local scope for variables and events if true, there will _always_ be a scope execution created for it.booleanisSubProcessScope()Indicates whether this scope is a sub process scope.protected PvmExecutionImplnewProcessInstance()voidsetInitial(ActivityImpl initial)voidsetParticipantProcess(ParticipantProcess participantProcess)java.lang.StringtoString()- 
Methods inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpladdExecutionListener, addExecutionListener, addToBacklog, contains, createActivity, findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getBacklogErrorCallbacks, getChildActivity, getEventActivities, getExecutionListeners, getExecutionListeners, getProcessDefinition, isAncestorFlowScopeOf, isBacklogEmpty, setSubProcessScope
 - 
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivitycreateActivity, getIoMapping, setIoMapping
 - 
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElementaddBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setProperty
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmProcessElementgetId, getProcessDefinition, getProperties, getProperty
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmScopefindActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.ReadOnlyProcessDefinitiongetName
 
- 
 
- 
- 
- 
Field Detail- 
nameprotected java.lang.String name 
 - 
descriptionprotected java.lang.String description 
 - 
initialprotected ActivityImpl initial 
 - 
initialActivityStacksprotected java.util.Map<ActivityImpl,java.util.List<ActivityImpl>> initialActivityStacks 
 - 
laneSetsprotected java.util.List<LaneSet> laneSets 
 - 
participantProcessprotected ParticipantProcess participantProcess 
 
- 
 - 
Method Detail- 
ensureDefaultInitialExistsprotected void ensureDefaultInitialExists() 
 - 
createProcessInstancepublic PvmProcessInstance createProcessInstance() - Specified by:
- createProcessInstancein interface- PvmProcessDefinition
 
 - 
createProcessInstancepublic PvmProcessInstance createProcessInstance(java.lang.String businessKey) - Specified by:
- createProcessInstancein interface- PvmProcessDefinition
 
 - 
createProcessInstancepublic PvmProcessInstance createProcessInstance(java.lang.String businessKey, java.lang.String caseInstanceId) - Specified by:
- createProcessInstancein interface- PvmProcessDefinition
 
 - 
createProcessInstancepublic PvmProcessInstance createProcessInstance(java.lang.String businessKey, ActivityImpl initial) 
 - 
createProcessInstancepublic PvmProcessInstance createProcessInstance(java.lang.String businessKey, java.lang.String caseInstanceId, ActivityImpl initial) 
 - 
createProcessInstanceForInitialpublic PvmProcessInstance createProcessInstanceForInitial(ActivityImpl initial) creates a process instance using the provided activity as initial
 - 
newProcessInstanceprotected PvmExecutionImpl newProcessInstance() 
 - 
getInitialActivityStackpublic java.util.List<ActivityImpl> getInitialActivityStack() 
 - 
getInitialActivityStackpublic java.util.List<ActivityImpl> getInitialActivityStack(ActivityImpl startActivity) 
 - 
getDiagramResourceNamepublic java.lang.String getDiagramResourceName() - Specified by:
- getDiagramResourceNamein interface- ReadOnlyProcessDefinition
 
 - 
getDeploymentIdpublic java.lang.String getDeploymentId() - Specified by:
- getDeploymentIdin interface- PvmProcessDefinition
 
 - 
addLaneSetpublic void addLaneSet(LaneSet newLaneSet) 
 - 
getLaneForIdpublic Lane getLaneForId(java.lang.String id) 
 - 
getActivityBehaviorpublic CoreActivityBehavior<? extends BaseDelegateExecution> getActivityBehavior() - Specified by:
- getActivityBehaviorin class- CoreActivity
 
 - 
getInitialpublic ActivityImpl getInitial() - Specified by:
- getInitialin interface- ReadOnlyProcessDefinition
 
 - 
setInitialpublic void setInitial(ActivityImpl initial) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- CoreActivity
 
 - 
getDescriptionpublic java.lang.String getDescription() - Specified by:
- getDescriptionin interface- ReadOnlyProcessDefinition
 
 - 
getLaneSetspublic java.util.List<LaneSet> getLaneSets() - Returns:
- all lane-sets defined on this process-instance. Returns an empty list if none are defined.
 
 - 
setParticipantProcesspublic void setParticipantProcess(ParticipantProcess participantProcess) 
 - 
getParticipantProcesspublic ParticipantProcess getParticipantProcess() 
 - 
isScopepublic boolean isScope() Description copied from interface:PvmScopeIndicates whether this is a local scope for variables and events if true, there will _always_ be a scope execution created for it.Note: the fact that this is a scope does not mean that it is also a sub process scope.
 - 
getEventScopepublic PvmScope getEventScope() Description copied from interface:PvmScopeThe event scope for an activity is the scope in which the activity listens for events. This may or may not be theflow scope.. Consider: boundary events have a different event scope than flow scope.The event scope is always a scope.- Specified by:
- getEventScopein interface- PvmScope
- Returns:
- the event scope of the activity
 
 - 
getFlowScopepublic ScopeImpl getFlowScope() Description copied from interface:PvmScopeThe flow scope of the activity. The scope in which the activity itself is executed.Note: in order to ensure backwards compatible behavior, a flow scope is not necessarily a a scope. Example: event sub processes.- Specified by:
- getFlowScopein interface- PvmScope
 
 - 
getLevelOfSubprocessScopepublic PvmScope getLevelOfSubprocessScope() Description copied from interface:PvmScopeThe "level of subprocess scope" as defined in bpmn: this is the subprocess containing the activity. Usually this is the same as the flow scope, instead if the activity is multi instance: in that case the activity is nested inside a mutli instance body but "at the same level of subprocess" as other activities which are siblings to the mi-body.- Specified by:
- getLevelOfSubprocessScopein interface- PvmScope
- Returns:
- the level of subprocess scope as defined in bpmn
 
 - 
isSubProcessScopepublic boolean isSubProcessScope() Description copied from interface:PvmScopeIndicates whether this scope is a sub process scope. A sub process scope is a scope which contains "normal flow".Scopes which are flow scopes but not sub process scopes:- a multi instance body scope
- leaf scope activities which are pure event scopes (Example: User task with attached boundary event)
 - Specified by:
- isSubProcessScopein interface- PvmScope
- Overrides:
- isSubProcessScopein class- ScopeImpl
- Returns:
- true if this is a sub process scope
 
 
- 
 
-