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.String
ancestorActivityInstanceId
protected VariableMap
variables
protected VariableMap
variablesLocal
-
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 void
addVariable(java.lang.String name, java.lang.Object value)
void
addVariableLocal(java.lang.String name, java.lang.Object value)
void
addVariables(java.util.Map<java.lang.String,java.lang.Object> variables)
void
addVariablesLocal(java.util.Map<java.lang.String,java.lang.Object> variables)
java.lang.Void
execute(CommandContext commandContext)
protected ExecutionEntity
getSingleExecutionForScope(ActivityExecutionTreeMapping mapping, ScopeImpl scope)
protected abstract CoreModelElement
getTargetElement(ProcessDefinitionImpl processDefinition)
protected abstract java.lang.String
getTargetElementId()
protected abstract ScopeImpl
getTargetFlowScope(ProcessDefinitionImpl processDefinition)
VariableMap
getVariables()
VariableMap
getVariablesLocal()
protected void
instantiate(ExecutionEntity ancestorScopeExecution, java.util.List<PvmActivity> parentFlowScopes, CoreModelElement targetElement)
protected void
instantiateConcurrent(ExecutionEntity ancestorScopeExecution, java.util.List<PvmActivity> parentFlowScopes, CoreModelElement targetElement)
protected boolean
isConcurrentStart(ActivityStartBehavior startBehavior)
protected boolean
supportsConcurrentChildInstantiation(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()
-
-