Specifying arguments for pattern instances

You add argument values to a pattern instance in the Model Explorer view or in the diagram editor by using the Pattern Parameters page of the Apply Pattern wizard. In the diagram editor, you can also use drag and drop gestures to specify values.

Before you can specify arguments for a pattern's parameter, you need to add a pattern instance to a UML 2.0 model in the Model Explorer view or to its freeform or class diagram editor.

You can specify arguments for multiple concurrent instances of the same pattern. An argument value can participate in more than one instance. Specifying values is a dynamic process: each argument is immediately bound to the parameter and the pattern's expansion instructions are invoked to perform the intended modifications to your model. There is no parameter sequence to follow however, the pattern design may require that certain argument values be supplied before complete expansion can occur. Consult the pattern documentation if you have any questions.

Some options to create the pattern instance also specify an argument at the same time.

The following list represents the ways you can specify arguments:

To specify argument values for a pattern instance, do one of the following steps:

Related concepts
Apply pattern process
Pattern instantiation
Related tasks
Using the Apply Pattern wizard
Using drag and drop
Modifying pattern instances
Reviewing pattern information
Setting pattern preferences
Importing patterns
Related reference
Pattern icons
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.