Success

data class Success(val message: String? = null) : MigrationProgress

Migration completed successfully.

This is the final progress event emitted when a migration completes without errors. It indicates that all migration steps have been executed successfully, or the migration was terminated early by a step returning ABORT.

Completion Scenarios:

All Steps Completed: All configured steps executed and returned CONTINUE.

Early Termination: A step returned ABORT, terminating the migration successfully.

Empty Migration: No steps were configured, migration completes immediately.

Usage:

Use this event to hide progress UI, show success messages, perform post-migration cleanup, or trigger dependent operations.

is MigrationProgress.Success -> {
hideProgressDialog()
val message = progress.message ?: "Migration completed successfully"
showSuccessNotification(message)

// Perform post-migration actions
cleanupTemporaryFiles()
notifyMigrationComplete()

// Log completion time
val duration = System.currentTimeMillis() - startTime
logger.i("Migration completed in ${duration}ms")
}

Parameters

message

Optional success message providing additional context about the completion

Constructors

Link copied to clipboard
constructor(message: String? = null)

Properties

Link copied to clipboard
val message: String? = null