Package org.camunda.bpm.engine.impl.cmd
Class RestartProcessInstancesCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.AbstractRestartProcessInstanceCmd<Void>
org.camunda.bpm.engine.impl.cmd.RestartProcessInstancesCmd
- Author:
- Anna Pazola
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractRestartProcessInstanceCmd
builder, commandExecutor
-
Constructor Summary
ConstructorDescriptionRestartProcessInstancesCmd
(CommandExecutor commandExecutor, RestartProcessInstanceBuilderImpl builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyProperties
(ProcessInstantiationBuilderImpl instantiationBuilder, ProcessDefinition processDefinition, HistoricProcessInstance processInstance) protected void
checkAuthorization
(CommandContext commandContext, ProcessDefinition processDefinition) protected VariableMap
collectInitialVariables
(CommandContext commandContext, HistoricProcessInstance processInstance) protected VariableMap
collectLastVariables
(CommandContext commandContext, HistoricProcessInstance processInstance) protected VariableMap
collectVariables
(CommandContext commandContext, HistoricProcessInstance processInstance) protected void
protected void
ensureSameProcessDefinition
(HistoricProcessInstance instance, String processDefinitionId) execute
(CommandContext commandContext) protected HistoricProcessInstance
getHistoricProcessInstance
(CommandContext commandContext, String processInstanceId) protected ProcessInstantiationBuilderImpl
getProcessInstantiationBuilder
(CommandExecutor commandExecutor, String processDefinitionId) protected HistoricActivityInstance
resolveStartActivityInstance
(HistoricProcessInstance processInstance) Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractRestartProcessInstanceCmd
collectProcessInstanceIds, getProcessDefinition, writeUserOperationLog
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Constructor Details
-
RestartProcessInstancesCmd
public RestartProcessInstancesCmd(CommandExecutor commandExecutor, RestartProcessInstanceBuilderImpl builder)
-
-
Method Details
-
execute
-
checkAuthorization
protected void checkAuthorization(CommandContext commandContext, ProcessDefinition processDefinition) -
getHistoricProcessInstance
protected HistoricProcessInstance getHistoricProcessInstance(CommandContext commandContext, String processInstanceId) -
ensureSameProcessDefinition
protected void ensureSameProcessDefinition(HistoricProcessInstance instance, String processDefinitionId) -
ensureHistoricProcessInstanceNotActive
-
getProcessInstantiationBuilder
protected ProcessInstantiationBuilderImpl getProcessInstantiationBuilder(CommandExecutor commandExecutor, String processDefinitionId) -
applyProperties
protected void applyProperties(ProcessInstantiationBuilderImpl instantiationBuilder, ProcessDefinition processDefinition, HistoricProcessInstance processInstance) -
collectVariables
protected VariableMap collectVariables(CommandContext commandContext, HistoricProcessInstance processInstance) -
collectInitialVariables
protected VariableMap collectInitialVariables(CommandContext commandContext, HistoricProcessInstance processInstance) -
collectLastVariables
protected VariableMap collectLastVariables(CommandContext commandContext, HistoricProcessInstance processInstance) -
resolveStartActivityInstance
protected HistoricActivityInstance resolveStartActivityInstance(HistoricProcessInstance processInstance)
-