Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

please add box (and/or participant) nesting ability

+1 vote
Am I able to put box into another box in sequence diagrams?

Could we add box and/or participant nesting?
asked Jun 29 in Wanted features by boshka (1,030 points)
edited Jun 29 by boshka

1 Answer

0 votes

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

answered Jun 29 by mgrol (200 points)
edited Jun 29 by mgrol
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?
I don't know. But I put a vote on your feature request because I also find it handy.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...