In collaboration and sequence diagrams, I can’t get the return value and operation parameters to appear with a call message. Is there a way to display them ,other than choosing another message type (send for example) and writing them by hand in the message name ?
In order to display the operation signature, you need to assign an operation to the call message. To do this, change the message type to “Call”, then right-click on it and select “Select Operation”. You may find that this menu item is disabled, this is because the “to” end LifeLine has not been assigned a base classifier to it. To assign a base classifier to the LifeLine, right-click on it and select “Select Class”.
In fact, this is what I had already done. And I obtained the display of the operation signature but I could not instanciate the parameters and name the variable that will store the return value.
i.e. :
I got : max(i : int, j : int) : int
I wish to have : the_max = max (52, 12)
Sorry for misunderstanding your question. The feature you mentioned is currently not supported in VP-UML, but I do think it is a useful feature and I have forwarded your request to our development team. Thank you for your suggestion.
Shutdown VP-UML (or any running product) if it is running
Replace $vp-suite-install-dir/lib/vpplatform.jar with the downloaded one
Restart VP-UML
To show the message in the way you required:
Adjust presentation options
i) Right-click on the Sequence Diagram and select Presentation Options | Show Message Operation Signature
ii) Right-click on the Sequence Diagram and deselect Presentation Options | Show Parameter Names in Message Operation Signatures
Entering the detail
i) Set a message to use Call message with an operation with params
ii) Open the call action specification and enter the args (Enter N args for N params)
iii) Enter the return value in the message specification
Hope this helps. I will post again when a complete release is ready. Please feel free to let me know if there are any comments about this change.