Cannot put an activity diagram into a package.

0 votes
asked Jul 11, 2019 in Wanted features by lockywolf (400 points)

I need to (as UML sort of agrees is possible) to set a boundary for a diagram. I intend to do this with a package.

My WE is the following:

#+begin_src plantuml :export both :file figure5-1-3.png
allow_mixing
skinparam monochrome true
skinparam packageStyle rectange
title System
rectangle " " as pP3 {
(*) -> "one"
"one" -> (*)
}
caption Use Case Scenario
#+end_src

Could this be possibly implemented in the future?

1 Answer

0 votes
answered Oct 28, 2020 by The-Lu (64,340 points)

Hello L.,

To put activity diagram into a package, you must to use sub-diagram (See also QA-6947) with '{{' and '}}', as:

@startuml
skinparam monochrome true
title System
rectangle pP3 [
{{
(*) -> "one"
"one" -> (*)
}}
]
caption Use Case Scenario
@enduml


[See on PlantUML server]

If that can help,
Regards,
Th.

commented Oct 29, 2020 by Martin

Alternative at top level is to use "mainframe":

...