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 Summary
All 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.InstantiationBuilder
startAfterActivity, startBeforeActivity, startTransition
-
-
-
-
Method Detail
-
historicProcessInstanceQuery
RestartProcessInstanceBuilder 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 hasPermissions.READ_HISTORYpermission.
-
processInstanceIds
RestartProcessInstanceBuilder processInstanceIds(java.lang.String... processInstanceIds)
- Parameters:
processInstanceIds- the process instance ids to restart.
-
processInstanceIds
RestartProcessInstanceBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
- Parameters:
processInstanceIds- the process instance ids to restart.
-
initialSetOfVariables
RestartProcessInstanceBuilder initialSetOfVariables()
Sets the initial set of variables during restart. By default, the last set of variables is used
-
withoutBusinessKey
RestartProcessInstanceBuilder withoutBusinessKey()
Does not take over the business key of the historic process instance
-
skipCustomListeners
RestartProcessInstanceBuilder skipCustomListeners()
Skips custom execution listeners when creating activity instances during restart
-
skipIoMappings
RestartProcessInstanceBuilder skipIoMappings()
Skips io mappings when creating activity instances during restart
-
execute
void 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 propertyqueryMaxResultsLimit(defaultInteger.MAX_VALUE). Please use the batch operationexecuteAsync()instead.
-
executeAsync
Batch 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
-
-