4

Can anyone tell me how to design UML's Object Node in PlantUml ? According to the UML's v2.5 spec (section 15.2.4), Object Nodes are supposed to be square, while the regular and most used Action Nodes are squircles.

enter image description here

All I can find in the PlantUml documentation is how to display all the Action Nodes octagon ...

I'm working with the PlantUml's v1 activity grammar :

@startuml
(*) --> "First Action Node"
--> "HERE I WANT AN OBJECT NODE"
--> "Last Action Node"
--> (*)
@enduml
Jean Bob
  • 565
  • 10
  • 24

1 Answers1

6

I think this is only achievable with the new Activity diagram syntax (still beta), in which you can do:

@startuml
start
:First Action Node;
:HERE I WANT AN OBJECT NODE]
:Last Action Node;
stop
@enduml

Result:

enter image description here

zb226
  • 9,586
  • 6
  • 49
  • 79
  • 1
    Yes I ended using the new PlantUml's v2 activity grammar. Even if it's working fine for me right now, please note this still is a beta version. Also, I dont need Graphviz installed anymore. – Jean Bob Jan 27 '16 at 15:20
  • I don't actually see any reference to the object node notation in the link you posted, but nonetheless, you solved my problem. – Mark Ch Aug 16 '19 at 15:00
  • @MarkCh documentation seems to have changed, but if you look for `i := i + 1` you can still see an example of the object node (i.e. a simple rectangle). – zb226 Aug 19 '19 at 08:05