Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MigrationPlan
build()
MigrationInstructionBuilder
mapActivities(java.lang.String sourceActivityId, java.lang.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.MigrationPlanBuilder
setVariables(java.util.Map<java.lang.String,?> variables)
-
-
-
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.
-
setVariables
MigrationPlanBuilder setVariables(java.util.Map<java.lang.String,?> variables)
- Parameters:
variables
- which will be set into the process instance scope after the migration
-
mapActivities
MigrationInstructionBuilder mapActivities(java.lang.String sourceActivityId, java.lang.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 validAuthorizationException
- if the user has noPermissions.READ
permission onResources.PROCESS_DEFINITION
for both, source and target process definition.
-
-