org.camunda.bpm.engine.migration
Interface MigrationPlanBuilder

All Known Subinterfaces:
MigrationInstructionBuilder, MigrationInstructionsBuilder
All Known Implementing Classes:
MigrationPlanBuilderImpl

public interface MigrationPlanBuilder

Author:
Thorben Lindhauer

Method Summary
 MigrationPlan build()
           
 MigrationInstructionBuilder 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)
 MigrationInstructionsBuilder mapEqualActivities()
          Automatically adds a set of instructions for activities that are equivalent in both process definitions.
 

Method Detail

mapEqualActivities

MigrationInstructionsBuilder mapEqualActivities()
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.


mapActivities

MigrationInstructionBuilder 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)


build

MigrationPlan build()
Returns:
a migration plan with all previously specified instructions
Throws:
MigrationPlanValidationException - if the migration plan contains instructions that are not valid
AuthorizationException - if the user has no Permissions.READ permission on Resources.PROCESS_DEFINITION for both, source and target process definition.


Copyright © 2016 camunda services GmbH. All rights reserved.