Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support stereotypes in context diagrams #53

Closed
marcelstoer opened this issue Apr 21, 2020 · 3 comments
Closed

Support stereotypes in context diagrams #53

marcelstoer opened this issue Apr 21, 2020 · 3 comments
Labels
wontfix This will not be worked on

Comments

@marcelstoer
Copy link

marcelstoer commented Apr 21, 2020

Contrary to component and container diagrams the context diagrams don't support a fourth parameter for systems and persons: https://github.com/RicardoNiepel/C4-PlantUML/blob/master/C4_Context.puml

As per http://static.codingthearchitecture.com/visualising-software-architecture.pdf systems and persons can have stereotypes (those [] beneath the label).

@adrianvlupu
Copy link
Member

Context diagrams don't support technologies because the entities can either be a system or a person.
The equivalent of those [] beneath the label in the pdf are the plantuml stereotypes

@marcelstoer marcelstoer changed the title Support technologie in context diagrams Support stereotypes in context diagrams Apr 25, 2020
@stale
Copy link

stale bot commented Nov 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 22, 2020
@stale stale bot closed this as completed Nov 29, 2020
@kirchsth
Copy link
Contributor

kirchsth commented Jan 3, 2021

@marcelstoer: I think my PR #107 should solve your requirements. You could check it via my local branch https://github.com/kirchsth/C4-PlantUML.
E.g.
Entities can be decorated with tags and explained via dynamic calculated legends, for example:

@startuml
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml

AddTagSupport("v1.0", $borderColor="#d73027")
AddTagSupport("v1.1", $fontColor="#d73027")

Person(user, "Customer", "People that need products")
Person(admin, "Administrator", "People that administrates the products via the new v1.1 components", $tags="v1.1")
Container(spa, "SPA", "angular", "The main interface that the customer interacts with via v1.0", $tags="v1.0")
Container(spaAdmin, "Admin SPA", "angular", "The administrator interface that the customer interacts with via new v1.1", $tags="v1.1")
Container(api, "API", "java", "Handles all business logic (incl. new v1.1 extensions)", $tags="v1.0+v1.1")
ContainerDb(db, "Database", "Microsoft SQL", "Holds product, order and invoice information")

Rel(user, spa, "Uses", "https")
Rel(spa, api, "Uses", "https")
Rel_R(api, db, "Reads/Writes")
Rel(admin, spaAdmin, "Uses", "https")
Rel(spaAdmin, api, "Uses", "https")

SHOW_DYNAMIC_LEGEND()
@enduml

tags

Best regards
Helmut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
Status: Done
Development

No branches or pull requests

3 participants