Skip to content

Instantly share code, notes, and snippets.

@simonbrowndotje
Created June 22, 2018 15:34
Show Gist options
  • Save simonbrowndotje/7135acf75bfdb39d290685efbc480e34 to your computer and use it in GitHub Desktop.
Save simonbrowndotje/7135acf75bfdb39d290685efbc480e34 to your computer and use it in GitHub Desktop.
Structurizr for Java - DotWriter example
# Class diagram Internet Banking System - System Context
digraph G {
graph [labelloc=top,label="Internet Banking System - System Context",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
c0 [label="Personal Banking Customer"]
c1 [label="Internet Banking System"]
c2 [label="Mainframe Banking System"]
c3 [label="E-mail System"]
// null
c1 -> c2 [label="Uses" , ];
// null
c0 -> c1 [label="Uses" , ];
// null
c3 -> c0 [label="Sends e-mails to" , ];
// null
c1 -> c3 [label="Sends e-mail using" , ];
}
# Class diagram Internet Banking System - Containers
digraph G {
graph [labelloc=top,label="Internet Banking System - Containers",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
subgraph cluster_c0 {
label = "Internet Banking System";
c3 [label="Single-Page Application"]
c4 [label="Mobile App"]
c6 [label="Web Application"]
c7 [label="API Application"]
c8 [label="Database"]
}
c1 [label="Personal Banking Customer"]
c2 [label="Mainframe Banking System"]
c5 [label="E-mail System"]
// null
c7 -> c8 [label="Reads from and writes to" , ];
// null
c6 -> c3 [label="Delivers" , ];
// null
c3 -> c7 [label="Uses" , ];
// null
c4 -> c7 [label="Uses" , ];
// null
c7 -> c5 [label="Sends e-mail using" , ];
// null
c7 -> c2 [label="Uses" , ];
// null
c5 -> c1 [label="Sends e-mails to" , ];
// null
c1 -> c6 [label="Uses" , ];
// null
c1 -> c3 [label="Uses" , ];
// null
c1 -> c4 [label="Uses" , ];
}
# Class diagram Internet Banking System - API Application - Components
digraph G {
graph [labelloc=top,label="Internet Banking System - API Application - Components",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
subgraph cluster_c0 {
label = "API Application";
c4 [label="Sign In Controller"]
c5 [label="Accounts Summary Controller"]
c6 [label="Security Component"]
c8 [label="Mainframe Banking System\l Facade"]
}
c1 [label="Mainframe Banking System"]
c2 [label="Single-Page Application"]
c3 [label="Mobile App"]
c7 [label="Database"]
// null
c3 -> c4 [label="Uses" , ];
// null
c4 -> c6 [label="Uses" , ];
// null
c3 -> c5 [label="Uses" , ];
// null
c5 -> c8 [label="Uses" , ];
// null
c6 -> c7 [label="Reads from and writes to" , ];
// null
c8 -> c1 [label="Uses" , ];
// null
c2 -> c5 [label="Uses" , ];
// null
c2 -> c4 [label="Uses" , ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment