Author Topic: How to bind a return value to an enumeration in a sequence diagram?  (Read 1029 times)

Mekugi

  • EA Novice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
In sequence diagrams, it looks like it is not possible to bind the return value of a message to an enumeration attribute with EA 12.0.

For example:

typedef enum {
  VALUE1,
  VALUE2
} MyEnum;

MyEnum getMyEnum(void);

In the sequence diagram, some actor calls getMyEnum(), which returns VALUE1.

Although it is possible to specify the return value VALUE1 in the message dialog, I did not find a syntax to link it to the actual attribute value in MyEnum, so that if VALUE1 is renamed in MyEnum, the diagram gets automatically modified (the same way as if the method name itself was modified).


qwerty

  • EA Guru
  • *****
  • Posts: 9426
  • Karma: +150/-138
  • I'm no guru at all
    • View Profile
Re: How to bind a return value to an enumeration in a sequence diagram?
« Reply #1 on: February 11, 2016, 12:55:50 am »
I think that you can use only the manual way since there is no stored link in EA. It's just a string value.

q.