public class MigrationPlanExecutionBuilderImpl extends Object implements MigrationPlanExecutionBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected MigrationPlan |
migrationPlan |
protected List<String> |
processInstanceIds |
protected ProcessInstanceQuery |
processInstanceQuery |
protected boolean |
skipCustomListeners |
protected boolean |
skipIoMappings |
Constructor and Description |
---|
MigrationPlanExecutionBuilderImpl(CommandExecutor commandExecutor,
MigrationPlan migrationPlan) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the migration synchronously.
|
void |
execute(boolean writeOperationLog) |
Batch |
executeAsync()
Execute the migration asynchronously as batch.
|
MigrationPlan |
getMigrationPlan() |
List<String> |
getProcessInstanceIds() |
ProcessInstanceQuery |
getProcessInstanceQuery() |
boolean |
isSkipCustomListeners() |
boolean |
isSkipIoMappings() |
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
|
protected CommandExecutor commandExecutor
protected MigrationPlan migrationPlan
protected ProcessInstanceQuery processInstanceQuery
protected boolean skipCustomListeners
protected boolean skipIoMappings
public MigrationPlanExecutionBuilderImpl(CommandExecutor commandExecutor, MigrationPlan migrationPlan)
public MigrationPlan getMigrationPlan()
public MigrationPlanExecutionBuilder processInstanceIds(List<String> processInstanceIds)
processInstanceIds
in interface MigrationPlanExecutionBuilder
processInstanceIds
- the process instance ids to migrate.public MigrationPlanExecutionBuilder processInstanceIds(String... processInstanceIds)
processInstanceIds
in interface MigrationPlanExecutionBuilder
processInstanceIds
- the process instance ids to migrate.public MigrationPlanExecutionBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
processInstanceQuery
in interface MigrationPlanExecutionBuilder
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.public ProcessInstanceQuery getProcessInstanceQuery()
public MigrationPlanExecutionBuilder skipCustomListeners()
MigrationPlanExecutionBuilder
skipCustomListeners
in interface MigrationPlanExecutionBuilder
public boolean isSkipCustomListeners()
public MigrationPlanExecutionBuilder skipIoMappings()
MigrationPlanExecutionBuilder
skipIoMappings
in interface MigrationPlanExecutionBuilder
public boolean isSkipIoMappings()
public void execute()
MigrationPlanExecutionBuilder
execute
in interface MigrationPlanExecutionBuilder
public void execute(boolean writeOperationLog)
public Batch executeAsync()
MigrationPlanExecutionBuilder
executeAsync
in interface MigrationPlanExecutionBuilder
Copyright © 2021. All rights reserved.