diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2019-12-05 19:12:30 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2019-12-05 19:12:30 +0800 |
commit | f5c4f00f795ea4f9889b59c574f31c980a788df3 (patch) | |
tree | 05e419d8bdc133993a4d066fbb18d7e2e0538de3 /_posts/2017-12-04-plantuml-example.md | |
parent | 8f272c286a6c1eb821704a678f2b11dbe39a04b9 (diff) |
chore: add new example posts
Diffstat (limited to '_posts/2017-12-04-plantuml-example.md')
-rw-r--r-- | _posts/2017-12-04-plantuml-example.md | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/_posts/2017-12-04-plantuml-example.md b/_posts/2017-12-04-plantuml-example.md new file mode 100644 index 0000000..399fb9f --- /dev/null +++ b/_posts/2017-12-04-plantuml-example.md @@ -0,0 +1,72 @@ +--- +layout: post +title: Plantuml example +categories: example +tags: [plantuml] +--- + +## My First PlantUML + +`` ini +aaa = 123 +```` +`` + + +### PlantUML Block-1 +@startuml +Bob -> Alice : hello +@enduml + + +### PlantUML Block-2 +``` plantuml +Bob -> Alice : hello world +``` + + +### PlantUML Block-3 +@startuml +(*) --> "Initialization" + +if "Some Test" then + -->[true] "Some Activity" + --> "Another activity" + -right-> (*) +else + ->[false] "Something else" + -->[Ending process] (*) +endif +@enduml + + +### PlantUML Block-4 + +@startuml +skinparam handwritten true + +skinparam usecase { + BackgroundColor DarkSeaGreen + BorderColor DarkSlateGray + + BackgroundColor<< Main >> YellowGreen + BorderColor<< Main >> YellowGreen + + ArrowColor Olive + ActorBorderColor black + ActorFontName Courier + + ActorBackgroundColor<< Human >> Gold +} + +User << Human >> +:Main Database: as MySql << Application >> +(Start) << One Shot >> +(Use the application) as (Use) << Main >> + +User -> (Start) +User --> (Use) + +MySql --> (Use) + +@enduml |