public interface MigrationPlanExecutionBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the migration synchronously.
|
Batch |
executeAsync()
Execute the migration asynchronously as batch.
|
MigrationPlanExecutionBuilder |
processInstanceIds(List<String> processInstanceIds) |
MigrationPlanExecutionBuilder |
processInstanceIds(String... processInstanceIds) |
MigrationPlanExecutionBuilder |
processInstanceQuery(ProcessInstanceQuery processInstanceQuery) |
MigrationPlanExecutionBuilder |
skipCustomListeners()
Skips custom execution listeners when creating/removing activity instances during migration
|
MigrationPlanExecutionBuilder |
skipIoMappings()
Skips io mappings when creating/removing activity instances during migration
|
MigrationPlanExecutionBuilder processInstanceIds(List<String> processInstanceIds)
processInstanceIds - the process instance ids to migrate.MigrationPlanExecutionBuilder processInstanceIds(String... processInstanceIds)
processInstanceIds - the process instance ids to migrate.MigrationPlanExecutionBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
processInstanceQuery - a query which selects the process instances to migrate.
Query results are restricted to process instances for which the user has Permissions.READ permission.MigrationPlanExecutionBuilder skipCustomListeners()
MigrationPlanExecutionBuilder skipIoMappings()
void execute()
MigratingProcessInstanceValidationException - if the migration plan contains
instructions that are not applicable to any of the process instancesAuthorizationException - if the user has not all of the following permissions
Permissions.UPDATE permission on Resources.PROCESS_INSTANCE orPermissions.UPDATE_INSTANCE permission on Resources.PROCESS_DEFINITIONBadUserRequestException - 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
Permissions.MIGRATE_INSTANCE permission on Resources.PROCESS_DEFINITION for source and targetPermissions.CREATE or BatchPermissions.CREATE_BATCH_MIGRATE_PROCESS_INSTANCES permission on Resources.BATCHCopyright © 2022. All rights reserved.