Class ProcessInstanceByProcessDefinitionMigration

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

public class ProcessInstanceByProcessDefinitionMigration extends Object implements MigrationTask
This migration is used to initially fill the PROCESS_INSTANCE_KEY_BY_DEFINITION_KEY ColumnFamily. It will go over all the element instances, check if they are of the BpmnElementType PROCESS, and if they are insert them into the ColumnFamily.
  • Constructor Details

    • ProcessInstanceByProcessDefinitionMigration

      public ProcessInstanceByProcessDefinitionMigration()
  • 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
    • needsToRun

      public boolean needsToRun(ProcessingState processingState)
      Description copied from interface: MigrationTask
      Returns whether the migration needs to run.
      Specified by:
      needsToRun in interface MigrationTask
      Parameters:
      processingState - the immutable Zeebe state
      Returns:
      whether the migration needs to run
    • 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