Class TemporaryVariableMigration

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

public class TemporaryVariableMigration extends Object implements MigrationTask
Reads out the temporary variable column and creates an EventTrigger for reach of them.
  • Constructor Details

    • TemporaryVariableMigration

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

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