public interface RestartProcessInstanceBuilder extends InstantiationBuilder<RestartProcessInstanceBuilder>
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the restart synchronously.
|
Batch |
executeAsync()
Executes the restart asynchronously as batch.
|
RestartProcessInstanceBuilder |
historicProcessInstanceQuery(HistoricProcessInstanceQuery query) |
RestartProcessInstanceBuilder |
initialSetOfVariables()
Sets the initial set of variables during restart.
|
RestartProcessInstanceBuilder |
processInstanceIds(List<String> processInstanceIds) |
RestartProcessInstanceBuilder |
processInstanceIds(String... processInstanceIds) |
RestartProcessInstanceBuilder |
skipCustomListeners()
Skips custom execution listeners when creating activity instances during restart
|
RestartProcessInstanceBuilder |
skipIoMappings()
Skips io mappings when creating activity instances during restart
|
RestartProcessInstanceBuilder |
withoutBusinessKey()
Does not take over the business key of the historic process instance
|
startAfterActivity, startBeforeActivity, startTransition
RestartProcessInstanceBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery query)
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_HISTORY
permission.RestartProcessInstanceBuilder processInstanceIds(String... processInstanceIds)
processInstanceIds
- the process instance ids to restart.RestartProcessInstanceBuilder processInstanceIds(List<String> processInstanceIds)
processInstanceIds
- the process instance ids to restart.RestartProcessInstanceBuilder initialSetOfVariables()
RestartProcessInstanceBuilder withoutBusinessKey()
RestartProcessInstanceBuilder skipCustomListeners()
RestartProcessInstanceBuilder skipIoMappings()
void execute()
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.Batch executeAsync()
AuthorizationException
- if the user has not all of the following permissions
Copyright © 2022. All rights reserved.