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

902 lines
173 KiB
XML
Raw Permalink 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="1403.125px" preserveAspectRatio="none" style="width:1333px;height:1403px;background:#00000000;" version="1.1" viewBox="0 0 1333 1403" width="1333.3333px" zoomAndPan="magnify"><defs/><g><polygon points="426.5625,32.2591,426.5625,32.4781,437.0486,31.8275,447.5347,32.4605,458.0208,32.6754,468.5069,31.516,478.9931,32.1782,489.4792,31.8149,499.9653,31.8596,510.4514,32.1881,520.9375,31.5389,531.4236,32.8358,541.9097,31.6026,552.3958,32.0531,562.8819,32.7091,573.3681,32.1698,583.8542,32.3302,594.3403,32.2258,604.8264,32.4451,615.3125,32.5082,625.7986,32.8692,636.2847,32.9581,646.7708,32.9667,657.2569,32.5244,667.7431,32.742,678.2292,32.9906,688.7153,31.5079,699.2014,32.9659,709.6875,31.9503,720.1736,32.8152,730.6597,31.7435,741.1458,32.1878,751.6319,33.0316,762.1181,32.2083,772.6042,32.3688,783.0903,32.6119,793.5764,32.6927,804.0625,32.255,814.5486,32.5583,825.0347,31.6628,835.5208,32.5554,846.0069,32.8302,856.4931,32.7222,866.9792,32.8977,877.4653,31.7559,887.9514,31.5798,898.4375,32.2591,898.3549,32.0598,899.0189,32.4843,899.5899,32.6842,900.2958,33.2099,900.7713,33.1794,901.3838,33.4795,901.2737,33.4339,901.7011,34.0991,901.658,34.5694,901.9495,35.1783,902.5683,35.9228,902.6042,36.4258,902.7554,36.4258,902.8592,43.776,902.4924,51.1263,902.715,58.4766,902.8092,65.8268,902.6042,73.1771,902.4526,73.1143,902.3293,73.7536,902.1564,74.3723,902.081,75.0315,901.6265,75.5335,901.3838,76.1234,901.4452,76.2717,900.7209,76.1898,900.1153,76.3943,899.6829,77.0171,898.9315,76.8697,898.4375,77.3438,898.4375,77.8739,887.9514,77.559,877.4653,77.0647,866.9792,76.9752,856.4931,77.8216,846.0069,77.0319,835.5208,77.9603,825.0347,76.768,814.5486,77.9869,804.0625,77.8482,793.5764,77.5989,783.0903,77.3929,772.6042,78.1006,762.1181,77.9829,751.6319,77.5201,741.1458,77.6231,730.6597,77.2081,720.1736,78.0901,709.6875,77.5051,699.2014,77.5235,688.7153,76.7101,678.2292,76.9216,667.7431,77.8966,657.2569,77.7914,646.7708,77.299,636.2847,77.0082,625.7986,77.1157,615.3125,76.629,604.8264,77.7758,594.3403,78.1141,583.8542,77.8921,573.3681,78.0676,562.8819,77.2013,552.3958,77.4346,541.9097,76.94,531.4236,77.6396,520.9375,77.6008,510.4514,77.9192,499.9653,77.1045,489.4792,77.2037,478.9931,77.8057,468.5069,77.9347,458.0208,76.8099,447.5347,77.1418,437.0486,77.4992,426.5625,77.3438,426.4813,77.1478,426.0202,77.213,425.4183,76.9384,424.7813,76.5792,424.2244,76.4131,423.6162,76.1234,423.85,76.2202,423.2718,75.4925,423.2291,74.9867,422.9756,74.3936,422.677,73.7817,422.3958,73.1771,422.4448,73.1771,422.4352,65.8268,422.1791,58.4766,422.2567,51.1263,422.2356,43.776,422.3958,36.4258,422.4163,36.4343,422.6682,35.8482,422.9359,35.2688,423.0347,34.6194,423.3505,34.0598,423.6162,33.4795,423.6002,33.4409,424.2821,33.4205,424.8514,33.1282,425.3195,32.5915,425.9636,32.4798,426.5625,32.2591" style="stroke:#4D4D4D;stroke-width:1.0416666666666667;fill:none;"/><text fill="#2E2E2E" font-family="Segoe Print" font-size="20.8333" lengthAdjust="spacing" textLength="453.125" x="435.9375" y="62.0138">Sequence Diagram - sketchy-outline theme</text><polygon fill="none" points="930.2083,88.8021,930.2083,89.021,940.4718,88.3705,950.7353,89.0034,960.9988,89.2184,971.2623,88.059,981.5257,88.7211,991.7892,88.3578,1002.0527,88.4026,1012.3162,88.7311,1022.5797,88.0819,1032.8431,89.3788,1043.1066,88.1455,1053.3701,88.5961,1063.6336,89.252,1073.8971,88.7127,1084.1605,88.8732,1094.424,88.7688,1104.6875,88.988,1114.951,89.0512,1125.2145,89.4122,1135.4779,89.5011,1145.7414,89.5096,1156.0049,89.0673,1166.2684,89.285,1176.5319,89.5336,1186.7953,88.0508,1197.0588,89.5089,1207.3223,88.4932,1217.5858,89.3581,1227.8493,88.2864,1238.1127,88.7307,1248.3762,89.5746,1258.6397,88.7513,1268.9032,88.9118,1279.1667,88.8021,1279.2117,88.9107,1279.8112,89.1797,1280.3447,89.289,1280.9726,89.6265,1281.4476,89.5948,1282.1129,90.0225,1282.2042,90.0603,1282.5329,90.6846,1282.7437,91.2601,1283.0418,91.8717,12
@startuml
!$THEME = "sketchy-outline"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
skinparam handwritten true
skinparam shadowing false
!$BLUE = "#007bff"
!$INDIGO = "#6610f2"
!$PURPLE = "#6f42c1"
!$PINK = "#e83e8c"
!$RED = "#dc3545"
!$ORANGE = "#fd7e14"
!$YELLOW = "#ffc107"
!$GREEN = "#28a745"
!$TEAL = "#20c997"
!$CYAN = "#17a2b8"
!$WHITE = "#ffffff"
!$GRAY = "#868e96"
!$GRAYDARK = "#333333"
!$PRIMARY = "#333333"
!$SECONDARY = "#555555"
!$SUCCESS = "#28a745"
!$INFO = "#17a2b8"
!$WARNING = "#ffc107"
!$DANGER = "#dc3545"
!$LIGHT = "#ffffff"
!$DARK = "#555555"
!$FGCOLOR = $WHITE
!$PRIMARY_DARK = "#2e2e2e"
!$PRIMARY_LIGHT = "#474747"
!$PRIMARY_TEXT = "#2e2e2e"
!$SECONDARY_DARK = "#4d4d4d"
!$SECONDARY_LIGHT = "#666666"
!$SECONDARY_TEXT = $WHITE
!$INFO_DARK = "#1592a6"
!$INFO_LIGHT = "#2eabbf"
!$INFO_TEXT = $WHITE
!$SUCCESS_DARK = "#24963e"
!$SUCCESS_LIGHT = "#3eb058"
!$SUCCESS_TEXT = $WHITE
!$WARNING_DARK = "#e6ae06"
!$WARNING_LIGHT = "#ffc720"
!$WARNING_TEXT = $WHITE
!$DANGER_DARK = "#c6303e"
!$DANGER_LIGHT = "#e04958"
!$DANGER_TEXT = $WHITE
!$DARK_DARK = "#4d4d4d"
!$DARK_LIGHT = "#666666"
!$LIGHT_DARK = "#e6e6e6"
!$LIGHT_LIGHT = "#ffffff"
!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 "Segoe Print"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor $DARK
skinparam stereotype {
CBackgroundColor $BGCOLOR
CBorderColor $SECONDARY_DARK
ABackgroundColor $BGCOLOR
ABorderColor $SUCCESS_DARK
IBackgroundColor $BGCOLOR
IBorderColor $DANGER_DARK
EBackgroundColor $BGCOLOR
EBorderColor $WARNING_DARK
NBackgroundColor $BGCOLOR
NBorderColor $INFO_DARK
}
skinparam title {
FontColor $PRIMARY_TEXT
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $BGCOLOR
}
skinparam legend {
BackgroundColor $BGCOLOR
BorderColor $SECONDARY_DARK
FontColor $PRIMARY_TEXT
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $BGCOLOR
TitleFontColor $PRIMARY_TEXT
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $BGCOLOR
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $PRIMARY_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 $PRIMARY_TEXT
}
!endsub
!startsub sequence
skinparam sequence {
BorderColor $PRIMARY
TitleFontColor $PRIMARY_TEXT
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $DARK
BoxFontColor $DARK
LifeLineBorderColor $SECONDARY
LifeLineBorderThickness 2
LifeLineBackgroundColor $SECONDARY_DARK
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupBackgroundColor $SECONDARY
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $DARK
DividerBorderColor $DARK
DividerBorderThickness 2
DividerFontColor $LIGHT
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $DARK
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
ReferenceHeaderBackgroundColor $SECONDARY
}
!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 $WARNING
BorderColor $WARNING_LIGHT
FontColor $DARK
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO
BorderColor $INFO_DARK
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $BGCOLOR
BorderColor $DARK_DARK
FontColor $DARK_DARK
}
!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_DARK
FontColor $WARNING_DARK
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $PRIMARY_TEXT
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $BGCOLOR
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $PRIMARY_TEXT
BorderThickness 1
AttributeFontColor $PRIMARY_TEXT
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
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_DARK
FontColor $INFO_DARK
}
!endsub
!startsub file
skinparam file {
BackgroundColor $BGCOLOR
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
!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 handwritten true
skinparam shadowing false
skinparam defaultFontName "Segoe Print"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #555555
skinparam stereotype {
CBackgroundColor transparent
CBorderColor #4d4d4d
ABackgroundColor transparent
ABorderColor #24963e
IBackgroundColor transparent
IBorderColor #c6303e
EBackgroundColor transparent
EBorderColor #e6ae06
NBackgroundColor transparent
NBorderColor #1592a6
}
skinparam title {
FontColor #2e2e2e
BorderColor #4d4d4d
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor transparent
}
skinparam legend {
BackgroundColor transparent
BorderColor #4d4d4d
FontColor #2e2e2e
}
skinparam swimlane {
BorderColor #17a2b8
BorderThickness 2
TitleBackgroundColor transparent
TitleFontColor #2e2e2e
}
skinparam activity {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
BarColor #28a745
StartColor #17a2b8
EndColor #17a2b8
DiamondBackgroundColor transparent
DiamondBorderColor #4d4d4d
DiamondFontColor #2e2e2e
}
skinparam participant {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam arrow {
Thickness 3
Color #333333
FontColor #2e2e2e
}
skinparam sequence {
BorderColor #333333
TitleFontColor #2e2e2e
BackgroundColor transparent
StartColor #333333
EndColor #333333
BoxBackgroundColor transparent
BoxBorderColor #555555
BoxFontColor #555555
LifeLineBorderColor #555555
LifeLineBorderThickness 2
LifeLineBackgroundColor #4d4d4d
GroupBorderColor #555555
GroupFontColor #555555
GroupHeaderFontColor #17a2b8
GroupBackgroundColor #555555
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #555555
DividerBorderColor #555555
DividerBorderThickness 2
DividerFontColor #ffffff
ReferenceBackgroundColor transparent
ReferenceBorderColor #555555
ReferenceFontColor #555555
ReferenceHeaderFontColor #17a2b8
ReferenceHeaderBackgroundColor #555555
}
skinparam partition {
BorderColor #333333
FontColor #333333
BackgroundColor transparent
}
skinparam collections {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam control {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam entity {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam boundary {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam agent {
BackgroundColor #ffc107
BorderColor #ffc720
FontColor #555555
}
skinparam note {
BorderThickness 1
BackgroundColor #17a2b8
BorderColor #1592a6
FontColor #ffffff
}
skinparam artifact {
BackgroundColor transparent
BorderColor #4d4d4d
FontColor #4d4d4d
}
skinparam component {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam interface {
BackgroundColor transparent
BorderColor #dc3545
FontColor #555555
}
skinparam storage {
BackgroundColor transparent
BorderColor #e6ae06
FontColor #e6ae06
}
skinparam node {
BackgroundColor transparent
BorderColor #ffffff
FontColor #ffffff
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #2e2e2e
}
skinparam database {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam class {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
HeaderBackgroundColor transparent
StereotypeFontColor #555555
BorderThickness 1
AttributeFontColor #555555
AttributeFontSize 11
}
skinparam object {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
StereotypeFontColor #2e2e2e
BorderThickness 1
AttributeFontColor #2e2e2e
AttributeFontSize 11
}
skinparam usecase {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #333333
}
skinparam rectangle {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #333333
}
skinparam package {
BackgroundColor transparent
BorderColor #333333
FontColor #333333
BorderThickness 2
}
skinparam folder {
BackgroundColor transparent
BorderColor #ffc107
FontColor #ffc107
BorderThickness 2
}
skinparam frame {
BackgroundColor transparent
BorderColor #17a2b8
FontColor #17a2b8
BorderThickness 2
}
skinparam state {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
StartColor #17a2b8
EndColor #17a2b8
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam queue {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam card {
BackgroundColor transparent
BorderColor #1592a6
FontColor #1592a6
}
skinparam file {
BackgroundColor transparent
BorderColor #ffffff
FontColor #ffffff
}
skinparam stack {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
title Sequence Diagram - sketchy-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=#28a745><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=#dc3545><b>Bad request
group My own label
loop 1000 times
Alice -> Foo1: DNS Attack
end
end
else Just a Warning
Foo1 -> Alice: <font color=#ffc107><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>