Please provide a bracket syntax to add custom labels in deployment diagrams

0 votes
asked May 6, 2016 in Closed feature request by anonymous

Please provide a bracket syntax to add custom labels in deployment diagrams.

Example:

@startuml
node node_foo as "foo"
node node_bar as "node_foo" {
 artifact node_bar_ar1 as "ar1"
}
@enduml

The same as:

@startuml
node node_foo [
  foo
]
node node_bar as "node_foo" {
artifact node_bar_ar1 [
  ar1
]
}
@enduml

1 Answer

0 votes
answered May 8, 2016 by plantuml (294,960 points)
selected Jul 7, 2018 by Anthony-Gaudino
 
Best answer

In last beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can use [ and ] for using some custom label.

For example, you can have:

@startuml
node bar {
artifact foo1 [
foo
foo2
]
node node2 [
this
is
a
node
]
}
@enduml

Is this what you are looking for ?

This has not been highly tested, so feed back welcome!

commented Jul 6, 2021 by jean (120 points)
It looks like it isn't possible to use both {} and [] together on an element, is that correct?
...