Petter Hesselberg
Petter Hesselberg

Reputation: 5498

How to show broadcast (simultaneous sending of two messages) in sequence diagrams in PlantUml

I have this bit of plantuml:

@startuml

title Sequence diagram

A -> B : First
B -> C : Second
B -> A : Third

@enduml

It renders like this:

Sequence diagram with unaligned sequence arrows

I would like to get this instead, with two arrows "happening concurrently":

Sequence diagram with aligned arrows

Any hints on how to achieve this are appreciated!

Upvotes: 2

Views: 1931

Answers (1)

Fuhrmanator
Fuhrmanator

Reputation: 12902

You might find an answer with the Teoz pragma https://plantuml.com/teoz

@startuml
!pragma teoz true
title Sequence diagram

A -> B : First
B -> C : Second
&B -> A : Third

@enduml

Broadcast

Upvotes: 5

Related Questions