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.MIGRATE_INSTANCE
permission on Resources.PROCESS_DEFINITION
for source and targetBatch 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
permission on Resources.BATCH
Copyright © 2018. All rights reserved.