Displaying return value of an operation in animated sequence diagram

To show the return value of a function as a reply message in an animated sequence diagram, you can use one of a number of predefined macros within the code of your function. This means that the return value for your function visually displays as a reply message on your sequence diagram. The same is true for a trace of a function.

About this task

Note: This feature is not supported in IBM® Rational® Rhapsody® Developer for Java.

The following figure shows an animated sequence diagram that draws a return value.

Animated sequence diagram that draws a return value

You can use any of the following macros depending on your situation:

Even if you choose not to embed these macros in your application, you can still see animated return values by explicitly calling an operation through the Operations window. To call an operation, click the Call operations tool on the Animation toolbar.


Feedback