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
also
MigrationActivityMatcher
.- Author:
- Thorben Lindhauer
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, boolean updateEventTriggers) Generate all migration instructions for mapped activities between two process definitions.migrationActivityValidators
(List<MigrationActivityValidator> migrationActivityValidators) Sets the list of migration activity validators which validate that a activity is a candidate for the migration.migrationInstructionValidators
(List<MigrationInstructionValidator> migrationInstructionValidators) Sets the list of migration instruction validators currently used by the process engine.
-
Method Details
-
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
-