InProgress

data class InProgress(val currentStep: Int, val step: MigrationStep, val totalSteps: Int, val message: String? = null) : MigrationProgress

Migration is in progress with current step information.

This progress event is emitted when a migration step is about to be executed. It provides detailed information about the current step, including its position in the sequence and descriptive message.

This event is emitted BEFORE the step's execute() method is called, allowing UI updates to show what operation is about to begin.

Usage:

Use this event to update progress bars, status messages, and provide real-time feedback about which operation is currently executing.

is MigrationProgress.InProgress -> {
val progressPercent = (progress.currentStep * 100) / progress.totalSteps
progressBar.progress = progressPercent
statusText.text = "Step ${progress.currentStep}/${progress.totalSteps}: ${progress.message}"
logger.i("Executing: ${progress.step.description}")
}

Parameters

currentStep

The 1-based index of the step currently being executed (1, 2, 3, ...)

step

The MigrationStep instance being executed, containing description and logic

totalSteps

The total number of steps in this migration sequence

message

Optional descriptive message about the current step (usually step.description)

Constructors

Link copied to clipboard
constructor(currentStep: Int, step: MigrationStep, totalSteps: Int, message: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val message: String? = null
Link copied to clipboard
Link copied to clipboard