Adding partitions/boxes/groups to object diagram

0 votes
asked Jun 21 in Wanted features by Simon
I would like to be able to group my objects by some kind of category. This would be similar to the package functionality in the Component diagram. Is this possible?

1 Answer

0 votes
answered Jun 21 by Serge Wenger Work (11,980 points)

Hello,

As described in the documentation, you can use the same as class diagram. For example:

@startuml
package "AAA" as  a {
object Object01
object Object02
object Object03
object Object04
}
package "BBB" as b<<Cloud>> {
object Object05
object Object06
object Object07
object Object08
}
Object01 <|-- Object02
Object03 *-- Object04
Object05 o-- "4" Object06
Object07 .. Object08 : some labels
@enduml

http://www.plantuml.com/plantuml/png/NOvD2i8m44RtESL7baABFwsAbDBM0tY6IHi4JOoOPANUtLA8WLaDxrkyUPqFz0hH6l6ayKvN3TdtlGHvWF0MJjtq671Ppdh3UCjunxWIt-mTXc7nggOv6nUdjWNtruptZ0-CZxC_fQ7v54KEIqLOvRLAQmqthxAI-L7wWBByst62TrR3aDB6Yqu_fcZD3m00

...