Interface MigrationInstructionGenerator
-
- All Known Implementing Classes:
DefaultMigrationInstructionGenerator
public interface MigrationInstructionGenerator
Generates all migration instructions which represent a direct one to one mapping of mapped entities in two process definitions. See alsoMigrationActivityMatcher
.- Author:
- Thorben Lindhauer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidatingMigrationInstructions
generate(ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, boolean updateEventTriggers)
Generate all migration instructions for mapped activities between two process definitions.MigrationInstructionGenerator
migrationActivityValidators(List<MigrationActivityValidator> migrationActivityValidators)
Sets the list of migration activity validators which validate that a activity is a candidate for the migration.MigrationInstructionGenerator
migrationInstructionValidators(List<MigrationInstructionValidator> migrationInstructionValidators)
Sets the list of migration instruction validators currently used by the process engine.
-
-
-
Method Detail
-
migrationActivityValidators
MigrationInstructionGenerator migrationActivityValidators(List<MigrationActivityValidator> migrationActivityValidators)
Sets the list of migration activity validators which validate that a activity is a candidate for the migration.- Parameters:
migrationActivityValidators
- the list of validators to check- Returns:
- this generator instance
-
migrationInstructionValidators
MigrationInstructionGenerator migrationInstructionValidators(List<MigrationInstructionValidator> migrationInstructionValidators)
Sets the list of migration instruction validators currently used by the process engine. Implementations may use these to restrict the search space.- Returns:
- this
-
generate
ValidatingMigrationInstructions generate(ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, boolean updateEventTriggers)
Generate all migration instructions for mapped activities between two process definitions. A activity can be mapped if theMigrationActivityMatcher
matches it with an activity from the target process definition.- Parameters:
sourceProcessDefinition
- the source process definitiontargetProcessDefinition
- the target process definiton- Returns:
- the list of generated instructions
-
-