embed sub diagrams in diagram like a note

+1 vote
asked Jan 8 in Wanted features by glenflet

I want to be able to write something like this

@startuml

abstract ATest {
  {static} +String id
  {abstract} -void doit()
}

class Test {
  -int count
  -int max
  -int increment
  -void doit()
}

ATest <|-- Test

subdiagram right of  Test::doit
    start

    while (count < max?)
      :count = count + increment;
    endwhile
    
    stop
end subdiagram
@enduml

such that it would draw something like

image

but with the activity diagram

image

in the note rather than the code to define the activity diagram.

I would like this to work for any set of diagrams (in the start/end(uml) block) with unlimited levels of nesting, but am currently only looking to embed activity diagrams in class diagrams.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...