enum UpgradePackageState

Lists possible states of the Upgrade Package.

References from:
UpgradePackage;

1
INITIALIZED
The Upgrade Package is initialized.

The administrative data and activations steps of the UP can be read.
In this state, only the prepare() action may be called.

2
PREPARE_IN_PROGRESS
Prepare action in progress.

In this state, only the cancel() action may be called. If the prepare() action completes successfully, the UP moves to PREPARE_COMPLETED state. If the prepare() action fails (or cancel() is called), the UP moves back to INITIALIZED state.
3
PREPARE_COMPLETED
Prepare action has successfully finished.

In this state, only the verify() or the activate() action may be called.
If the activate() action is called, the UP moves to ACTIVATION_IN_PROGRESS state.
4
ACTIVATION_IN_PROGRESS
Activation is in progress.

In this state, only the cancel() action may be called.
If the cancel() action is called, the UP moves to DEACTIVATION_IN_PROGRESS state.
If the activation step completes successfully, the UP moves to ACTIVATION_STEP_COMPLETED state.
5
ACTIVATION_STEP_COMPLETED
The previous activitation step completed successfully, but there are still more activation step(s) left.

In this state, only the activate() or the cancel() action may be called.
If the cancel() action is called, the UP moves to DEACTIVATION_IN_PROGRESS state.
If the activate() action is called, the ME starts the activation of the next activation step and the UP moves to ACTIVATION_IN_PROGRESS state.
If the fallback timer expires in this state, the UP moves to DEACTIVATION_IN_PROGRESS state.
6
WAITING_FOR_COMMIT
The last activation step completed successfully.

The operator has to commit the upgrade.
In this state, only the commit() or the cancel() action may be called.
If the cancel() action is called, the UP moves to DEACTIVATION_IN_PROGRESS state.
If the commit() action is called, the UP moves to COMMIT_COMPLETED state.
7
COMMIT_COMPLETED
The upgrade is committed.

The whole upgrad procedure has completed.
8
DEACTIVATION_IN_PROGRESS
The deactivation of the UP is in progress.

This may be a result of a cancel() action having been called or the fallback timer may have expired. In this state, no action can be called. In the end of fallback operation, the UP moves back to PREPARE_COMPLETED state.
  enum UpgradePackageState