|
| 1 | +@startuml |
| 2 | +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally |
| 3 | +!if %variable_exists("RELATIVE_INCLUDE") |
| 4 | + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml |
| 5 | +!else |
| 6 | + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml |
| 7 | +!endif |
| 8 | + |
| 9 | +' default header Property, Value |
| 10 | +AddProperty("Name", "Flash") |
| 11 | +AddProperty("Organization", "Zootopia") |
| 12 | +AddProperty("Tool", "Internet Explorer 7.0") |
| 13 | +Person(personAlias, "Label", "Optional Description (with default property header)") |
| 14 | + |
| 15 | +SetPropertyHeader("Property","Value", "Description") |
| 16 | +AddProperty("Prop1", "Value1", "Details1") |
| 17 | +AddProperty("Prop2", "Value2", "Details2") |
| 18 | +Deployment_Node_L(nodeAlias, "Label", "Optional Type", "Optional Description (with custom property header)") { |
| 19 | + |
| 20 | + WithoutPropertyHeader() |
| 21 | + AddProperty("PropC1", "ValueC1") |
| 22 | + AddProperty("PropC2", "ValueC2") |
| 23 | + Container(containerAlias, "Label", "Technology", "Optional Description (without property header)") |
| 24 | +} |
| 25 | + |
| 26 | +SetPropertyHeader("Property") |
| 27 | +AddProperty("Value1") |
| 28 | +AddProperty("Value2") |
| 29 | +System(systemAlias, "Label", "Optional Description\n(single column property)") |
| 30 | + |
| 31 | +' starting with v.2.5.0 relationships support properties too |
| 32 | +WithoutPropertyHeader() |
| 33 | +AddProperty("PropC1", "ValueC1") |
| 34 | +AddProperty("PropC2", "ValueC2") |
| 35 | +Rel(personAlias, containerAlias, "Label", "Optional Technology", "Optional Description") |
| 36 | +@enduml |
0 commit comments