liamfallon | c9e2790 | 2019-05-28 13:27:04 +0000 | [diff] [blame] | 1 | @startuml |
| 2 | |
| 3 | title Policy Design |
| 4 | |
| 5 | participant API_User |
| 6 | box "PolicyDesign" #LightBlue |
| 7 | participant PolicyDesign |
| 8 | database PolicyDB |
| 9 | end box |
| 10 | |
| 11 | autonumber |
| 12 | |
| 13 | API_User --> PolicyDesign : Get Policy Type Reference |
| 14 | PolicyDesign --> PolicyDB : Get Policy Type Artifact and Metadata |
| 15 | PolicyDesign --> API_User : Return Policy Type Reference and Metadata |
| 16 | API_User --> PolicyDesign : Get Policy Reference and Metadata |
| 17 | PolicyDesign --> PolicyDB : Get Policy Metadata |
| 18 | |
| 19 | alt Policy Artifact exists |
| 20 | PolicyDesign --> API_User : Return Policy Reference and Metadata |
| 21 | else Policy Artifact does not exist |
liamfallon | 1c7c520 | 2020-04-14 13:42:34 +0100 | [diff] [blame] | 22 | PolicyDesign --> API_User : Return Policy Not Found |
liamfallon | c9e2790 | 2019-05-28 13:27:04 +0000 | [diff] [blame] | 23 | end |
| 24 | |
| 25 | API_User --> API_User : Policy Editing and Generation Session\nto get Policy Parameters from user |
| 26 | |
| 27 | activate API_User |
| 28 | deactivate API_User |
| 29 | |
| 30 | loop |
| 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 |
| 37 | end |
| 38 | |
| 39 | @enduml |