|
| 1 | +# C4C Diagrams |
| 2 | + |
| 3 | +**Edit this Page** [](https://github.com/mermaid-js/mermaid/blob/develop/docs/gitgraph.md) |
| 4 | +> C4 Diagram: This is an experimental diagram for now. The syntax and properties can change in future releases. Proper documentation will be provided when the syntax is stable. |
| 5 | +
|
| 6 | + |
| 7 | + |
| 8 | +Mermaid's c4 diagram sytax is compatible with plantUML. See example below: |
| 9 | + |
| 10 | +```mermaid-example |
| 11 | + C4Context |
| 12 | + title System Context diagram for Internet Banking System |
| 13 | +
|
| 14 | + Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") |
| 15 | + Person(customerB, "Banking Customer B") |
| 16 | + Person_Ext(customerC, "Banking Customer C") |
| 17 | + System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") |
| 18 | +
|
| 19 | + Person(customerD, "Banking Customer D", "A customer of the bank, <br/> with personal bank accounts.") |
| 20 | +
|
| 21 | + Enterprise_Boundary(b1, "BankBoundary") { |
| 22 | +
|
| 23 | + SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") |
| 24 | +
|
| 25 | + System_Boundary(b2, "BankBoundary2") { |
| 26 | + System(SystemA, "Banking System A") |
| 27 | + System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") |
| 28 | + } |
| 29 | +
|
| 30 | + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") |
| 31 | + SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") |
| 32 | +
|
| 33 | + Boundary(b3, "BankBoundary3", "boundary") { |
| 34 | + SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") |
| 35 | + SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") |
| 36 | + } |
| 37 | + } |
| 38 | +
|
| 39 | + BiRel(customerA, SystemAA, "Uses") |
| 40 | + BiRel(SystemAA, SystemE, "Uses") |
| 41 | + Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") |
| 42 | + Rel(SystemC, customerA, "Sends e-mails to") |
| 43 | +
|
| 44 | +
|
| 45 | +``` |
| 46 | + |
0 commit comments