org.camunda.bpm.engine.impl.migration
Class MigrationPlanBuilderImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.migration.MigrationPlanBuilderImpl
All Implemented Interfaces:
MigrationPlanBuilder

public class MigrationPlanBuilderImpl
extends Object
implements MigrationPlanBuilder

Author:
Thorben Lindhauer

Field Summary
protected  CommandExecutor commandExecutor
           
protected  List<MigrationInstructionImpl> explicitMigrationInstructions
           
protected  boolean mapEqualActivities
           
protected  String sourceProcessDefinitionId
           
protected  String targetProcessDefinitionId
           
 
Constructor Summary
MigrationPlanBuilderImpl(CommandExecutor commandExecutor, String sourceProcessDefinitionId, String targetProcessDefinitionId)
           
 
Method Summary
 MigrationPlan build()
           
 List<MigrationInstructionImpl> getExplicitMigrationInstructions()
           
 String getSourceProcessDefinitionId()
           
 String getTargetProcessDefinitionId()
           
 boolean isMapEqualActivities()
           
 MigrationPlanBuilder mapActivities(List<String> sourceActivityIds, List<String> targetActivityIds)
          Adds a migration instruction that maps a set of activity instances to a set of activity instances.
 MigrationPlanBuilder mapActivities(String sourceActivityId, String targetActivityId)
          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)
 MigrationPlanBuilder mapEqualActivities()
          Automatically adds a set of instructions for activities that are equivalent in both process definitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandExecutor

protected CommandExecutor commandExecutor

sourceProcessDefinitionId

protected String sourceProcessDefinitionId

targetProcessDefinitionId

protected String targetProcessDefinitionId

mapEqualActivities

protected boolean mapEqualActivities

explicitMigrationInstructions

protected List<MigrationInstructionImpl> explicitMigrationInstructions
Constructor Detail

MigrationPlanBuilderImpl

public MigrationPlanBuilderImpl(CommandExecutor commandExecutor,
                                String sourceProcessDefinitionId,
                                String targetProcessDefinitionId)
Method Detail

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.