summaryrefslogtreecommitdiffstats
path: root/docs/architecture/plantuml/PolicyDesign.puml
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2019-05-28 13:27:04 +0000
committerliamfallon <liam.fallon@est.tech>2019-05-28 13:27:04 +0000
commitc9e2790646530c9546ecbf0038248cfdf663521c (patch)
tree3ca387794e2fcb370bd685d87f52b0523e34904f /docs/architecture/plantuml/PolicyDesign.puml
parente62f711b12a3d2340172e8b6d608989197bf4dc9 (diff)
Complete Architecture Document
Issue-ID: POLICY-1676 Change-Id: Ic0a631dbc27c69455cfc4b0cc12ed7bd1131cce8 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'docs/architecture/plantuml/PolicyDesign.puml')
-rw-r--r--docs/architecture/plantuml/PolicyDesign.puml39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/architecture/plantuml/PolicyDesign.puml b/docs/architecture/plantuml/PolicyDesign.puml
new file mode 100644
index 00000000..f844809e
--- /dev/null
+++ b/docs/architecture/plantuml/PolicyDesign.puml
@@ -0,0 +1,39 @@
+@startuml
+
+title Policy Design
+
+participant API_User
+box "PolicyDesign" #LightBlue
+ participant PolicyDesign
+ database PolicyDB
+end box
+
+autonumber
+
+API_User --> PolicyDesign : Get Policy Type Reference
+PolicyDesign --> PolicyDB : Get Policy Type Artifact and Metadata
+PolicyDesign --> API_User : Return Policy Type Reference and Metadata
+API_User --> PolicyDesign : Get Policy Reference and Metadata
+PolicyDesign --> PolicyDB : Get Policy Metadata
+
+alt Policy Artifact exists
+ PolicyDesign --> API_User : Return Policy Reference and Metadata
+else Policy Artifact does not exist
+ PolicyDesign --> API_User : Return New Policy Reference and Empty Metadata
+end
+
+API_User --> API_User : Policy Editing and Generation Session\nto get Policy Parameters from user
+
+activate API_User
+deactivate API_User
+
+loop
+ API_User --> PolicyDesign : Use Policy Type specification
+ API_User --> PolicyDesign : Create Policy PolicyDesign --> PolicyDesign : Create Policy
+ activate PolicyDesign
+ deactivate PolicyDesign
+ PolicyDesign --> PolicyDB : Save Policy Artifact and Metadata
+ PolicyDesign --> API_User : Policy Creation Result
+end
+
+@enduml \ No newline at end of file