demo_doc/puml/bluegray/swimlane-ex.svg

826 lines
22 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="537.5px" preserveAspectRatio="none" style="width:616px;height:537px;background:#00000000;" version="1.1" viewBox="0 0 616 537" width="616.6667px" zoomAndPan="magnify"><defs><linearGradient id="g10mnslidlg9yu0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F5F5F5"/><stop offset="100%" stop-color="#F2F2F2"/></linearGradient><linearGradient id="g10mnslidlg9yu1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F5F5F5"/><stop offset="100%" stop-color="#C2C2C2"/></linearGradient><linearGradient id="g10mnslidlg9yu2" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#33B2E2"/><stop offset="100%" stop-color="#009FDB"/></linearGradient></defs><g><rect fill="url(#g10mnslidlg9yu0)" height="31.8583" style="stroke:url(#g10mnslidlg9yu0);stroke-width:1.0416666666666667;" width="583.0729" x="15.625" y="11.4583"/><ellipse cx="145.0521" cy="58.9417" fill="#0568AE" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><polygon fill="url(#g10mnslidlg9yu1)" points="117.4479,90.1917,172.6563,90.1917,185.1563,106.1208,172.6563,122.05,117.4479,122.05,104.9479,106.1208,117.4479,90.1917" style="stroke:#C2C2C2;stroke-width:1.5625;"/><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="38.5417" x="125.7813" y="111.0921">color?</text><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="21.875" x="74.7396" y="95.163">red</text><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="47.9167" x="193.4896" y="95.163">not red</text><rect fill="url(#g10mnslidlg9yu2)" height="52.6917" rx="13.0208" ry="13.0208" style="stroke:#009FDB;stroke-width:1.5625;" width="106.25" x="21.875" y="142.8833"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="68.75" x="40.625" y="174.2004">action red</text><rect fill="url(#g10mnslidlg9yu2)" height="52.6917" rx="13.0208" ry="13.0208" style="stroke:#009FDB;stroke-width:1.5625;" width="66.6667" x="41.6667" y="216.4083"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="60.4167" y="247.7254">foo1</text><polygon fill="url(#g10mnslidlg9yu1)" points="145.0521,279.5166,157.5521,292.0166,145.0521,304.5166,132.5521,292.0166,145.0521,279.5166" style="stroke:#C2C2C2;stroke-width:1.5625;"/><line style="stroke:#0568AE;stroke-width:2.0833333333333335;" x1="15.625" x2="15.625" y1="11.4583" y2="525.0916"/><rect fill="url(#g10mnslidlg9yu2)" height="52.6917" rx="13.0208" ry="13.0208" style="stroke:#009FDB;stroke-width:1.5625;" width="132.2917" x="253.9063" y="142.8833"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="94.7917" x="272.6563" y="174.2004">action not red</text><rect fill="url(#g10mnslidlg9yu2)" height="52.6917" rx="13.0208" ry="13.0208" style="stroke:#009FDB;stroke-width:1.5625;" width="66.6667" x="286.7188" y="216.4083"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="305.4688" y="247.7254">foo2</text><line style="stroke:#0568AE;stroke-width:2.0833333333333335;" x1="246.6146" x2="246.6146" y1="11.4583" y2="525.0916"/><rect fill="url(#g10mnslidlg9yu2)" height="52.6917" rx="13.0208" ry="13.0208" style="stroke:#009FDB;stroke-width:1.5625;" width="66.6667" x="408.5938" y="325.3499"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="427.3438" y="356.6671">foo3</text><rect fill="url(#g10mnslidlg9yu2)" height="52.6917" rx="13.0208" ry="13.0208" style="stroke:#009FDB;stroke-width:1.5625;" width="66.6667" x="408.5938" y="398.8749"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1
@startuml
!$THEME = "bluegray"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$WHITE = "#fff"
!$GRAY_DARK = "#5a5a5a"
!$GRAY = "#959595"
!$PRIMARY = "#009fdb"
!$SECONDARY = "#f2f2f2"
!$SUCCESS = "#b5bd00"
!$INFO = "#0568ae"
!$WARNING = "#ea7400"
!$DANGER = "#cf2a2a"
!$LIGHT = "#d2d2d2"
!$DARK = "#5a5a5a"
!$FGCOLOR = $DARK
!$PRIMARY_LIGHT = "#33b2e2"
!$PRIMARY_DARK = "#007faf"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_LIGHT = "#f5f5f5"
!$SECONDARY_DARK = "#c2c2c2"
!$SECONDARY_TEXT = $DARK
!$INFO_LIGHT = "#3786be"
!$INFO_DARK = "#04538b"
!$INFO_TEXT = $WHITE
!$SUCCESS_LIGHT = "#c4ca33"
!$SUCCESS_DARK = "#919700"
!$SUCCESS_TEXT = $WHITE
!$WARNING_LIGHT = "#ee9033"
!$WARNING_DARK = "#bb5d00"
!$WARNING_TEXT = $WHITE
!$DANGER_LIGHT = "#d95555"
!$DANGER_DARK = "#a62222"
!$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_LIGHT
BackgroundColor $PRIMARY_LIGHT-$PRIMARY
!endprocedure
!procedure $secondary_scheme()
FontColor $SECONDARY_TEXT
BorderColor $SECONDARY_DARK
BackgroundColor $WHITE-#fefefe
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 20
skinparam ParticipantPadding 30
skinparam BoxPadding 40
skinparam Padding 8
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 $SECONDARY_LIGHT-$SECONDARY
}
skinparam legend {
BackgroundColor $SECONDARY
BorderColor $SECONDARY_DARK
FontColor $DARK
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY
TitleFontColor $PRIMARY
}
!endsub
!startsub activity
skinparam activity {
FontColor $PRIMARY_TEXT
BorderColor $PRIMARY
BackgroundColor $PRIMARY_LIGHT-$PRIMARY
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
ParticipantBorderThickness 2
}
!endsub
!startsub actor
skinparam actor {
$primary_scheme()
FontColor $PRIMARY
}
!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 $SECONDARY_LIGHT
GroupBorderColor $GRAY
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupBackgroundColor $BGCOLOR
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $WHITE-$LIGHT
DividerBorderColor $GRAY
DividerBorderThickness 2
DividerFontColor $DARK
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $GRAY
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
}
!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()
FontColor $PRIMARY
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
FontColor $PRIMARY
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
FontColor $PRIMARY
}
!endsub
!startsub agent
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO_LIGHT-$INFO
BorderColor $INFO
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $WHITE-$LIGHT
BorderColor $SECONDARY_DARK
FontColor $SECONDARY_TEXT
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_LIGHT
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING_LIGHT-$WARNING
BorderColor $WARNING
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
BorderColor $SECONDARY_DARK
FontColor $PRIMARY
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $PRIMARY
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
BorderColor $PRIMARY_DARK
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$secondary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
FontColor $PRIMARY
BorderColor $PRIMARY_LIGHT
BackgroundColor $BGCOLOR
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $WHITE-$SECONDARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $WHITE-$SECONDARY_LIGHT
BorderColor $INFO
FontColor $INFO
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
BorderColor $PRIMARY_DARK
StartColor $INFO
EndColor $INFO
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub queue
skinparam queue {
$primary_scheme()
}
!endsub
!startsub card
skinparam card {
BackgroundColor $INFO_LIGHT-$INFO
BorderColor $INFO
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
BorderColor $INFO
FontColor $SECONDARY_TEXT
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
|Actor_For_red|
start
if (color?) is (red) then
:**action red**;
:foo1;
else (not red)
|Actor_For_no_red|
:**action not red**;
:foo2;
endif
|Next_Actor|
:foo3;
:foo4;
|Final_Actor|
:stop;
@enduml
@startuml
skinparam backgroundColor transparent
skinparam useBetaStyle false
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 20
skinparam ParticipantPadding 30
skinparam BoxPadding 40
skinparam Padding 8
skinparam ArrowColor #959595
skinparam stereotype {
CBackgroundColor #f5f5f5
CBorderColor #c2c2c2
ABackgroundColor #c4ca33
ABorderColor #919700
IBackgroundColor #d95555
IBorderColor #a62222
EBackgroundColor #ee9033
EBorderColor #bb5d00
NBackgroundColor #3786be
NBorderColor #04538b
}
skinparam title {
FontColor #009fdb
BorderColor #c2c2c2
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #f5f5f5-#f2f2f2
}
skinparam legend {
BackgroundColor #f2f2f2
BorderColor #c2c2c2
FontColor #5a5a5a
}
skinparam swimlane {
BorderColor #0568ae
BorderThickness 2
TitleBackgroundColor #f5f5f5-#f2f2f2
TitleFontColor #009fdb
}
skinparam activity {
FontColor #fff
BorderColor #009fdb
BackgroundColor #33b2e2-#009fdb
BarColor #b5bd00
StartColor #0568ae
EndColor #0568ae
DiamondBackgroundColor #f5f5f5-#c2c2c2
DiamondBorderColor #c2c2c2
DiamondFontColor #5a5a5a
}
skinparam participant {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam arrow {
Thickness 3
Color #009fdb
FontColor #5a5a5a
}
skinparam sequence {
BorderColor #009fdb
TitleFontColor #009fdb
BackgroundColor transparent
StartColor #009fdb
EndColor #009fdb
BoxBackgroundColor transparent
BoxBorderColor #959595
BoxFontColor #5a5a5a
LifeLineBorderColor #c2c2c2
LifeLineBorderThickness 2
LifeLineBackgroundColor #f5f5f5
GroupBorderColor #959595
GroupFontColor #5a5a5a
GroupHeaderFontColor #0568ae
GroupBackgroundColor transparent
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #fff-#d2d2d2
DividerBorderColor #959595
DividerBorderThickness 2
DividerFontColor #5a5a5a
ReferenceBackgroundColor transparent
ReferenceBorderColor #959595
ReferenceFontColor #5a5a5a
ReferenceHeaderFontColor #0568ae
}
skinparam partition {
BorderColor #009fdb
FontColor #009fdb
BackgroundColor transparent
}
skinparam collections {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
skinparam control {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam entity {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam boundary {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #3786be-#0568ae
BorderColor #0568ae
FontColor #fff
}
skinparam artifact {
BackgroundColor #fff-#d2d2d2
BorderColor #c2c2c2
FontColor #5a5a5a
}
skinparam component {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
skinparam interface {
BackgroundColor #d95555
BorderColor #cf2a2a
FontColor #5a5a5a
}
skinparam storage {
BackgroundColor #ee9033-#ea7400
BorderColor #ea7400
FontColor #fff
}
skinparam node {
BackgroundColor #f5f5f5-#f2f2f2
BorderColor #c2c2c2
FontColor #009fdb
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #009fdb
}
skinparam database {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
BorderColor #007faf
}
skinparam class {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
HeaderBackgroundColor #33b2e2-#009fdb
StereotypeFontColor #5a5a5a
BorderThickness 1
AttributeFontColor #d2d2d2
AttributeFontSize 11
}
skinparam object {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
StereotypeFontColor #5a5a5a
BorderThickness 1
AttributeFontColor #d2d2d2
AttributeFontSize 11
}
skinparam usecase {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
BorderThickness 2
StereotypeFontColor #009fdb
}
skinparam rectangle {
FontColor #5a5a5a
BorderColor #c2c2c2
BackgroundColor #fff-#fefefe
BorderThickness 2
StereotypeFontColor #009fdb
}
skinparam package {
FontColor #009fdb
BorderColor #33b2e2
BackgroundColor transparent
BorderThickness 2
}
skinparam folder {
BackgroundColor #fff-#f5f5f5
BorderColor #ea7400
FontColor #ea7400
BorderThickness 2
}
skinparam frame {
BackgroundColor #fff-#f5f5f5
BorderColor #0568ae
FontColor #0568ae
BorderThickness 2
}
skinparam state {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
BorderColor #007faf
StartColor #0568ae
EndColor #0568ae
AttributeFontColor #d2d2d2
AttributeFontSize 11
}
skinparam queue {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
skinparam card {
BackgroundColor #3786be-#0568ae
BorderColor #0568ae
FontColor #fff
}
skinparam file {
BackgroundColor #f5f5f5-#f2f2f2
BorderColor #0568ae
FontColor #5a5a5a
}
skinparam stack {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
|Actor_For_red|
start
if (color?) is (red) then
:**action red**;
:foo1;
else (not red)
|Actor_For_no_red|
:**action not red**;
:foo2;
endif
|Next_Actor|
:foo3;
:foo4;
|Final_Actor|
:stop;
@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>