I am trying to display the arguments in a sequence diagram using staruml

Is it possible to display the arguments like this?

      1: saveResult(int value)
有帮助吗?

解决方案

  1. Go to Toolbox -> Sequence -> Stimulus.
  2. Drag from one object to another to create the stimulus line
  3. On the side you should see the Properties for the call
  4. In Name put the method name, i.e. saveResult
  5. In the Detail section you can specify arguments. Put the arguments there, i.e. int value
  6. If the arguments don't appear then change the properties of the Sequence Diagram. Change MessageSignature to NAMEANDTYPE

enter image description here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top