...
PlantUML Macro | ||
---|---|---|
| ||
@startuml
actor CLAMP
database Runtime_DB
control CL_Instance_Control
participant DmaaP
collections Participants
CLAMP -> Runtime_DB : Fetched all Deployed Control Loops
CLAMP -> CLAMP : Provide configurations for Control Loops which are to be instantiated
CLAMP -> CL_Instance_Control : Instantiate CL POST REST API call
alt case where CLAMP sends deployed CL id instead of the full Control Loop
CL_Instance_Control -> Runtime_DB : Fetch the Deployed Control Loop from Models table
Runtime_DB -> CL_Instance_Control : Return the requested Deployed Control Loop data
end
CL_Instance_Control -> DmaaP : INSTANTIATE Event (JSON/Yaml)
note over CL_Instance_Control, DmaaP : List of Participant ID's containing Participant Metadata Blocks
Participants -> DmaaP : Pulls its part of CL and tries to Instantiate
alt successful case
Participants -> CL_Instance_Control : INSTANTIATE ACK (JSON/Yaml)
note over DmaaP : One per Participant
CL_Instance_Control -> Runtime_DB : Update the CL Instance LCM Data table
CL_Instance_Control -> CLAMP : Instantiation Successful
else failure case
... timeout INSTANTIATE ACK not received ...
CL_Instance_Control -> DmaaP : TEARDOWN Event (JSON/Yaml)
Participants -> DmaaP : Pulls its part of CL and starts Teardown
Participants -> CL_Instance_Control : TEARDOWN ACK (JSON/Yaml)
note over DmaaP : One per Participant
CL_Instance_Control -> CLAMP : Instantiation Failed
end
@enduml |
...