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
skinparam monochrome true
skinparam packageStyle rectange
title System
rectangle " " as pP3 {
(*) -> "one"
"one" -> (*)
caption Use Case Scenario

Could this be possibly implemented in the future?

1 Answer

0 votes
answered Oct 28, 2020 by The-Lu (45,820 points)

Hello L.,

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

skinparam monochrome true
title System
rectangle pP3 [
(*) -> "one"
"one" -> (*)
caption Use Case Scenario

[See on PlantUML server]

If that can help,

commented Oct 29, 2020 by Martin

Alternative at top level is to use "mainframe":