Class ProcessDefinitionVersionMigration

java.lang.Object
io.camunda.zeebe.engine.state.migration.to_8_3.ProcessDefinitionVersionMigration
All Implemented Interfaces:
MigrationTask

public class ProcessDefinitionVersionMigration extends Object implements MigrationTask
This migration is used to extend the data we have on process definition versions. We used to keep track of only a single version. This version was the highest known version of the process definition.

For resource deletion we need to know all the versions that are available in the state. This migration will make sure we store a list of all known versions.

  • Constructor Details

    • ProcessDefinitionVersionMigration

      public ProcessDefinitionVersionMigration()
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Description copied from interface: MigrationTask
      Returns identifier for the migration task.

      The identifier is used for logging.

      In the future, it might also be used to store the migrations that were run in persistent state

      Specified by:
      getIdentifier in interface MigrationTask
      Returns:
      identifier for the migration task
    • runMigration

      public void runMigration(MutableProcessingState processingState)
      Description copied from interface: MigrationTask
      Implementations of this method perform the actual migration
      Specified by:
      runMigration in interface MigrationTask
      Parameters:
      processingState - the mutable Zeebe state