demo_doc/puml/aws-orange-dark/swimlane-ex.svg

751 lines
22 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="493.75px" preserveAspectRatio="none" style="width:582px;height:493px;background:#00000000;" version="1.1" viewBox="0 0 582 493" width="582.2917px" zoomAndPan="magnify"><defs><linearGradient id="g13xk2pxt7its0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#55585C"/><stop offset="100%" stop-color="#2A2E33"/></linearGradient><linearGradient id="g13xk2pxt7its1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F08E41"/><stop offset="100%" stop-color="#EC7211"/></linearGradient></defs><g><rect fill="url(#g13xk2pxt7its0)" height="25.6083" style="stroke:url(#g13xk2pxt7its0);stroke-width:1.0416666666666667;" width="548.6979" x="15.625" y="11.4583"/><ellipse cx="138.8021" cy="52.6917" fill="#44B9D6" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><polygon fill="#222529" points="114.3229,83.9417,163.2813,83.9417,175.7813,96.7458,163.2813,109.55,114.3229,109.55,101.8229,96.7458,114.3229,83.9417" style="stroke:#55585C;stroke-width:1.5625;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="38.5417" x="119.5313" y="101.7171">color?</text><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="21.875" x="74.7396" y="88.913">red</text><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="47.9167" x="180.9896" y="88.913">not red</text><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="13.0208" ry="13.0208" style="stroke:#EC7211;stroke-width:1.5625;" width="100" x="21.875" y="130.3833"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="68.75" x="37.5" y="158.5754">action red</text><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="13.0208" ry="13.0208" style="stroke:#EC7211;stroke-width:1.5625;" width="60.4167" x="41.6667" y="197.6583"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="57.2917" y="225.8504">foo1</text><polygon fill="#222529" points="138.8021,254.5166,151.3021,267.0166,138.8021,279.5166,126.3021,267.0166,138.8021,254.5166" style="stroke:#55585C;stroke-width:1.5625;"/><line style="stroke:#44B9D6;stroke-width:2.0833333333333335;" x1="15.625" x2="15.625" y1="11.4583" y2="481.3416"/><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="13.0208" ry="13.0208" style="stroke:#EC7211;stroke-width:1.5625;" width="126.0417" x="241.4063" y="130.3833"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="94.7917" x="257.0313" y="158.5754">action not red</text><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="13.0208" ry="13.0208" style="stroke:#EC7211;stroke-width:1.5625;" width="60.4167" x="274.2188" y="197.6583"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="289.8438" y="225.8504">foo2</text><line style="stroke:#44B9D6;stroke-width:2.0833333333333335;" x1="234.1146" x2="234.1146" y1="11.4583" y2="481.3416"/><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="13.0208" ry="13.0208" style="stroke:#EC7211;stroke-width:1.5625;" width="60.4167" x="389.8438" y="300.3499"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="405.4688" y="328.5421">foo3</text><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="13.0208" ry="13.0208" style="stroke:#EC7211;stroke-width:1.5625;" width="60.4167" x="389.8438" y="367.6249"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="405.4688" y="395.8171">foo4</text><line style="stroke:#44B9D6;stroke-width:2.0833333333333335;" x1="372.6563" x2="372.6563" y1="11.4583" y2="481.3416"/><rect fill="url(#g13xk2pxt7its1)" height="46.4417" rx="1
@startuml
!$THEME = "AWS Orange Dark"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$WHITE = "#FFF"
!$GRAY_LIGHT = "#222"
!$GRAY = "#868e96"
!$PRIMARY = "#EC7211"
!$SECONDARY = "#2a2e33"
!$SUCCESS = "#6aaf35"
!$INFO = "#44b9d6"
!$WARNING = "#EC7211"
!$DANGER = "#ff5d64"
!$LIGHT = "#abb6c2"
!$DARK = "#4E5D6C"
!$FGCOLOR = $WHITE
!$PRIMARY_DARK = "#f08e41"
!$PRIMARY_LIGHT = "#bd5b0e"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_DARK = "#55585c"
!$SECONDARY_LIGHT = "#222529"
!$SECONDARY_TEXT = $WHITE
!$INFO_DARK = "#69c7de"
!$INFO_LIGHT = "#3694ab"
!$INFO_TEXT = $WHITE
!$SUCCESS_DARK = "#88bf5d"
!$SUCCESS_LIGHT = "#558c2a"
!$SUCCESS_TEXT = $WHITE
!$WARNING_DARK = "#f08e41"
!$WARNING_LIGHT = "#bd5b0e"
!$WARNING_TEXT = $WHITE
!$DANGER_DARK = "#ff7d83"
!$DANGER_LIGHT = "#cc4a50"
!$DANGER_TEXT = $WHITE
!$DARK_DARK = "#717d89"
!$DARK_LIGHT = "#3e4a56"
!$LIGHT_DARK = "#bcc5ce"
!$LIGHT_LIGHT = "#89929b"
!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 $PRIMARY_DARK-$PRIMARY
!endprocedure
!_POST = "<color #007a3e>POST</color>"
!_PUT = "<color #ea7400>PUT</color>"
!_DELETE = "<color #cf2a2a>DELETE</color>"
!_GET = "<color #009fdb>GET</color>"
!_PATCH = "<color #b5bd00>PATCH</color>"
!_HEAD = "<color #9012fe>HEAD</color>"
!procedure $OK($x)
<color green>$x</color>
!endprocedure
!procedure $ERROR($x)
<color red>$x</color>
!endprocedure
!procedure $COND($x)
<color orange>x</color>
!endprocedure
!procedure $REDSTAR()
<color red>*</color>
!endprocedure
!procedure $REQ($x)
<b>x</b>
!endprocedure
!procedure $OPT($x)
<color #555>x</color>
!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 $DARK
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_TEXT
BorderColor $SECONDARY
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $SECONDARY_DARK-$SECONDARY
}
skinparam legend {
BackgroundColor $SECONDARY
BorderColor $SECONDARY_DARK
FontColor $LIGHT
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_DARK-$SECONDARY
TitleFontColor $PRIMARY
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $SECONDARY_LIGHT
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 {
ArrowThickness 3
BorderColor $PRIMARY
TitleFontColor $PRIMARY
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $DARK
BoxFontColor $DARK
LifeLineBorderColor $LIGHT
LifeLineBorderThickness 3
LifeLineBackgroundColor $LIGHT
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupBackgroundColor $SECONDARY
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $DARK
DividerBorderColor $DARK
DividerBorderThickness 2
DividerFontColor $LIGHT
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $DARK
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
ReferenceHeaderBackgroundColor $SECONDARY
StereotypeFontColor $PRIMARY_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 $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 $DARK
BorderColor $DARK_DARK
FontColor $LIGHT
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_DARK
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING
BorderColor $WARNING_DARK
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor $DARK
FontColor $LIGHT
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $PRIMARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $SECONDARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
BorderColor $DARK
FontColor $LIGHT
BackgroundColor $BGCOLOR
BorderThickness 2
StereotypeFontColor $DARK
}
!endsub
!startsub package
skinparam package {
BackgroundColor $SECONDARY
BorderColor $LIGHT
FontColor $LIGHT
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $SECONDARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $SECONDARY_LIGHT
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 $INFO
BorderColor $INFO_DARK
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_DARK
BorderColor $LIGHT
FontColor $PRIMARY_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 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #4E5D6C
skinparam stereotype {
CBackgroundColor #222529
CBorderColor #55585c
ABackgroundColor #558c2a
ABorderColor #88bf5d
IBackgroundColor #cc4a50
IBorderColor #ff7d83
EBackgroundColor #bd5b0e
EBorderColor #f08e41
NBackgroundColor #3694ab
NBorderColor #69c7de
}
skinparam title {
FontColor #FFF
BorderColor #2a2e33
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #55585c-#2a2e33
}
skinparam legend {
BackgroundColor #2a2e33
BorderColor #55585c
FontColor #abb6c2
}
skinparam swimlane {
BorderColor #44b9d6
BorderThickness 2
TitleBackgroundColor #55585c-#2a2e33
TitleFontColor #EC7211
}
skinparam activity {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
BarColor #6aaf35
StartColor #44b9d6
EndColor #44b9d6
DiamondBackgroundColor #222529
DiamondBorderColor #55585c
DiamondFontColor #FFF
}
skinparam participant {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam arrow {
Thickness 3
Color #EC7211
FontColor #FFF
}
skinparam sequence {
ArrowThickness 3
BorderColor #EC7211
TitleFontColor #EC7211
BackgroundColor transparent
StartColor #EC7211
EndColor #EC7211
BoxBackgroundColor transparent
BoxBorderColor #4E5D6C
BoxFontColor #4E5D6C
LifeLineBorderColor #abb6c2
LifeLineBorderThickness 3
LifeLineBackgroundColor #abb6c2
GroupBorderColor #4E5D6C
GroupFontColor #4E5D6C
GroupHeaderFontColor #44b9d6
GroupBackgroundColor #2a2e33
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #4E5D6C
DividerBorderColor #4E5D6C
DividerBorderThickness 2
DividerFontColor #abb6c2
ReferenceBackgroundColor transparent
ReferenceBorderColor #4E5D6C
ReferenceFontColor #4E5D6C
ReferenceHeaderFontColor #44b9d6
ReferenceHeaderBackgroundColor #2a2e33
StereotypeFontColor #FFF
}
skinparam partition {
BorderColor #EC7211
FontColor #EC7211
BackgroundColor transparent
}
skinparam collections {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam control {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam entity {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam boundary {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam agent {
BackgroundColor #EC7211
BorderColor #bd5b0e
FontColor #4E5D6C
}
skinparam note {
BorderThickness 1
BackgroundColor #44b9d6
BorderColor #69c7de
FontColor #FFF
}
skinparam artifact {
BackgroundColor #4E5D6C
BorderColor #717d89
FontColor #abb6c2
}
skinparam component {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam interface {
BackgroundColor #ff7d83
BorderColor #ff5d64
FontColor #4E5D6C
}
skinparam storage {
BackgroundColor #EC7211
BorderColor #f08e41
FontColor #FFF
}
skinparam node {
BackgroundColor transparent
BorderColor #abb6c2
FontColor #abb6c2
}
skinparam cloud {
BackgroundColor transparent
BorderColor #4E5D6C
FontColor #abb6c2
}
skinparam database {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam class {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
HeaderBackgroundColor #bd5b0e
StereotypeFontColor #4E5D6C
BorderThickness 1
AttributeFontColor #FFF
AttributeFontSize 11
}
skinparam object {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
StereotypeFontColor #4E5D6C
BorderThickness 1
AttributeFontColor #FFF
AttributeFontSize 11
}
skinparam usecase {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
BorderThickness 2
StereotypeFontColor #EC7211
}
skinparam rectangle {
BorderColor #4E5D6C
FontColor #abb6c2
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #4E5D6C
}
skinparam package {
BackgroundColor #2a2e33
BorderColor #abb6c2
FontColor #abb6c2
BorderThickness 2
}
skinparam folder {
BackgroundColor #222529
BorderColor #EC7211
FontColor #EC7211
BorderThickness 2
}
skinparam frame {
BackgroundColor #222529
BorderColor #44b9d6
FontColor #44b9d6
BorderThickness 2
}
skinparam state {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
StartColor #44b9d6
EndColor #44b9d6
AttributeFontColor #FFF
AttributeFontSize 11
}
skinparam queue {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
skinparam card {
BackgroundColor #44b9d6
BorderColor #69c7de
FontColor #FFF
}
skinparam file {
BackgroundColor #55585c
BorderColor #abb6c2
FontColor #FFF
}
skinparam stack {
FontColor #FFF
BorderColor #EC7211
BackgroundColor #f08e41-#EC7211
}
|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>