Author Topic: How do you show a standard UML return message in a sequence diagram?  (Read 6105 times)

mse

  • EA User
  • **
  • Posts: 303
  • Karma: +1/-0
    • View Profile
I have two lifelines A and B:

Code: [Select]

A ---- message(y) ---> B

A <--- message(y:24)---- B


My question is, how do I get a standard UML value specication as shown in the standard? For example, if there is a variable that is assigned in an argument, it uses a colon character ':', like y:24 showing that the in/out variable was assigned 24. How do I do this in EA?

Here is the exerpt from the standard:

Quote
A reply-message-label is used for reply Messages. It has the following form:

<reply-message-label> ::= [<assignment-target> ‘=’] <message-name>
[‘(’ [<output-argument-list>] ‘)’] [‘:’ <value-specification>]

<output-argument-list> ::= <output-argument> [‘,’<output-argument>]*
<output-argument> ::= <out-parameter-name> ‘:’ <value-specification> |
<assignment-target> ‘=’ <out-parameter-name> [‘:’ <value-specification>]

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How do you show a standard UML return message in a sequence diagram?
« Reply #1 on: August 26, 2021, 02:15:45 am »
I don't think that notation is supported by EA.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How do you show a standard UML return message in a sequence diagram?
« Reply #2 on: August 26, 2021, 03:32:03 am »
Maybe you simply use a plain message for the return. There you can specify the details.

q.

mse

  • EA User
  • **
  • Posts: 303
  • Karma: +1/-0
    • View Profile
Re: How do you show a standard UML return message in a sequence diagram?
« Reply #3 on: August 26, 2021, 09:08:52 pm »
A reply message however would technically need to be defined on the target lifeline, which is not quite what I intend since it's the data that is returned.

Any other alternatives of doing this even if it's an EA-style way?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How do you show a standard UML return message in a sequence diagram?
« Reply #4 on: August 26, 2021, 09:54:17 pm »
We used linked notes back in the day to indicate the values passed in the different parameters.

I haven't used that much SD's in recent years, so I don't know if there are better alternatives by now.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How do you show a standard UML return message in a sequence diagram?
« Reply #5 on: August 27, 2021, 04:50:52 am »
Uhm. I just added a signature to a return message and it appeared (although after some strange EA message - well, EA...). In past EA versions the properties dialog for messages was better in that respect as you needed to close the dialog and the changes were applied. Now you get a crude message :-/

q.