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

928 lines
42 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="1427.0833px" preserveAspectRatio="none" style="width:1354px;height:1427px;background:#00000000;" version="1.1" viewBox="0 0 1354 1427" width="1354.1667px" zoomAndPan="magnify"><defs/><g><rect height="46.1528" rx="4.1667" ry="4.1667" style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" width="495.8333" x="425" y="32.9"/><text fill="#2FA4E7" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="468.75" x="438.5417" y="64.2619">Sequence Diagram - cerulean-outline theme</text><rect fill="none" height="1311.1328" rx="4.1667" ry="4.1667" style="stroke:#868E96;stroke-width:1.0416666666666667;" width="356.25" x="947.9167" y="90.5111"/><text fill="#343A40" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="111.4583" x="1070.3125" y="108.2865">Internal Service</text><rect height="215.1082" style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" width="10.4167" x="389.0625" y="343.986"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="65.625" x2="65.625" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="65.625" x2="65.625" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="65.625" x2="65.625" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="238.5417" x2="238.5417" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="238.5417" x2="238.5417" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="238.5417" x2="238.5417" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="393.75" x2="393.75" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="393.75" x2="393.75" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="393.75" x2="393.75" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="546.875" x2="546.875" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="546.875" x2="546.875" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="546.875" x2="546.875" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="719.7917" x2="719.7917" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="719.7917" x2="719.7917" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="719.7917" x2="719.7917" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="827.0833" x2="827.0833" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="827.0833" x2="827.0833" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="827.0833" x2="827.0833" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="1018.75" x2="1018.75" y1="180.7027" y2="595.1192"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;stroke-dasharray:1.0,4.0;" x1="1018.75" x2="1018.75" y1="595.1192" y2="649.8942"/><line style="stroke:#BABDBF;stroke-width:1.0416666666666667;fill:none;" x1="1018.75" x2="1018.75" y1="649.8942" y2="1307.2856"/><line style="stroke:#BABDBF;stroke-width:1.0416
@startuml
!$THEME = "cerulean-outline"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$BLUE = "#033C73"
!$INDIGO = "#6610F2"
!$PURPLE = "#6F42C1"
!$PINK = "#E83E8C"
!$RED = "#C71C22"
!$ORANGE = "#FD7E14"
!$YELLOW = "#DD5600"
!$GREEN = "#73A839"
!$TEAL = "#20C997"
!$CYAN = "#2FA4E7"
!$WHITE = "#FFF"
!$GRAY_DARK = "#343A40"
!$GRAY = "#868E96"
!$PRIMARY = "#2FA4E7"
!$SECONDARY = "#E9ECEF"
!$SUCCESS = "#73A839"
!$INFO = "#033C73"
!$WARNING = "#DD5600"
!$DANGER = "#C71C22"
!$LIGHT = "#F8F9FA"
!$DARK = "#343A40"
!$FGCOLOR = $DARK
!$PRIMARY_LIGHT = "#59B6EC"
!$PRIMARY_DARK = "#2683B9"
!$PRIMARY_TEXT = $PRIMARY
!$SECONDARY_LIGHT = "#EDF0F2"
!$SECONDARY_DARK = "#BABDBF"
!$SECONDARY_TEXT = $SECONDARY_DARK
!$INFO_LIGHT = "#35638F"
!$INFO_TEXT = $INFO
!$SUCCESS_LIGHT = "#8FB961"
!$SUCCESS_TEXT = $SUCCESS
!$WARNING_LIGHT = "#E47833"
!$WARNING_TEXT = $WARNING
!$DANGER_LIGHT = "#D2494E"
!$DANGER_TEXT = $WHITE
!procedure $success($msg)
<font color=$SUCCESS><b>$msg
!endprocedure
!procedure $failure($msg)
<font color=$DANGER><b>$msg
!endprocedure
!procedure $warning($msg)
<font color=$WARNING><b>$msg
!endprocedure
!procedure $primary_scheme()
FontColor $PRIMARY_TEXT
BorderColor $PRIMARY
BackgroundColor $BGCOLOR
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor $GRAY
skinparam stereotype {
CBackgroundColor $SECONDARY_LIGHT
CBorderColor $SECONDARY_DARK
ABackgroundColor $SUCCESS_LIGHT
ABorderColor $SUCCESS_DARK
IBackgroundColor $DANGER_LIGHT
IBorderColor $DANGER_DARK
EBackgroundColor $WARNING_LIGHT
EBorderColor $WARNING_DARK
NBackgroundColor $INFO_LIGHT
NBorderColor $INFO_DARK
}
skinparam title {
FontColor $PRIMARY
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $BGCOLOR
}
skinparam legend {
BackgroundColor $BGCOLOR
BorderColor $SECONDARY_DARK
FontColor $DARK
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY
TitleFontColor $PRIMARY
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $BGCOLOR
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
ParticipantBorderThickness 2
}
!endsub
!startsub actor
skinparam actor {
$primary_scheme()
}
!endsub
!startsub arrow
skinparam arrow {
Thickness 3
Color $PRIMARY
FontColor $FGCOLOR
}
!endsub
!startsub sequence
skinparam sequence {
BorderColor $PRIMARY
TitleFontColor $PRIMARY
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $GRAY
BoxFontColor $DARK
LifeLineBorderColor $SECONDARY_DARK
LifeLineBorderThickness 2
LifeLineBackgroundColor $BGCOLOR
GroupBorderColor $GRAY
GroupFontColor $DARK
GroupHeaderFontColor $INFO_TEXT
GroupBackgroundColor $SECONDARY
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $BGCOLOR
DividerBorderColor $GRAY
DividerBorderThickness 2
DividerFontColor $DARK
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $GRAY
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO_TEXT
}
!endsub
!startsub partition
skinparam partition {
BorderColor $PRIMARY
FontColor $PRIMARY
BackgroundColor $BGCOLOR
}
!endsub
!startsub collections
skinparam collections {
$primary_scheme()
}
!endsub
!startsub control
skinparam control {
$primary_scheme()
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
}
!endsub
!startsub agent
skinparam agent {
BackgroundColor $BGCOLOR
BorderColor #999999
FontColor #333333
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $BGCOLOR
BorderColor $INFO
FontColor $INFO_TEXT
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $BGCOLOR
BorderColor $GRAY
FontColor $GRAY
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $BGCOLOR
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $BGCOLOR
BorderColor $WARNING
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $DARK
FontColor $DARK
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $DARK
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
FontColor $LIGHT
HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $SECONDARY_DARK
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
BackgroundColor $BGCOLOR
BorderColor $PRIMARY
FontColor $PRIMARY
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $BGCOLOR
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $BGCOLOR
BorderColor $INFO
FontColor $INFO_TEXT
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
StartColor $INFO
EndColor $INFO
AttributeFontColor $SECONDARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub queue
skinparam queue {
$primary_scheme()
}
!endsub
!startsub card
skinparam card {
BackgroundColor $BGCOLOR
BorderColor $INFO
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $BGCOLOR
BorderColor $GRAY
FontColor $GRAY
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
!if (%variable_exists("LEGACY"))
!$LEGACY = "true"
!endif
!if (%getenv("LEGACY") == "true")
!$LEGACY = "true"
!endif
!if (%variable_exists("$LEGACY"))
skinparam useBetaStyle true
!startsub mindmap
<style>
style mindmapDiagram {
Margin 8
LineThickness 2.0
FontColor $PRIMARY_TEXT
LineColor $SECONDARY
BackGroundColor $PRIMARY_LIGHT-$PRIMARY
}
wbsDiagram {
Margin 8
LineThickness 2.0
FontColor $PRIMARY_TEXT
LineColor $PRIMARY
BackGroundColor $PRIMARY_LIGHT-$PRIMARY
}
</style>
!endsub
!endif
!if %variable_exists("$THEME")
title Sequence Diagram - $THEME theme
!else
title Sequence Diagram
!endif
'skinparam BackgroundColor transparent
skinparam responseMessageBelowArrow true
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: $success("success")
group 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: $failure("Bad request")
group My own label
loop 1000 times
Alice -> Foo1: DNS Attack
end
end
else Just a Warning
Foo1 -> Alice: $warning("Please repeat")
end
note over Foo1, Foo2
this is a second note
that is really
long
end note
@enduml
@startuml
skinparam backgroundColor transparent
skinparam useBetaStyle false
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #868E96
skinparam stereotype {
CBackgroundColor #EDF0F2
CBorderColor #BABDBF
ABackgroundColor #8FB961
ABorderColor $SUCCESS_DARK
IBackgroundColor #D2494E
IBorderColor $DANGER_DARK
EBackgroundColor #E47833
EBorderColor $WARNING_DARK
NBackgroundColor #35638F
NBorderColor $INFO_DARK
}
skinparam title {
FontColor #2FA4E7
BorderColor #BABDBF
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor transparent
}
skinparam legend {
BackgroundColor transparent
BorderColor #BABDBF
FontColor #343A40
}
skinparam swimlane {
BorderColor #033C73
BorderThickness 2
TitleBackgroundColor #EDF0F2-#E9ECEF
TitleFontColor #2FA4E7
}
skinparam activity {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
BarColor #73A839
StartColor #033C73
EndColor #033C73
DiamondBackgroundColor transparent
DiamondBorderColor #BABDBF
DiamondFontColor #BABDBF
}
skinparam participant {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam arrow {
Thickness 3
Color #2FA4E7
FontColor #343A40
}
skinparam sequence {
BorderColor #2FA4E7
TitleFontColor #2FA4E7
BackgroundColor transparent
StartColor #2FA4E7
EndColor #2FA4E7
BoxBackgroundColor transparent
BoxBorderColor #868E96
BoxFontColor #343A40
LifeLineBorderColor #BABDBF
LifeLineBorderThickness 2
LifeLineBackgroundColor transparent
GroupBorderColor #868E96
GroupFontColor #343A40
GroupHeaderFontColor #033C73
GroupBackgroundColor #E9ECEF
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor transparent
DividerBorderColor #868E96
DividerBorderThickness 2
DividerFontColor #343A40
ReferenceBackgroundColor transparent
ReferenceBorderColor #868E96
ReferenceFontColor #343A40
ReferenceHeaderFontColor #033C73
}
skinparam partition {
BorderColor #2FA4E7
FontColor #2FA4E7
BackgroundColor transparent
}
skinparam collections {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam control {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam entity {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam boundary {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam agent {
BackgroundColor transparent
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor transparent
BorderColor #033C73
FontColor #033C73
}
skinparam artifact {
BackgroundColor transparent
BorderColor #868E96
FontColor #868E96
}
skinparam component {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam interface {
BackgroundColor transparent
BorderColor #C71C22
FontColor #343A40
}
skinparam storage {
BackgroundColor transparent
BorderColor #DD5600
FontColor #DD5600
}
skinparam node {
BackgroundColor transparent
BorderColor #343A40
FontColor #343A40
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #343A40
}
skinparam database {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam class {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
FontColor #F8F9FA
HeaderBackgroundColor #2FA4E7-#2683B9
StereotypeFontColor #343A40
BorderThickness 1
AttributeFontColor #343A40
AttributeFontSize 11
}
skinparam object {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
StereotypeFontColor #343A40
BorderThickness 1
AttributeFontColor #BABDBF
AttributeFontSize 11
}
skinparam usecase {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #2FA4E7
}
skinparam rectangle {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #2FA4E7
}
skinparam package {
BackgroundColor transparent
BorderColor #2FA4E7
FontColor #2FA4E7
BorderThickness 2
}
skinparam folder {
BackgroundColor transparent
BorderColor #DD5600
FontColor #DD5600
BorderThickness 2
}
skinparam frame {
BackgroundColor transparent
BorderColor #033C73
FontColor #033C73
BorderThickness 2
}
skinparam state {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
StartColor #033C73
EndColor #033C73
AttributeFontColor #BABDBF
AttributeFontSize 11
}
skinparam queue {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
skinparam card {
BackgroundColor transparent
BorderColor #033C73
FontColor #033C73
}
skinparam file {
BackgroundColor transparent
BorderColor #868E96
FontColor #868E96
}
skinparam stack {
FontColor #2FA4E7
BorderColor #2FA4E7
BackgroundColor transparent
}
title Sequence Diagram - cerulean-outline theme
skinparam responseMessageBelowArrow true
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
group 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.2021.01(Mon Feb 01 23:55:08 PST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>