demo_doc/puml/cerulean/sequence-ex-1.svg

347 lines
36 KiB
XML
Raw Normal View History

2021-06-25 21:37:59 +08:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="1232.2917px" preserveAspectRatio="none" style="width:1051px;height:1232px;" version="1.1" viewBox="0 0 1051 1232" width="1051.0417px" zoomAndPan="magnify"><defs><linearGradient id="gxiuz8gcr55dc0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#EDF0F2"/><stop offset="100%" stop-color="#E9ECEF"/></linearGradient><linearGradient id="gxiuz8gcr55dc1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#59B6EC"/><stop offset="100%" stop-color="#2FA4E7"/></linearGradient><linearGradient id="gxiuz8gcr55dc2" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFFFFF"/><stop offset="100%" stop-color="#F8F9FA"/></linearGradient><linearGradient id="gxiuz8gcr55dc3" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#35638F"/><stop offset="100%" stop-color="#033C73"/></linearGradient></defs><g><rect fill="url(#gxiuz8gcr55dc0)" height="29.775" rx="4.1667" ry="4.1667" style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" width="270.8333" x="384.8958" y="30.8167"/><text fill="#2FA4E7" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="250" x="395.3125" y="50.6755">Sequence Diagram - cerulean theme</text><rect fill="#F8F9FA" height="1129.8828" rx="4.1667" ry="4.1667" style="stroke: #868E96; stroke-width: 1.0416666666666667;" width="214.5833" x="786.4583" y="72.05"/><text fill="#343A40" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="111.4583" x="838.0208" y="86.7004">Internal Service</text><rect fill="#EDF0F2" height="205.2999" style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" width="10.4167" x="364.0625" y="300.5249"/><rect fill="#FFFFFF" height="387.6831" rx="4.1667" ry="4.1667" style="stroke: #868E96; stroke-width: 2.0833333333333335;" width="1014.5833" x="13.5417" y="637.8581"/><rect fill="#FFFFFF" height="199.0499" style="stroke: none; stroke-width: 1.0416666666666667;" width="1014.5833" x="13.5417" y="771.108"/><rect fill="#FFFFFF" height="95.1416" rx="4.1667" ry="4.1667" style="stroke: #868E96; stroke-width: 2.0833333333333335;" width="993.75" x="23.9583" y="867.7246"/><rect fill="#FFFFFF" height="59.1166" rx="4.1667" ry="4.1667" style="stroke: #868E96; stroke-width: 2.0833333333333335;" width="972.9167" x="34.375" y="896.4579"/><rect fill="#FFFFFF" height="55.3833" style="stroke: none; stroke-width: 1.0416666666666667;" width="1014.5833" x="13.5417" y="970.1579"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="65.625" x2="65.625" y1="155.9916" y2="514.1581"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667; stroke-dasharray: 1.0,4.0;" x1="65.625" x2="65.625" y1="514.1581" y2="562.6831"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="65.625" x2="65.625" y1="562.6831" y2="1113.8245"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="226.0417" x2="226.0417" y1="155.9916" y2="514.1581"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667; stroke-dasharray: 1.0,4.0;" x1="226.0417" x2="226.0417" y1="514.1581" y2="562.6831"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="226.0417" x2="226.0417" y1="562.6831" y2="1113.8245"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="368.75" x2="368.75" y1="155.9916" y2="514.1581"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667; stroke-dasharray: 1.0,4.0;" x1="368.75" x2="368.75" y1="514.1581" y2="562.6831"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="368.75" x2="368.75" y1="562.6831" y2="1113.8245"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667;" x1="509.375" x2="509.375" y1="155.9916" y2="514.1581"/><line style="stroke: #BABDBF; stroke-width: 1.0416666666666667; stroke-dasharray: 1.0,4.0;" x1="509.375" x2="509.375" y1="51
@startuml
skinparam backgroundColor white
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 10
skinparam BoxPadding 2
skinparam Padding 2
skinparam ArrowColor #868E96
skinparam title {
FontColor #2FA4E7
BorderColor #BABDBF
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #EDF0F2-#E9ECEF
}
skinparam legend {
BackgroundColor #E9ECEF
BorderColor #BABDBF
FontColor #343A40
}
skinparam activity {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
BarColor #73A839
StartColor #033C73
EndColor #033C73
DiamondBackgroundColor #FFF-#EDF0F2
DiamondBorderColor #BABDBF
DiamondFontColor #343A40
}
skinparam sequence {
BorderColor #2FA4E7
TitleFontColor #2FA4E7
BackgroundColor white
StartColor #2FA4E7
EndColor #2FA4E7
ParticipantBackgroundColor #59B6EC-#2FA4E7
ParticipantBorderColor #2FA4E7
ParticipantBorderThickness 0
ParticipantFontColor #FFF
ActorBackgroundColor white
ActorBorderColor #2FA4E7
ActorFontColor #2FA4E7
ArrowThickness 3
ArrowColor #2FA4E7
ArrowFontColor #343A40
BoxBackgroundColor #F8F9FA
BoxBorderColor #868E96
BoxFontColor #343A40
LifeLineBorderColor #BABDBF
LifeLineBorderThickness 2
LifeLineBackgroundColor #EDF0F2
GroupBorderColor #868E96
GroupFontColor #343A40
GroupHeaderFontColor #033C73
DividerBackgroundColor #FFF-#F8F9FA
DividerBorderColor #868E96
DividerBorderThickness 2
DividerFontColor #343A40
ReferenceBackgroundColor white
ReferenceBorderColor #868E96
ReferenceFontColor #343A40
ReferenceHeaderFontColor #033C73
}
skinparam partition {
BorderColor #2FA4E7
FontColor #2FA4E7
BackgroundColor white
}
skinparam collections {
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2FA4E7
}
skinparam control {
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2683B9
FontColor #343A40
}
skinparam entity {
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2683B9
FontColor #343A40
}
skinparam boundary {
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2683B9
FontColor #343A40
}
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #35638F-#033C73
BorderColor #033C73
FontColor #FFF
}
skinparam artifact {
BackgroundColor #FFF-#F8F9FA
BorderColor #868E96
FontColor #868E96
}
skinparam component {
BackgroundColor #8FB961-#73A839
BorderColor #73A839
FontColor #FFF
}
skinparam interface {
BackgroundColor #D2494E
BorderColor #C71C22
FontColor #343A40
}
skinparam storage {
BackgroundColor #E47833-#DD5600
BorderColor #DD5600
FontColor #FFF
}
skinparam node {
BackgroundColor #EDF0F2-#E9ECEF
BorderColor #343A40
FontColor #343A40
}
skinparam cloud {
BackgroundColor white-lightskyblue
BorderColor white
FontColor #343A40
}
skinparam database {
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2683B9
FontColor #343A40
}
skinparam actor {
FontColor #343A40
}
skinparam class {
HeaderBackgroundColor #2FA4E7-#2683B9
FontColor #FFF
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2683B9
StereotypeFontColor #343A40
BorderThickness 1
AttributeFontColor #343A40
AttributeFontSize 11
}
skinparam object {
FontColor #73A839
BackgroundColor #E9ECEF-#BABDBF
BorderColor #BABDBF
StereotypeFontColor #343A40
BorderThickness 1
AttributeFontColor #343A40
AttributeFontSize 11
}
skinparam usecase {
BackgroundColor #EDF0F2-#E9ECEF
BorderColor #E9ECEF
BorderThickness 2
FontColor #343A40
StereotypeFontColor #2FA4E7
}
skinparam rectangle {
BackgroundColor #E9ECEF-#BABDBF
BorderColor #2683B9
BorderThickness 2
FontColor #2FA4E7
StereotypeFontColor #2FA4E7
}
skinparam package {
BackgroundColor #EDF0F2-#E9ECEF
BorderColor #2FA4E7
FontColor #2FA4E7
BorderThickness 2
}
skinparam folder {
BackgroundColor #FFF-#EDF0F2
BorderColor #DD5600
FontColor #DD5600
BorderThickness 2
}
skinparam frame {
BackgroundColor #FFF-#EDF0F2
BorderColor #033C73
FontColor #033C73
BorderThickness 2
}
skinparam state {
StartColor #033C73
EndColor #033C73
BackgroundColor #E9ECEF-#BABDBF
BorderColor #BABDBF
FontColor #033C73
AttributeFontColor #343A40
AttributeFontSize 11
}
skinparam queue {
BackgroundColor #DD5600-#B14500
BorderColor #B14500
FontColor #FFF
}
skinparam card {
BackgroundColor #35638F-#033C73
BorderColor #033C73
FontColor #FFF
}
skinparam file {
BackgroundColor #EDF0F2-#E9ECEF
BorderColor #868E96
FontColor #868E96
}
skinparam stack {
BackgroundColor #59B6EC-#2683B9
BorderColor #2FA4E7
FontColor #FFF
}
title Sequence Diagram - cerulean theme
autonumber "<b>[000]"
header Page Header
footer Page %page% of %lastpage%
actor Foo1
boundary Foo2
control Foo3
entity Foo4
database Foo5
collections Foo6
participant Bob
participant Alice << (C,#ADD1B2) Testable >>
box "Internal Service"
participant Bob
participant Alice
end box
== Initialization ==
Foo1 -> Foo2 : To boundary
|||
Foo2 -> Foo3 ++: To control
ref over Foo4, Foo5
This can be on
several lines
end ref
Foo3 -> Foo4 : To entity
Foo4 -> Foo5 : To database
Foo5 - -> Foo3 - - : return
Foo3 - -> Foo2 - -: return
... Some ~~long delay~~ ...
Foo1 -> Foo6 : To collections
Foo6 - -> Foo4: <font color=#73A839><b>success
alt successful case
Foo1 -> Alice: Authentication Accepted
Alice - -> Foo1: success
note left of Alice: this is a first note
else some kind of failure
Foo1 -> Alice: Authentication Failure
Alice - -> Foo1: <font color=#C71C22><b>Bad request
group My own label
loop 1000 times
Alice -> Foo1: DNS Attack
end
end
else Just a Warning
Foo1 -> Alice: <font color=#DD5600><b>Please repeat
end
note over Foo1, Foo2
this is a second note
that is really
long
end note
@enduml
PlantUML version 1.2019.11(Sun Sep 22 03:02:15 PDT 2019)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3
Operating System: Linux
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>