Versions Compared

Key

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

...

When an instance element has completed a step, not means that the full implementation is completed (DEPLOYED state).

It will add new method "updateAutomationCompositionElementStateupdateAutomationCompositionElementStage" as below:.

Code Block
languagejava
    /**
       * Update the statestage of a automation composition element.
     *
     * @param automationCompositionId the ID of the automation composition to update the state on
     * @param elementId the ID of the automation composition element to update the state on
     * @param deployState the Deploy State of the automation composition element
     * @param lockState the Lock State
of the automation composition element      * @param stateChangeResult the indicator if error occurs
     * @param stageCompletednextStage the next stage completedto do
     * @param message the message
     */
      void updateAutomationCompositionElementStateupdateAutomationCompositionElementStage(UUID automationCompositionId, UUID elementId, DeployState deployState,
            LockState lockState, StateChangeResult stateChangeResult, Integer stageCompletednextStage, String message);

Note: Participant has the control to decide what will be the next stage.


During the execution of the operation how the user is able to see the steps executed by the instance element? Same for monitoring, it needs new filed into Instance Element to store what step is executedstage that is executing for each instance element. "stage" field will be add in DB.

Code Block
languagexml
                "709c62b3-8918-41b9-a747-d21eb79c6c23": {
                    "id": "709c62b3-8918-41b9-a747-d21eb79c6c23",
                    "definition": {
                        "name": "onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement",
                        "version": "1.2.3"
                    },
                    "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91",
                    "deployState": "DEPLOYING",
                    "stage": 1,
                    "lockState": "NONE",
                    "description": "Sink Automation Composition Element for the Demo",
                    "message": "",

...