org.camunda.bpm.engine.impl.migration
Class MigrationPlanExecutionBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.migration.MigrationPlanExecutionBuilderImpl
- All Implemented Interfaces:
- MigrationPlanExecutionBuilder
public class MigrationPlanExecutionBuilderImpl
- extends Object
- implements MigrationPlanExecutionBuilder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commandExecutor
protected CommandExecutor commandExecutor
migrationPlan
protected MigrationPlan migrationPlan
processInstanceIds
protected List<String> processInstanceIds
processInstanceQuery
protected ProcessInstanceQuery processInstanceQuery
skipCustomListeners
protected boolean skipCustomListeners
skipIoMappings
protected boolean skipIoMappings
MigrationPlanExecutionBuilderImpl
public MigrationPlanExecutionBuilderImpl(CommandExecutor commandExecutor,
MigrationPlan migrationPlan)
getMigrationPlan
public MigrationPlan getMigrationPlan()
processInstanceIds
public MigrationPlanExecutionBuilder processInstanceIds(List<String> processInstanceIds)
- Specified by:
processInstanceIds in interface MigrationPlanExecutionBuilder
- Parameters:
processInstanceIds - the process instance ids to migrate.
processInstanceIds
public MigrationPlanExecutionBuilder processInstanceIds(String... processInstanceIds)
- Specified by:
processInstanceIds in interface MigrationPlanExecutionBuilder
- Parameters:
processInstanceIds - the process instance ids to migrate.
getProcessInstanceIds
public List<String> getProcessInstanceIds()
processInstanceQuery
public MigrationPlanExecutionBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
- Specified by:
processInstanceQuery in interface MigrationPlanExecutionBuilder
- Parameters:
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.
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 interface MigrationPlanExecutionBuilder
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 interface MigrationPlanExecutionBuilder
isSkipIoMappings
public boolean isSkipIoMappings()
execute
public void execute()
- Description copied from interface:
MigrationPlanExecutionBuilder
- Execute the migration synchronously.
- Specified by:
execute in interface MigrationPlanExecutionBuilder
execute
public void execute(boolean writeOperationLog)
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 interface MigrationPlanExecutionBuilder
- Returns:
- the batch which executes the migration asynchronously.
Copyright © 2016 camunda services GmbH. All rights reserved.