Interface MigrationInstructionGenerator
-
- All Known Implementing Classes:
DefaultMigrationInstructionGenerator
public interface MigrationInstructionGeneratorGenerates 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 ValidatingMigrationInstructionsgenerate(ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, boolean updateEventTriggers)Generate all migration instructions for mapped activities between two process definitions.MigrationInstructionGeneratormigrationActivityValidators(java.util.List<MigrationActivityValidator> migrationActivityValidators)Sets the list of migration activity validators which validate that a activity is a candidate for the migration.MigrationInstructionGeneratormigrationInstructionValidators(java.util.List<MigrationInstructionValidator> migrationInstructionValidators)Sets the list of migration instruction validators currently used by the process engine.
-
-
-
Method Detail
-
migrationActivityValidators
MigrationInstructionGenerator migrationActivityValidators(java.util.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(java.util.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 theMigrationActivityMatchermatches 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
-
-