Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Guillaume 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
-
No I don't think that is possible, but I could be wrong.
Geert
-
I use to atach a NOTE on the sequence message to describe parameters values.
-
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