plantuml introduction
TRANSCRIPT
PlantUML
Introduction
PlantUML
What is PlantUML?
Why use it?
Where to use it?
What is PlantUML?
PlantUML is a component that allows you to quickly write UML diagrams.
It uses a simple and intuitive language to write the diagrams.
The core component is a java jar and can be easly integrated in other software.
Why use it?
Maintaining (UML) documentation can be a tedious task. Separated diagramming tools are often separated from developments tools. PlantUML can be an integral part of the tools we love to use.
Writing the diagrams is a big advantage over drawing them, mainly because the speed. It's almost like programming.
Where to use it?
PlantUML
Use case diagrams
Sequence diagrams
Class diagrams
Use case diagrams
' optionstitle Order intake flowleft to right direction
' actorsActor API as AActor Customer as CActor MQ
' relationsC --|> A
' packagepackage CINCO {
' Use casesA -> (Choose package) (Choose package) ..> (Choose options)A -> (Submit order) : Customer Submits order (Handle order) A
' packagepackage CINCO {
' Use casesA -> (Choose package) (Choose package) ..> (Choose options)A -> (Submit order) : Customer Submits order (Handle order) Api:placeOrder(order)
Api -> MQ:connect()Api -> MQ:channel('orders')Api -> MQ:put(order)Api -> MQ:disconnect()
Consumer -> MQ:connect()Consumer -> MQ:watch('orders')
loop while(true) Consumer -> MQ:reserve() Consumer -> Biblio.Utils.OrderHelper:processOrder(order) alt Success Consumer -> MQ:delete() else failed Consumer -> MQ:release() endendConsumer -> MQ:disconnect()
Class diagrams
interface iCommand {+can(transition)+execute()}
abstract Command {-options : []-__construct(options)+factory(options) : Command}
iCommand