please add box (and/or participant) nesting ability

+16 votes
asked Jun 29, 2017 in Wanted features by boshka (3,940 points)
edited Jun 29, 2017 by boshka
Am I able to put box into another box in sequence diagrams?

Could we add box and/or participant nesting?
commented May 3, 2019 by skulkrik (100 points)
I would also find this very helpful, to be able to group participants in a nice way.
commented Sep 2, 2021 by tilburgr (180 points)
I would consider it also as a MUST have to nest boxes in other boxes however maybe this nested box should only be shown as a box around the participants only. It is not required in my humble opinion to expand this nested box vertically over the complete message sequence. In this nested box it should also be possible to have additional nested boxes ... I would consider a maximum of 3 or 4 nested boxes in each other ....

2 Answers

0 votes
answered Jun 29, 2017 by mgrol (3,150 points)
edited Jun 29, 2017 by mgrol

Hi,

do you mean something like this?

@startuml
a -> b
group first box
b -> c
group second box
c -> a
a --> c
group third box
c -> c
end group
c -> a
end group
c --> b
end group
a -> c
@enduml

 example

 

Update: As you changed the topic and content of your question... multiple boxes to group participants are not (yet) possible.

BR,

Michael

commented Jul 3, 2017 by boshka (3,940 points)
edited Jul 3, 2017 by boshka
yes, basiacally what I am looking for are nested boxes and nested participants in an arbitrary order:

box "b1"
     participant "b1_p1"
     box "b1_b1"
           participant "b1_b1_p1"
     end box
end box

And, the same for participant:

participant "p1"
      participant "p1_p1"
      end participant

      box "p1_b1"
            participant "p1_b1_p1"
            end participant

            box "p1_b1_b1"
            end box
      end box

end participant

Are there any plans to support this?
commented Jul 17, 2017 by mgrol (3,150 points)
I don't know. But I put a vote on your feature request because I also find it handy.
+1 vote
answered Aug 5, 2019 by RUSH (140 points)

There is already issue opened at github.

...