Managing the migrate state (SRV_MIGRATE_STATE) event

The SRV_MIGRATE_STATE event handler must manage the migration state changes and execute the actions appropriate for each change: