permit primary status 'Deleting' switch to other status
@@ -23,6 +23,10 @@ public abstract class AbstractPrimaryStorage implements PrimaryStorage {
states.addTranscation(PrimaryStorageState.Maintenance, PrimaryStorageStateEvent.disable, PrimaryStorageState.Disabled);
states.addTranscation(PrimaryStorageState.Maintenance, PrimaryStorageStateEvent.maintain, PrimaryStorageState.Maintenance);
states.addTranscation(PrimaryStorageState.Maintenance, PrimaryStorageStateEvent.deleting, PrimaryStorageState.Deleting);
+ states.addTranscation(PrimaryStorageState.Deleting, PrimaryStorageStateEvent.enable, PrimaryStorageState.Enabled);
+ states.addTranscation(PrimaryStorageState.Deleting, PrimaryStorageStateEvent.disable, PrimaryStorageState.Disabled);
+ states.addTranscation(PrimaryStorageState.Deleting, PrimaryStorageStateEvent.maintain, PrimaryStorageState.Maintenance);
+ states.addTranscation(PrimaryStorageState.Deleting, PrimaryStorageStateEvent.deleting, PrimaryStorageState.Deleting);
}
public static PrimaryStorageState getNextState(PrimaryStorageState curr, PrimaryStorageStateEvent evt) {
