public class RestartProcessInstancesCmd extends AbstractRestartProcessInstanceCmd<Void>
Modifier and Type | Field and Description |
---|---|
protected boolean |
writeUserOperationLog |
builder, commandExecutor
Constructor and Description |
---|
RestartProcessInstancesCmd(CommandExecutor commandExecutor,
RestartProcessInstanceBuilderImpl builder,
boolean writeUserOperationLog) |
collectProcessInstanceIds, getProcessDefinition, writeUserOperationLog
public RestartProcessInstancesCmd(CommandExecutor commandExecutor, RestartProcessInstanceBuilderImpl builder, boolean writeUserOperationLog)
public Void execute(CommandContext commandContext)
protected void checkAuthorization(CommandContext commandContext, ProcessDefinition processDefinition)
protected HistoricProcessInstance getHistoricProcessInstance(CommandContext commandContext, String processInstanceId)
protected void ensureSameProcessDefinition(HistoricProcessInstance instance, String processDefinitionId)
protected void ensureHistoricProcessInstanceNotActive(HistoricProcessInstance instance)
protected ProcessInstantiationBuilderImpl getProcessInstantiationBuilder(CommandExecutor commandExecutor, String processDefinitionId)
protected void applyProperties(ProcessInstantiationBuilderImpl instantiationBuilder, ProcessDefinition processDefinition, HistoricProcessInstance processInstance)
protected VariableMap collectVariables(CommandContext commandContext, HistoricProcessInstance processInstance)
protected VariableMap collectInitialVariables(CommandContext commandContext, HistoricProcessInstance processInstance)
protected VariableMap collectLastVariables(CommandContext commandContext, HistoricProcessInstance processInstance)
protected HistoricActivityInstance resolveStartActivityInstance(HistoricProcessInstance processInstance)
Copyright © 2019. All rights reserved.