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 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 the MigrationActivityMatcher matches it with an activity from the target process definition.
      Parameters:
      sourceProcessDefinition - the source process definition
      targetProcessDefinition - the target process definiton
      Returns:
      the list of generated instructions