This exercise explores different methods of adding or binding arguments to the pattern instance.
When binding occurs, the pattern instance's template parameters are replaced by the selected or newly created elements specified by the pattern applier.
Whether you select existing elements or create new elements as arguments depends on what you want the pattern to do. In this tutorial, different methods are explored so that you can learn about them.
On the freeform or class diagram, you can use the action bar to add elements. To see the action bar, gently move the cursor over the blank diagram view surface or any elements. You can hold the cursor over the template parameters in the pattern instance to display the action bar with only the elements that are applicable to the UML type of the template parameter.
If the action bar disappears in a few seconds, tap the spacebar to re-display it.
Before you begin, you must complete Exercise 4: Creating an instance of the pattern.
You are ready to learn two more methods of adding arguments to a pattern instance so go to Exercise 6: Binding existing elements as arguments.