Example: Specifying a Model Action

The Model action lets a framework user (add or) create one or more models of the specified kind in the node or cell. The model will be displayed in the Browser under the project node and as a document in the node or cell to which it has been attached.

In the following example, we will specify an action in a framework diagram node that enables the user to create one or more Java OOMs with the EJB 3.0 xem attached.

  1. Double-click a framework node to open its property sheet, and click the Actions tab.
  2. Click the Add a Row tool to create a new action, and double-click it to open its property sheet.
  3. On the General tab, enter "Detailed object model" in the Name field.
  4. Select the Multiple check box to specify that more than one OOM can be attached to the node.
  5. Click the Detail tab, and specify the following properties in the fields (see Framework Action Property Sheet Detail Tab):

    Property

    Select or enter

    Type

    Model

    Default document name

    Java Model

    Model type

    Object-Oriented Model

    Document template

    Leave blank

    Model language

    Java

    Diagram type

    Class Diagram

    Extended model definition

    EJB3.0



  6. Click OK to close the action and node property sheets and return to the framework diagram.

    The Model action is now available for use by framework diagram users (see Attaching a Document to a Framework Node and Cell).