org.camunda.bpm.engine.impl.migration
Class MigrationPlanBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.migration.MigrationPlanBuilderImpl
- All Implemented Interfaces:
- MigrationPlanBuilder
public class MigrationPlanBuilderImpl
- extends Object
- implements MigrationPlanBuilder
- Author:
- Thorben Lindhauer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commandExecutor
protected CommandExecutor commandExecutor
sourceProcessDefinitionId
protected String sourceProcessDefinitionId
targetProcessDefinitionId
protected String targetProcessDefinitionId
mapEqualActivities
protected boolean mapEqualActivities
explicitMigrationInstructions
protected List<MigrationInstructionImpl> explicitMigrationInstructions
MigrationPlanBuilderImpl
public MigrationPlanBuilderImpl(CommandExecutor commandExecutor,
String sourceProcessDefinitionId,
String targetProcessDefinitionId)
mapEqualActivities
public MigrationPlanBuilder mapEqualActivities()
- Description copied from interface:
MigrationPlanBuilder
- Automatically adds a set of instructions for activities that are equivalent in both
process definitions. By default, this is given if two activities are both user tasks, are on the same
level of sub process, and have the same id.
- Specified by:
mapEqualActivities in interface MigrationPlanBuilder
mapActivities
public MigrationPlanBuilder mapActivities(String sourceActivityId,
String targetActivityId)
- Description copied from interface:
MigrationPlanBuilder
- Adds a migration instruction that maps activity instances of the source activity (of the source process definition)
to activity instances of the target activity (of the target process definition)
- Specified by:
mapActivities in interface MigrationPlanBuilder
mapActivities
public MigrationPlanBuilder mapActivities(List<String> sourceActivityIds,
List<String> targetActivityIds)
- Description copied from interface:
MigrationPlanBuilder
- Adds a migration instruction that maps a set of activity instances to a set of activity instances.
- Specified by:
mapActivities in interface MigrationPlanBuilder
getSourceProcessDefinitionId
public String getSourceProcessDefinitionId()
getTargetProcessDefinitionId
public String getTargetProcessDefinitionId()
isMapEqualActivities
public boolean isMapEqualActivities()
getExplicitMigrationInstructions
public List<MigrationInstructionImpl> getExplicitMigrationInstructions()
build
public MigrationPlan build()
- Specified by:
build in interface MigrationPlanBuilder
- Returns:
- a migration plan with all previously specified instructions
Copyright © 2016 camunda services GmbH. All rights reserved.