Plantuml is bloody awesome !!!
I was about to ask why can't sequence diagrams a have notes with diagrams in them as raised in
https://forum.plantuml.net/10128/diagram-in-a-note-function
A bit of fiddling and boom!!!
Just the consistency of the syntax of notes across the diagrams would be good
Bringing the single line connection would be great as per : https://forum.plantuml.net/10149/how-to-connect-a-note-to-a-single-class-with-a-dashed-line if they could be pointed to the message arrows in sequence diagrams - will add the ask as a comment for clarity in this section
http://www.plantuml.com/plantuml/png/PP5FY-904CNlzIdAmw8USjZrpq4MKG-xiB08ih2NWBJfSinCMnMxgmK9-UwJFmR2c5kzt-jNrCicgF4QhmvW5FaMHSdYENAckJ3kTtycKoXBGCJCcH1mVtgdJB5Lse_DbN25AX_4NyMpCs-jLa5LmOZOzia09bFn-4laEvmaiZN-qKm_81DMBwuPPa2ikRPW3jQeEPb0pRIeRSvHcnKQOGbD52RhDgJU_K-mpnsYMOUUIuPatf7dnWFT8WM52uiIofryx_alqLdyxSaegjH6jZLCsN1VJiwebu3DInY_l2_Bb0lZDS_omh3YtySMJS1jojjalTwjiF1KSqgvgb96U0duvabzJdSwtYMtnwRIoRZ-K-DfTyxF91dSq_Lye5081neUlEWCVQr3jEpGe6E03R6DL_S9
@startuml
!unquoted function OBJ()
{{
class Object {
name : token
name : flag
}
}}
!endfunction
actor Foo1
boundary Foo2
control Foo3
entity Foo4
database Foo5
collections Foo6
Foo1 -> Foo2 : To boundary
Foo1 -> Foo3 : To control
Foo1 -> Foo4 : To entity Request
hnote over Foo4 : Would Great to Render \nan Object in this note
'note over Foo4 : {{\nparticipant MyA as A\nA->>B: prepare\n}}\n
note over Foo4 : %retrieve_void_func('OBJ')
Foo1 <-- Foo4 : To actor Response
Foo1 -> Foo5 : To database
Foo1 -> Foo6 : To collections
@enduml