Class MigrationPlanExecutionBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.migration.MigrationPlanExecutionBuilderImpl
- All Implemented Interfaces:
MigrationPlanExecutionBuilder
public class MigrationPlanExecutionBuilderImpl
extends Object
implements MigrationPlanExecutionBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandExecutor
protected MigrationPlan
protected ProcessInstanceQuery
protected boolean
protected boolean
-
Constructor Summary
ConstructorDescriptionMigrationPlanExecutionBuilderImpl
(CommandExecutor commandExecutor, MigrationPlan migrationPlan) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Execute the migration synchronously.Execute the migration asynchronously as batch.boolean
boolean
processInstanceIds
(String... processInstanceIds) processInstanceIds
(List<String> processInstanceIds) processInstanceQuery
(ProcessInstanceQuery processInstanceQuery) Skips custom execution listeners when creating/removing activity instances during migrationSkips io mappings when creating/removing activity instances during migration
-
Field Details
-
commandExecutor
-
migrationPlan
-
processInstanceIds
-
processInstanceQuery
-
skipCustomListeners
protected boolean skipCustomListeners -
skipIoMappings
protected boolean skipIoMappings
-
-
Constructor Details
-
MigrationPlanExecutionBuilderImpl
public MigrationPlanExecutionBuilderImpl(CommandExecutor commandExecutor, MigrationPlan migrationPlan)
-
-
Method Details
-
getMigrationPlan
-
processInstanceIds
- Specified by:
processInstanceIds
in interfaceMigrationPlanExecutionBuilder
- Parameters:
processInstanceIds
- the process instance ids to migrate.
-
processInstanceIds
- Specified by:
processInstanceIds
in interfaceMigrationPlanExecutionBuilder
- Parameters:
processInstanceIds
- the process instance ids to migrate.
-
getProcessInstanceIds
-
processInstanceQuery
public MigrationPlanExecutionBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery) - Specified by:
processInstanceQuery
in interfaceMigrationPlanExecutionBuilder
- Parameters:
processInstanceQuery
- a query which selects the process instances to migrate. Query results are restricted to process instances for which the user hasPermissions.READ
permission.
-
getProcessInstanceQuery
-
skipCustomListeners
Description copied from interface:MigrationPlanExecutionBuilder
Skips custom execution listeners when creating/removing activity instances during migration- Specified by:
skipCustomListeners
in interfaceMigrationPlanExecutionBuilder
-
isSkipCustomListeners
public boolean isSkipCustomListeners() -
skipIoMappings
Description copied from interface:MigrationPlanExecutionBuilder
Skips io mappings when creating/removing activity instances during migration- Specified by:
skipIoMappings
in interfaceMigrationPlanExecutionBuilder
-
isSkipIoMappings
public boolean isSkipIoMappings() -
execute
public void execute()Description copied from interface:MigrationPlanExecutionBuilder
Execute the migration synchronously.- Specified by:
execute
in interfaceMigrationPlanExecutionBuilder
-
executeAsync
Description copied from interface:MigrationPlanExecutionBuilder
Execute the migration asynchronously as batch. The returned batch can be used to track the progress of the migration.- Specified by:
executeAsync
in interfaceMigrationPlanExecutionBuilder
- Returns:
- the batch which executes the migration asynchronously.
-