According to the documentation, it is possible to use ref frames to reference subdiagrams. However, despite searching very thoroughly I feel like I must be missing something:I can't find the proper way to declare the subdiagram to be referenced! According to the UML reference I have and multiple pages I've seen online (example:
https://www.ibm.com/developerworks/rational/library/3101.html#N101C6) the sequence diagram being referenced should be enclosed in a frame labeled "sd NameOfDiagram". I haven't found a good way to do this though.
Some things that I've tried
(Maybe it's an undocumented feature)
sd NameOfDiagram
Alice -> Bob: sendMessage
Bob -> Alice: sendResponse
end
Syntax error
(Well, maybe I can just use the custom frame)
group sd NameOfDiagram
Alice -> Bob: sendMessage
Bob -> Alice: sendResponse
end
Close! But the actors are declared outside the frame, rather than inside it.
Well, maybe I just declare it as a folder
folder "sd NameOfDiagram" {
Alice -> Bob: sendMessage
Bob -> Alice: sendResponse
}
Well, everything's inside the folder, but that's a class diagram now, not a sequence diagram!
ARGH!