blog/_posts/2017-12-04-plantuml-example.md

67 lines
967 B
Markdown
Raw Normal View History

2019-12-05 12:12:30 +01:00
---
layout: post
title: Plantuml example
categories: example
tags: [plantuml]
---
## My First PlantUML
### PlantUML Block-1
@startuml
Bob -> Alice : hello
@enduml
### PlantUML Block-2
2020-07-12 10:30:26 +02:00
``` plantuml!
2019-12-05 12:12:30 +01:00
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 {
2020-07-12 10:30:26 +02:00
BackgroundColor DarkSeaGreen
BorderColor DarkSlateGray
BackgroundColor<< Main >> YellowGreen
BorderColor<< Main >> YellowGreen
2019-12-05 12:12:30 +01:00
2020-07-12 10:30:26 +02:00
ArrowColor Olive
ActorBorderColor black
ActorFontName Courier
2019-12-05 12:12:30 +01:00
2020-07-12 10:30:26 +02:00
ActorBackgroundColor<< Human >> Gold
2019-12-05 12:12:30 +01:00
}
User << Human >>
:Main Database: as MySql << Application >>
(Start) << One Shot >>
(Use the application) as (Use) << Main >>
User -> (Start)
User --> (Use)
MySql --> (Use)
@enduml