plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.33k stars 1.1k forks source link

Add (C4 styled) Sequence Diagram support #308

Closed kirchsth closed 1 year ago

kirchsth commented 1 year ago

related to https://github.com/plantuml-stdlib/C4-PlantUML/issues/307

In the final solutions the sequence diagram supports descriptions, line breaks, links, ... of all elements. The only main difference are a) boundaries have to be defined without { and } and instead of } the Boundary_End() macro has to be called b) descriptions of the elements (person, system,... ) are deactivated; they can be activated via the layout option SHOW_ELEMENT_DESCRIPTIONS(?show) c) in contrast to a normal sequence diagram the foot boxes are deactivated; they can be activated via SHOW_FOOT_BOXES(?show)

The C4 language itself is basically not extended, missing new features like Grouping messages have to added with native PlantUML syntax.

I have no useful sample at the moment, maybe someone can attach a more practical sample

(part of the new docu)

(C4 styled) Sequence diagram

C4-PlantUML does not offer a full sequence diagram support, but existing elements and relationships can be reused as participants and calls in the corresponding styles.

!!! Contrary to all other diagrams, please define boundaries without { and } and mark a boundary end with Boundary_End() !!!

(end of the new docu)

Themes supports sequence diagrams too (details see new section in Themes.md)

It can be tested via my extended branch

BR Helmut