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:
- 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.
- Select New Parameter. The New Pattern Parameter
window opens.
- Type the name of the parameter on the General page,
in the Name field.
- Click Browse to select the UML type for
the parameter. The Parameter Type window opens.
- Select the type of your parameter and click OK.
- Select the multiplicity value on the General page,
in the Multiplicity field.
- Click OK.
The new parameter is displayed in the Pattern Authoring view.
You are ready to add new functionality to the pattern.