Setting the default values of parameters

In UML models, you can specify the default value that a parameter is assigned if an operation is called without being passed explicit parameter values.

Before you begin

You must be in the Modeling perspective and the model must contain an operation that has at least one parameter.

About this task

To set the default value of a parameter:

Procedure

  1. In the diagram editor, click an operation.
  2. In the Properties view, click the Parameters tab.
  3. In the Default Value column of the table, select a value from the list.

What to do next

Note: You can add a new parameter for the operation by clicking Insert new parameter icon and selecting a value from the Default Value list.

Feedback