Class TemporaryVariableMigration
java.lang.Object
io.camunda.zeebe.engine.state.migration.TemporaryVariableMigration
- All Implemented Interfaces:
MigrationTask
Reads out the temporary variable column and creates an EventTrigger for reach of them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns identifier for the migration task.booleanneedsToRun(ProcessingState processingState) Returns whether the migration needs to run.voidrunMigration(MutableProcessingState processingState) Implementations of this method perform the actual migration
-
Constructor Details
-
TemporaryVariableMigration
public TemporaryVariableMigration()
-
-
Method Details
-
getIdentifier
Description copied from interface:MigrationTaskReturns 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:
getIdentifierin interfaceMigrationTask- Returns:
- identifier for the migration task
-
needsToRun
Description copied from interface:MigrationTaskReturns whether the migration needs to run. By default this returns true. We keep track of whether migrations have already run, and we use this to determine if they need to run. There are migrations from before this mechanism was implemented. Because of this we need to make sure they still have the opportunity to decide if they need to run in the old way.- Specified by:
needsToRunin interfaceMigrationTask- Parameters:
processingState- the immutable Zeebe state- Returns:
- whether the migration needs to run
-
runMigration
Description copied from interface:MigrationTaskImplementations of this method perform the actual migration- Specified by:
runMigrationin interfaceMigrationTask- Parameters:
processingState- the mutable Zeebe state
-