Package org.camunda.bpm.engine.runtime
Interface RestartProcessInstanceBuilder
- 
- All Superinterfaces:
- InstantiationBuilder<RestartProcessInstanceBuilder>
 - All Known Implementing Classes:
- RestartProcessInstanceBuilderImpl
 
 public interface RestartProcessInstanceBuilder extends InstantiationBuilder<RestartProcessInstanceBuilder> - Author:
- Anna Pazola
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute()Executes the restart synchronously.BatchexecuteAsync()Executes the restart asynchronously as batch.RestartProcessInstanceBuilderhistoricProcessInstanceQuery(HistoricProcessInstanceQuery query)RestartProcessInstanceBuilderinitialSetOfVariables()Sets the initial set of variables during restart.RestartProcessInstanceBuilderprocessInstanceIds(java.lang.String... processInstanceIds)RestartProcessInstanceBuilderprocessInstanceIds(java.util.List<java.lang.String> processInstanceIds)RestartProcessInstanceBuilderskipCustomListeners()Skips custom execution listeners when creating activity instances during restartRestartProcessInstanceBuilderskipIoMappings()Skips io mappings when creating activity instances during restartRestartProcessInstanceBuilderwithoutBusinessKey()Does not take over the business key of the historic process instance- 
Methods inherited from interface org.camunda.bpm.engine.runtime.InstantiationBuilderstartAfterActivity, startBeforeActivity, startTransition
 
- 
 
- 
- 
- 
Method Detail- 
historicProcessInstanceQueryRestartProcessInstanceBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery query) - Parameters:
- query- a query which selects the historic process instances to restart. Query results are restricted to process instances for which the user has- Permissions.READ_HISTORYpermission.
 
 - 
processInstanceIdsRestartProcessInstanceBuilder processInstanceIds(java.lang.String... processInstanceIds) - Parameters:
- processInstanceIds- the process instance ids to restart.
 
 - 
processInstanceIdsRestartProcessInstanceBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds) - Parameters:
- processInstanceIds- the process instance ids to restart.
 
 - 
initialSetOfVariablesRestartProcessInstanceBuilder initialSetOfVariables() Sets the initial set of variables during restart. By default, the last set of variables is used
 - 
withoutBusinessKeyRestartProcessInstanceBuilder withoutBusinessKey() Does not take over the business key of the historic process instance
 - 
skipCustomListenersRestartProcessInstanceBuilder skipCustomListeners() Skips custom execution listeners when creating activity instances during restart
 - 
skipIoMappingsRestartProcessInstanceBuilder skipIoMappings() Skips io mappings when creating activity instances during restart
 - 
executevoid execute() Executes the restart synchronously.- Throws:
- BadUserRequestException- When the affected instances count exceeds the maximum results limit. A maximum results limit can be specified with the process engine configuration property- queryMaxResultsLimit(default- Integer.MAX_VALUE). Please use the batch operation- executeAsync()instead.
 
 - 
executeAsyncBatch executeAsync() Executes the restart asynchronously as batch. The returned batch can be used to track the progress of the restart.- Returns:
- the batch which executes the restart asynchronously.
- Throws:
- AuthorizationException- if the user has not all of the following permissions
 
 
- 
 
-