< Previous | Next >

Lesson 3: Add parameters to the pattern template

In this lesson, you will add parameters to a pattern template using the Patterns Authoring view.
Before you begin, you must complete Lesson 2: Create the new pattern.

If you would like to view this exercise before you perform the steps, click:

To add parameters to a pattern:

  1. To add a parameter to the pattern template, right-click the new pattern that was added in Lesson 2 and that is now displayed in the Pattern Authoring view.
  2. Select New Parameter. The New Pattern Parameter window opens.
    1. Type the name of the parameter on the General page, in the Name field.
    2. Click Browse to select the UML type for the parameter. The Parameter Type window opens.
    3. Select the type of your parameter and click OK.
    4. Select the multiplicity value on the General page, in the Multiplicity field.
    5. Click OK.
The new parameter is displayed in the Pattern Authoring view.
You are ready to add new functionality to the pattern.
< Previous | Next >

Feedback