Class MigrationPlanExecutionBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.MigrationPlanExecutionBuilderImpl
-
- All Implemented Interfaces:
MigrationPlanExecutionBuilder
public class MigrationPlanExecutionBuilderImpl extends java.lang.Object implements MigrationPlanExecutionBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected MigrationPlan
migrationPlan
protected java.util.List<java.lang.String>
processInstanceIds
protected ProcessInstanceQuery
processInstanceQuery
protected boolean
skipCustomListeners
protected boolean
skipIoMappings
-
Constructor Summary
Constructors Constructor Description MigrationPlanExecutionBuilderImpl(CommandExecutor commandExecutor, MigrationPlan migrationPlan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute the migration synchronously.Batch
executeAsync()
Execute the migration asynchronously as batch.MigrationPlan
getMigrationPlan()
java.util.List<java.lang.String>
getProcessInstanceIds()
ProcessInstanceQuery
getProcessInstanceQuery()
boolean
isSkipCustomListeners()
boolean
isSkipIoMappings()
MigrationPlanExecutionBuilder
processInstanceIds(java.lang.String... processInstanceIds)
MigrationPlanExecutionBuilder
processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
MigrationPlanExecutionBuilder
processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
MigrationPlanExecutionBuilder
skipCustomListeners()
Skips custom execution listeners when creating/removing activity instances during migrationMigrationPlanExecutionBuilder
skipIoMappings()
Skips io mappings when creating/removing activity instances during migration
-
-
-
Field Detail
-
commandExecutor
protected CommandExecutor commandExecutor
-
migrationPlan
protected MigrationPlan migrationPlan
-
processInstanceIds
protected java.util.List<java.lang.String> processInstanceIds
-
processInstanceQuery
protected ProcessInstanceQuery processInstanceQuery
-
skipCustomListeners
protected boolean skipCustomListeners
-
skipIoMappings
protected boolean skipIoMappings
-
-
Constructor Detail
-
MigrationPlanExecutionBuilderImpl
public MigrationPlanExecutionBuilderImpl(CommandExecutor commandExecutor, MigrationPlan migrationPlan)
-
-
Method Detail
-
getMigrationPlan
public MigrationPlan getMigrationPlan()
-
processInstanceIds
public MigrationPlanExecutionBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
- Specified by:
processInstanceIds
in interfaceMigrationPlanExecutionBuilder
- Parameters:
processInstanceIds
- the process instance ids to migrate.
-
processInstanceIds
public MigrationPlanExecutionBuilder processInstanceIds(java.lang.String... processInstanceIds)
- Specified by:
processInstanceIds
in interfaceMigrationPlanExecutionBuilder
- Parameters:
processInstanceIds
- the process instance ids to migrate.
-
getProcessInstanceIds
public java.util.List<java.lang.String> 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
public ProcessInstanceQuery getProcessInstanceQuery()
-
skipCustomListeners
public MigrationPlanExecutionBuilder 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
public MigrationPlanExecutionBuilder 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
public Batch 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.
-
-