Adding new state and system diagrams/pages
[policy/parent.git] / docs / clamp / acm / plantuml / system-dialogues / CreateAcInstance.puml
1 @startuml
2 participant REST
3 participant ACM_Runtime
4 database ACM_Database
5
6 REST -> ACM_Runtime: Create Automation Composition Instance for\nspecified Automation Composition Type with\nspecified parameter values
7
8 alt Automation Composition Instance exists
9  alt Automation Composition Instance is not in state UNDEPLOYED
10   ACM_Runtime -> REST: Automation Composition instance exists and is already deployed
11  else
12   note right of REST
13    Updates on "Not In Service" Automation Composition Instances are allowed
14   end note
15  end
16 end
17
18 alt Specified Automation Composition Type Exists
19  alt Specified Automation Composition Type is in state PRIMED
20   ACM_Runtime -> ACM_Database: Store Automation Composition Instance
21   ACM_Runtime -> ACM_Database: Set Automation Composition Instance State to UNDEPLOYED
22   ACM_Runtime -> REST: Automation Composition Instance Created
23  else
24   ACM_Runtime -> REST: Automation Composition Type is not in state PRIMED
25  end
26 else
27   ACM_Runtime -> REST: Automation Composition Type is not found
28 end
29
30 @enduml