blob: f844809e9139f5f639ead2d1fa1afff522afbc94 [file] [log] [blame]
liamfallonc9e27902019-05-28 13:27:04 +00001@startuml
2
3title Policy Design
4
5participant API_User
6box "PolicyDesign" #LightBlue
7 participant PolicyDesign
8 database PolicyDB
9end box
10
11autonumber
12
13API_User --> PolicyDesign : Get Policy Type Reference
14PolicyDesign --> PolicyDB : Get Policy Type Artifact and Metadata
15PolicyDesign --> API_User : Return Policy Type Reference and Metadata
16API_User --> PolicyDesign : Get Policy Reference and Metadata
17PolicyDesign --> PolicyDB : Get Policy Metadata
18
19alt Policy Artifact exists
20 PolicyDesign --> API_User : Return Policy Reference and Metadata
21else Policy Artifact does not exist
22 PolicyDesign --> API_User : Return New Policy Reference and Empty Metadata
23end
24
25API_User --> API_User : Policy Editing and Generation Session\nto get Policy Parameters from user
26
27activate API_User
28deactivate API_User
29
30loop
31 API_User --> PolicyDesign : Use Policy Type specification
32 API_User --> PolicyDesign : Create Policy PolicyDesign --> PolicyDesign : Create Policy
33 activate PolicyDesign
34 deactivate PolicyDesign
35 PolicyDesign --> PolicyDB : Save Policy Artifact and Metadata
36 PolicyDesign --> API_User : Policy Creation Result
37end
38
39@enduml