简体   繁体   中英

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:

带有未对齐序列箭头的序列图

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

带有对齐箭头的序列图

Any hints on how to achieve this are appreciated!

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

播送

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM