Diagram in a Note Function

0 votes
asked Sep 11 in Question / help by kjw

Extending the idea of a diagram in a note the last line doesn't give an error but doesn't produce a diagram either.

@startuml

'!definelong OBJ { class Object {

' name : token

' name : flag

' }

'}

'!enddefinelong

!unquoted function OBJ() 

   class Object {

        name : token

        name : flag

    }

!endfunction

component "C1" as C1 {

        note "{{\nparticipant MyA as A\nA->>B: prepare\n}}\n" as detailsNote1  

   }

note "{{\nparticipant MyA as A\nA->>B: prepare\n}}\n" as detailsNote2  

   note "{{\nclass Object {\n name : token\n name : flag\n}\n}}\n" as detailsNote3

   'note %invoke_void_func(OBJ()) as detailsNote4

   

@enduml

1 Answer

0 votes
answered Sep 11 by plantuml (207,620 points)
commented Sep 12 by kjw

Thanks !

Rendering of the Class Object is different is this intended ?

@startuml

!unquoted function OBJ() 

   class Object {

        name : token

        name : flag

    }

!endfunction

   note "{{\nclass Object {\n name : token\n name : flag\n}\n}}\n" as detailsNote3

   note "%retrieve_void_func('OBJ')" as detailsNote4

@enduml

PlantUML Diagram

...