73 lines
986 B
Markdown
73 lines
986 B
Markdown
|
---
|
||
|
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
|