Arguments in sequence diagrams

How can I enter the arguments to a call message (or similar) in a sequence diagram?

E.g. I’d like to be able to see a call like this

add(4)
-------------->

I can see a Presentation Option for showing the arguments (Show Arguments in Message Operation Signatures), but how can I actually enter the arguments themselves?

I’m sure I could do this in an earlier version. We are now at version 8.2.

Thanks,
Theo

Hi Theodore ,

Thank you for your post. You can only show arguments for message associated with operation that require parameter(s).

  1. Double click on a message and select its operation. In order to do this, make sure the target lifeline has classified defined, and that classifier has operations defined.

  2. Open the specification of sequence message.

  3. Click “…” at the Action Type field

  4. Open the Arguments tab

  5. Click Add to add argument. The arguments added here follows the order of parameters defined in the operation. If you need to add arguments for operation login(name, password), you may add arguments ‘john’ and ‘mypassword’ instead of ‘mypassword’ and ‘john’. And of course, it is pointless to add three arguments while the operation takes just 2 parameters.

  6. Close the windows by clicking OKs

Now, you can see the arguments.

Hope this help. Please feel free to post again if you have any questions.

Best regards,
Jick Yeung

1 Like