Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tasks : Editing Models

Editing Models
You can add objects to your business object model or concept model, and edit them, using the Business Object Model Editor.
Adding Diagram Nodes
To create a business object model, you add diagram nodes (Package, Class, Attribute, Primitive Type and Operation) and connect them with Connections (Generalization, Association, Aggregation, and Composition).
You can add diagram nodes and connections in any of the following ways:
If there is a stereotype already applied to your business object mode, the palette contains additional tools to create business objects with the stereotype already applied to them. See UML Profiles and Stereotypes and Applying Stereotypes for more detail about stereotypes.
Similarly, hovering the mouse over a Class displays icons for Attribute and Operation.
The Project Explorer menus list the objects appropriate to the context. For example, if you select a Class and right-click Add Child, the following menu is displayed:
Packages
Packages can be used as containers to organize Classes in your model.
1.
Alternatively you can select the tool and click on the empty part of the business object model diagram.
2.
3.
4.
5.
Opening a Diagram Editor for a Package
If you double-click on a Package header, a new Business Object Model Editor window opens, showing only the contents of that Package. This may be useful if the main editor is too crowded to see the contents of a Package clearly. You may need to re-arrange the contents of the Package in the new editor to make them all clearly visible. If so, start by right-clicking on a blank area of the editor and select the Arrange All option.
The illustration shows a Package Editor window opened on a package named points, in a hypothetical business object model.
This editor is an exact window on the main Business Object Model Editor; any changes made in one window are reflected in the other.
Click the shortcut icon on the badge to return to the main editor.
Classes, Attributes and Operations
1.
2.
3.
In the Properties view for each Attribute, select the Type and specify whether there can be multiple values for the Attribute (whether it is an array). (See Attribute for more information about attribute types and multiplicity). When you specify multiplicity values in the Properties view for Attributes, you can use content assistance. Press Ctrl + space in the field and the available multiplicity values are displayed.
To apply restrictions to your Primitive Type, click the Advanced tab and expand Restrictions. See Setting Restrictions on Primitive Types and Attributes for more information about the restrictions you can set.
4.
5.
6.
In the Properties View for each Class, Attribute or Operation, click the Stereotypes tab to apply any stereotypes you want to apply. See Applying Stereotypes for more information.
Primitive Types
To add a Primitive Type to your business object model, use the Primitive Type tool, drag and drop a Primitive Type on the model and name it.
When you create a Primitive Type, it is always created with a standard type of Text. To select another standard type for the Primitive Type:
1.
In the Properties View for the Primitive Type, select the General tab.
2.
Click to display the Select Type dialog. To display a list of the available types you can set, type ? in the Select Type(s) field. A list of the available standard types is displayed.
3.
From the Matching Items box, select a standard type and click OK.
To apply stereotypes to the Primitive Type, click the Stereotypes tab. See Applying Stereotypes for more information.
To apply restrictions to your Primitive Type, click the Advanced tab and expand Restrictions. See Setting Restrictions on Primitive Types and Attributes for more information about the restrictions you can set.
Creating Connections
Connections indicate the relationships between Classes and include Generalization, Association, Aggregation, and Composition.
Generalization
To create a Generalization between two Classes, do the following:
1.
2.
You can also create a Generalization by clicking Select to populate the Inherits From field on the Properties view of the Class.
3.
In the Properties View for each Association, click the Stereotypes tab to apply any stereotypes you want to apply. See Applying Stereotypes for more information.
Association
To create an Association between two Classes, do the following:
1.
2.
Drag from one Class to the other. This creates a bi-directional Association. You can change the direction of the Association by selecting from the Navigability drop-down list in the Properties view. You can also change the Source or Destination of the Association in the Properties view.
A bi-directional Association shows both the Source and Destination on the business object model. A uni-directional Association shows only the Destination.
You can also set the Multiplicity of each end of the Association by selecting from the Source Role Multiplicity and Target Role Multiplicity drop-down lists in the Properties view. For more information about multiplicity values, see Multiplicity.
3.
In the Properties View for each Association, click the Stereotypes tab to apply any stereotypes you want to apply. See Applying Stereotypes for more information.
Aggregation and Composition
Aggregation and Composition are created in the same way as an Association and share the same properties. The only difference is the meaning and appearance of the Connection. See Aggregation and Composition for more information about these connections.
Adding Text to a Model
You can add a note or text to your business object model to describe the business object model or to add any supporting explanations to the diagram nodes.
Adding a Note
To add a note, you can:
Then click on the Business Object Model Editor.
A Note is displayed where you can enter any text you require. Use the Note Attachment option to draw a line connecting a Note to the Class it comments on.
Adding Text
To add text, you can:
A Text box is displayed where you can enter any text you require.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved