How to have a box in Activity Diagram

0 votes
asked Apr 26, 2020 in Question / help by MineralUML (280 points)

How can I have a box in an Activity Diagram?

I figure I'm just missing something, but I can't figure it out.

I have tried all the "skinparam activityShape" 's I can think of based on the documentation, but the only ones I can find in the documentation are "octagon" and "roundBox"

I am trying to have this with sharp corners rather than rounded corners.

@startuml
skinparam monochrome true
skinparam linetype polyline
skinparam linetype ortho

skinparam activityShape rectangle
skinparam activityShape Rectangle
skinparam activityShape square
skinparam activityShape octagon
skinparam activityShape frame
skinparam activityShape cloud
skinparam activityShape roundBox
skinparam activityShape squareBox
skinparam activityShape rectangleBox
skinparam activityShape Box
skinparam activityShape box
skinparam activityShape Square
skinparam activityShape boxBox

(*) -up-> "Step1 : <latex>f(x)</latex>" as Step1
Step1 -right-> Step2
Step2 -down-> (*)
@enduml

http://www.plantuml.com/plantuml/png/XP31JiCm38RlUGfhfmsfGd14qpJn2FG9JEkr4KaSN0VQjyVRBZkGDeSezlVzLkJpf2XQOd3JbqyP1ID4JjoDmf50fT032JwHBfaWSrYi-9UnwCZkWM2d_iVhqeveMAXJJ4EWgl6nQKpV1QMEsV83fog_MAkUxWANlag5I-hVUTxucndR6rYJrjZd2clNLsFHwsGx-wS3D2Kt9zYrIla5tk0OK6a-NVRpuVXyV-y09xXnTxSQySEebhgMh-vsGzFpRxAUpNHdIds9uGy0

Any ideas? Thanks!

1 Answer

0 votes
answered Feb 25, 2021 by Reem Abdel-Rahman
I found this answer here https://stackoverflow.com/questions/33701618/rectangular-object-node-in-activity-diagram and it worked for me.

add your activity in the following way

:Action]

instead of
:Action;

and you will get a rectangle
commented Feb 25, 2021 by Martin (8,360 points)

Yes, you can see the different suffixes here.

commented Feb 25, 2021 by Reem Abdel-Rahman
Awesome! Thank you!
...