业务架构分析工具 plantuml

业务架构分析工具 plantuml

plantuml 介绍

时序图

@startuml
Alice -> Bob: Hi Bob
Bob --> Alice: Hi Alice

Alice -> Bob: how are you?
Alice <-- Bob: Fine,thanks.
@enduml

image

时序图常用关键字

  • 声明对象:actor database
  • 消息数字序号:autonumber
  • 消息分组:alt/else/end

用例图

@startuml
left to right direction
skinparam packageStyle rectangle
actor customer
actor clerk
rectangle checkout {
  customer -- (checkout) 
  (checkout) .> (payment) : include 
  (help) .> (checkout) : extends
  (checkout) -- clerk
}
@enduml

image

活动图

@startuml
start
repeat
  :read data;
  :generate diagrams;
repeat while (more data?)
stop
@enduml

image

思维导图

image