Skip to content

Add technology to sequence diagrams when using StructurizrPlantUMLExport #426

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final Collection<Diagram> export(Workspace workspace) {
throw new IllegalArgumentException("A workspace must be provided.");
}

Collection<Diagram> diagrams = new ArrayList<>();
Collection<Diagram> diagrams = new ArrayList<>() ;

for (CustomView view : workspace.getViews().getCustomViews()) {
Diagram diagram = export(view);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,14 @@ protected void writeRelationship(ModelView view, RelationshipView relationshipVi
}

writer.writeLine(
String.format("%s %s[%s]%s %s : %s",
String.format("%s %s[%s]%s %s : %s%s",
idOf(relationship.getSource()),
arrowStart,
style.getColor(),
arrowEnd,
idOf(relationship.getDestination()),
description));
description,
(StringUtils.isNullOrEmpty(technology) ? "" : "\\n<color:" + style.getColor() + "><size:8>[" + technology + "]</size>")));
} else {
boolean solid = style.getStyle() == LineStyle.Solid || false == style.getDashed();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ participant "Single-Page Application\n<size:10>[Container: JavaScript and Angula
participant "Sign In Controller\n<size:10>[Component: Spring MVC Rest Controller]</size>" as InternetBankingSystem.APIApplication.SignInController <<InternetBankingSystem.APIApplication.SignInController>> #85bbf0
participant "Security Component\n<size:10>[Component: Spring Bean]</size>" as InternetBankingSystem.APIApplication.SecurityComponent <<InternetBankingSystem.APIApplication.SecurityComponent>> #85bbf0
database "Database\n<size:10>[Container: Oracle Database Schema]</size>" as InternetBankingSystem.Database <<InternetBankingSystem.Database>> #438dd5
InternetBankingSystem.SinglePageApplication -[#707070]> InternetBankingSystem.APIApplication.SignInController : Submits credentials to
InternetBankingSystem.SinglePageApplication -[#707070]> InternetBankingSystem.APIApplication.SignInController : Submits credentials to\n<color:#707070><size:8>[JSON/HTTPS]</size>
InternetBankingSystem.APIApplication.SignInController -[#707070]> InternetBankingSystem.APIApplication.SecurityComponent : Validates credentials using
InternetBankingSystem.APIApplication.SecurityComponent -[#707070]> InternetBankingSystem.Database : select * from users where username = ?
InternetBankingSystem.APIApplication.SecurityComponent <-[#707070]- InternetBankingSystem.Database : Returns user data to
InternetBankingSystem.APIApplication.SecurityComponent -[#707070]> InternetBankingSystem.Database : select * from users where username = ?\n<color:#707070><size:8>[SQL/TCP]</size>
InternetBankingSystem.APIApplication.SecurityComponent <-[#707070]- InternetBankingSystem.Database : Returns user data to\n<color:#707070><size:8>[SQL/TCP]</size>
InternetBankingSystem.APIApplication.SignInController <-[#707070]- InternetBankingSystem.APIApplication.SecurityComponent : Returns true if the hashed password matches
InternetBankingSystem.SinglePageApplication <-[#707070]- InternetBankingSystem.APIApplication.SignInController : Sends back an authentication token to
InternetBankingSystem.SinglePageApplication <-[#707070]- InternetBankingSystem.APIApplication.SignInController : Sends back an authentication token to\n<color:#707070><size:8>[JSON/HTTPS]</size>
@enduml