Package org.camunda.bpm.engine.migration
Interface MigrationPlanExecutionBuilder
-
- All Known Implementing Classes:
MigrationPlanExecutionBuilderImpl
public interface MigrationPlanExecutionBuilderBuilder to execute a migration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute()Execute the migration synchronously.BatchexecuteAsync()Execute the migration asynchronously as batch.MigrationPlanExecutionBuilderprocessInstanceIds(java.lang.String... processInstanceIds)MigrationPlanExecutionBuilderprocessInstanceIds(java.util.List<java.lang.String> processInstanceIds)MigrationPlanExecutionBuilderprocessInstanceQuery(ProcessInstanceQuery processInstanceQuery)MigrationPlanExecutionBuilderskipCustomListeners()Skips custom execution listeners when creating/removing activity instances during migrationMigrationPlanExecutionBuilderskipIoMappings()Skips io mappings when creating/removing activity instances during migration
-
-
-
Method Detail
-
processInstanceIds
MigrationPlanExecutionBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
- Parameters:
processInstanceIds- the process instance ids to migrate.
-
processInstanceIds
MigrationPlanExecutionBuilder processInstanceIds(java.lang.String... processInstanceIds)
- Parameters:
processInstanceIds- the process instance ids to migrate.
-
processInstanceQuery
MigrationPlanExecutionBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
- Parameters:
processInstanceQuery- a query which selects the process instances to migrate. Query results are restricted to process instances for which the user hasPermissions.READpermission.
-
skipCustomListeners
MigrationPlanExecutionBuilder skipCustomListeners()
Skips custom execution listeners when creating/removing activity instances during migration
-
skipIoMappings
MigrationPlanExecutionBuilder skipIoMappings()
Skips io mappings when creating/removing activity instances during migration
-
execute
void execute()
Execute the migration synchronously.- Throws:
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- if the user has no
Permissions.UPDATEpermission onResources.PROCESS_INSTANCEor - no
Permissions.UPDATE_INSTANCEpermission onResources.PROCESS_DEFINITION
- if the user has no
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()
Execute the migration asynchronously as batch. The returned batch can be used to track the progress of the migration.- Returns:
- the batch which executes the migration asynchronously.
- Throws:
AuthorizationException- if the user has not all of the following permissionsPermissions.MIGRATE_INSTANCEpermission onResources.PROCESS_DEFINITIONfor source and targetPermissions.CREATEorBatchPermissions.CREATE_BATCH_MIGRATE_PROCESS_INSTANCESpermission onResources.BATCH
-
-