Author Topic: Sequence diag : show param & argument on msg  (Read 3041 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1374
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Sequence diag : show param & argument on msg
« on: August 28, 2012, 06:49:43 pm »
Hi

I need to show on a sequence diagram both the Parameters and Values in a message sent, by invoking an operation

Currently I have  :
SetName (name : String, firstname : String) if the Arguments field is empty.
SetName (Martin, Bob) if the Params & Arguments fields are not empty.

Is there a way to show on the message :
SetName (name : String = Martin, firstname : String = Bob)  ?

thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Sequence diag : show param & argument on msg
« Reply #1 on: August 28, 2012, 08:37:22 pm »
No I don't think that is possible, but I could be wrong.

Geert

HGrün

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Sequence diag : show param & argument on m
« Reply #2 on: August 28, 2012, 09:09:42 pm »
I use to atach a NOTE on the sequence message to describe parameters values.
« Last Edit: August 28, 2012, 09:10:11 pm by hilario.grun »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1374
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Sequence diag : show param & argument on m
« Reply #3 on: August 28, 2012, 10:04:22 pm »
Ok thanks for your answers - the notes seems to be a good option for the values.

If I need to specify the parameters name and type of an operation on each message, here is what I currently do :
- if the operation exists in the lifelines's classifier, the Message properties are automatically populated as follows (once the operation has been selected) :
  * Message = test(String, String), and Parameters = firstname, lastname
- if my lifeline has no such operation defined, I currently set Message = SetName, and Parameters = firstname :String, lastname :String

Although it displays fine on the diagram, is it the right way to do it?
Would it be possible to have a feature to copy this operation to the lifeline's classifier, if one has been set?

Thanks
« Last Edit: August 28, 2012, 10:07:06 pm by gfuk »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com