开发者

uml 2.0 sequence diagram: is a reply message obligatory when modeling a synchronous message

开发者 https://www.devze.com 2022-12-14 19:45 出处:网络
i have found some articles on uml sequence diagrams, which mention a reply message would be optionally, but i could not find any hint to confirm this in the 2.2 uml super structure specification. mayb

i have found some articles on uml sequence diagrams, which mention a reply message would be optionally, but i could not find any hint to confirm this in the 2.2 uml super structure specification. maybe someone who is familiar with that spec could answer the question and give me a hint in which part of the uml superstructu开发者_StackOverflow社区re documentation i could find a definitive answer on this question.

thanks a lot in advance.

thomas


Sounds like it is in fact optional.

From Pg. 495 (pdf page 511) of the pdf at OMG v 2.2 Superstructure:

If the Message represents a CallAction, there will normally be a reply message from the called Lifeline back to the calling lifeline before the calling Lifeline will proceed.

Here again, they use the text normally hinting that it's not required at all.


If the message is synchronous, the expected behavior is that calling process will wait for the reply mesaage. The decision to show it in the diagram may be optional, although diagram would become confusing.

0

精彩评论

暂无评论...
验证码 换一张
取 消