Package org.camunda.bpm.engine.impl.cmd
Class AbstractInstantiationCmd
- java.lang.Object
 - 
- org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
 - 
- org.camunda.bpm.engine.impl.cmd.AbstractInstantiationCmd
 
 
 
- 
- All Implemented Interfaces:
 Command<java.lang.Void>
- Direct Known Subclasses:
 ActivityAfterInstantiationCmd,ActivityBeforeInstantiationCmd,TransitionInstantiationCmd
public abstract class AbstractInstantiationCmd extends AbstractProcessInstanceModificationCommand
- Author:
 - Thorben Lindhauer
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringancestorActivityInstanceIdprotected VariableMapvariablesprotected VariableMapvariablesLocal- 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
externallyTerminated, processInstanceId, skipCustomListeners, skipIoMappings 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AbstractInstantiationCmd(java.lang.String processInstanceId, java.lang.String ancestorActivityInstanceId) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddVariable(java.lang.String name, java.lang.Object value)voidaddVariableLocal(java.lang.String name, java.lang.Object value)voidaddVariables(java.util.Map<java.lang.String,java.lang.Object> variables)voidaddVariablesLocal(java.util.Map<java.lang.String,java.lang.Object> variables)java.lang.Voidexecute(CommandContext commandContext)protected ExecutionEntitygetSingleExecutionForScope(ActivityExecutionTreeMapping mapping, ScopeImpl scope)protected abstract CoreModelElementgetTargetElement(ProcessDefinitionImpl processDefinition)protected abstract java.lang.StringgetTargetElementId()protected abstract ScopeImplgetTargetFlowScope(ProcessDefinitionImpl processDefinition)VariableMapgetVariables()VariableMapgetVariablesLocal()protected voidinstantiate(ExecutionEntity ancestorScopeExecution, java.util.List<PvmActivity> parentFlowScopes, CoreModelElement targetElement)protected voidinstantiateConcurrent(ExecutionEntity ancestorScopeExecution, java.util.List<PvmActivity> parentFlowScopes, CoreModelElement targetElement)protected booleanisConcurrentStart(ActivityStartBehavior startBehavior)protected booleansupportsConcurrentChildInstantiation(ScopeImpl flowScope)Cannot create more than inner instance in a sequential MI construct- 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
describe, describeFailure, findActivityInstance, findTransitionInstance, getProcessInstanceId, getScopeExecutionForActivityInstance, getScopeForActivityInstance, matchesRequestedTransitionInstance, setExternallyTerminated, setProcessInstanceId, setSkipCustomListeners, setSkipIoMappings, toString 
- 
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.impl.interceptor.Command
isRetryable 
 - 
 
 - 
 
- 
- 
Field Detail
- 
variables
protected VariableMap variables
 
- 
variablesLocal
protected VariableMap variablesLocal
 
- 
ancestorActivityInstanceId
protected java.lang.String ancestorActivityInstanceId
 
 - 
 
- 
Method Detail
- 
addVariable
public void addVariable(java.lang.String name, java.lang.Object value) 
- 
addVariableLocal
public void addVariableLocal(java.lang.String name, java.lang.Object value) 
- 
addVariables
public void addVariables(java.util.Map<java.lang.String,java.lang.Object> variables)
 
- 
addVariablesLocal
public void addVariablesLocal(java.util.Map<java.lang.String,java.lang.Object> variables)
 
- 
getVariables
public VariableMap getVariables()
 
- 
getVariablesLocal
public VariableMap getVariablesLocal()
 
- 
execute
public java.lang.Void execute(CommandContext commandContext)
 
- 
supportsConcurrentChildInstantiation
protected boolean supportsConcurrentChildInstantiation(ScopeImpl flowScope)
Cannot create more than inner instance in a sequential MI construct 
- 
getSingleExecutionForScope
protected ExecutionEntity getSingleExecutionForScope(ActivityExecutionTreeMapping mapping, ScopeImpl scope)
 
- 
isConcurrentStart
protected boolean isConcurrentStart(ActivityStartBehavior startBehavior)
 
- 
instantiate
protected void instantiate(ExecutionEntity ancestorScopeExecution, java.util.List<PvmActivity> parentFlowScopes, CoreModelElement targetElement)
 
- 
instantiateConcurrent
protected void instantiateConcurrent(ExecutionEntity ancestorScopeExecution, java.util.List<PvmActivity> parentFlowScopes, CoreModelElement targetElement)
 
- 
getTargetFlowScope
protected abstract ScopeImpl getTargetFlowScope(ProcessDefinitionImpl processDefinition)
 
- 
getTargetElement
protected abstract CoreModelElement getTargetElement(ProcessDefinitionImpl processDefinition)
 
- 
getTargetElementId
protected abstract java.lang.String getTargetElementId()
 
 - 
 
 -