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 got : max(i : int, j : int) : int
I wish to have : the_max = max (52, 12)
What am I doing wrong ?
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.
I want to do the same thing as Albert.
I’m using v5.3 build sp3_20061111.
Is it possible today ? (I don’t reach to do it).
Please right-click on the diagram and select Presentation Options > Show Message Operation Signature from the popup menu.
This should be what you are looking for.
Hi Jick, thanks.
…but I already did that.
var := operation(param)
(var is a String variable)
So I’m looking for getting the return value into a variable…
Thank you for your reply. I am going to discuss your suggestion with our engineers.
What you requested is supported. Please download the patch at:
To install the patch:
- 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.
Thank you very much Jick, this feature is very useful for my university and me!
But… I’m not yet completely satisfied. :shock:
var = operation(param): String
var = operation(param)
The return type is useless in this case, there’s no sense to show it if we show the return variable.
Please, could you discuss this with your engineers?
PS: very nice reactivity, congratulations!
Thanks for your feedback. I have passed your comment on to our engineers. I will let you know about their reply.
Another patch has been released to fix the problem of showing return type. Please download at:
Please follow the steps I posted before to apply this patch.
Thanks Jick, it works like a charm now.
Nice job VP!
You are welcome. Just feel free to contact us again if there are any suggestion.
Just to let you know that a new version is released (a week ago). Since you were asked to install a patch, I suggest you use the latest complete release, which can be downloaded at:
Have a nice weekend!