Versions Compared

Key

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

Allowed operations in ACM-participant for the participant developer point of view.

The table show the the allowed values using the "updateAutomationCompositionElementState" method.


Method

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

handleRestartInstance
DEPLOYED/UNLOCK

DEPLOYEDUNLOCK

handleRestartInstance

UNDEPLOYED

DEPLOYED/

NONE

LOCK

UNDEPLOYED
DEPLOYED
NONE
LOCK

handleRestartInstance
DEPLOYING

DEPLOYEDnullUNDEPLOYEDnull

handleRestartInstance
UNDEPLOYING

UNDEPLOYEDnullDEPLOYEDnull

handleRestartInstance
UPDATING

DEPLOYEDnullDEPLOYEDnull

handleRestartInstance
DELETING

DELETEDnullUNDEPLOYEDnull

handleRestartInstance
LOCKING

nullLOCKEDnullUNLOCKED

handleRestartInstance
UNLOCKING

nullUNLOCKEDnullLOCKED

Suggestions
Implement actions as delete, updeploy and update 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.


The table show the the allowed values using the "updateCompositionState" method.

MethodStateChangeResult.NO_ERROR
StateChangeResult.FAILED
primePRIMEDCOMMISSIONED
deprimeCOMMISSIONEDPRIMED
handleRestartComposition
PRIMED
PRIMED
handleRestartComposition
PRIMING
PRIMEDCOMMISSIONED
handleRestartComposition
DEPRIMING
COMMISSIONEDPRIMED

Note:
"handleRestartInstance" and "handleRestartComposition" will be deprecated after the implementation of the BD for participants.