I've stuck with a small problem designing a class diagram in UML Designer: I can't figure out how to specify a return type for an operation. There is no information about it on UML Designer home site and it's guides. I've tried to explore operation and parameter settings but have found nothing (new parameter creation picture, parameter settings picture, advanced operation settings picture). Can anyone help me, please?
How to specify an operation return type in UML Designer?
2.4k Views Asked by SchwarzesHertz At
2
There are 2 best solutions below
1
On
Add a parameter to the function and select Return in the Direction item under its properties.
- From the Model Explorer, find the function for which you want to define a return value.

- Select the parameter prepared as a return value from among them.
- There is a direction in the advance of the property tab.

You get the following result:

I didn't find a way to define a return value type explicitly, but the following workaround:
Btw, I didn't find a difference between the two types of parameters (input vs. return value) in the edit window of an operation parameter, so I think this workaround is the only way to define a return value type of operation.