Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Method

StateChangeResult.NO_ERROR
StateChangeResult.FAILED
DeployStateLockStateDeployStateLockState
undeployUNDEPLOYEDnullDEPLOYEDnull
deployDEPLOYEDnullUNDEPLOYEDnull
locknullLOCKEDnullUNLOCKED
unlocknullUNLOCKEDnullLOCKED
deleteDELETEDnullUNDEPLOYEDnull
updateDEPLOYEDnullDEPLOYEDnull
migrateDEPLOYEDnullDEPLOYEDnull

handleRestartInstance
DEPLOYED/UNLOCK

DEPLOYEDUNLOCK

handleRestartInstance
DEPLOYED/LOCK

DEPLOYEDLOCK

handleRestartInstance
DEPLOYING

DEPLOYEDnullUNDEPLOYEDnull

handleRestartInstance
UNDEPLOYING

UNDEPLOYEDnullDEPLOYEDnull

handleRestartInstance
UPDATING

DEPLOYEDnullDEPLOYEDnull

handleRestartInstance
DELETING

DELETEDnullUNDEPLOYEDnull

handleRestartInstance
LOCKING

nullLOCKEDnullUNLOCKED

handleRestartInstance
UNLOCKING

nullUNLOCKEDnullLOCKED

Suggestions
DImplement actions as delete, updeploy and update could be considerate as idempotent actions. As example in a deleting or updating query (if they doesn't contain non-deterministic functional call) are idempotents.
In a scenario of an instance with more than one elements, and there is a failed undeployment, the user can try again, and the ACM-participant will try to undeploy all elements.

...