![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
In TIBCO Business Studio, relationships are used to show the relationships between objects and consist of Generalizations, Aggregation, Composition, and Aggregation.
Not all these types ofrelationship are supported for all destination environments. TIBCO Business Studio allows you to create all four types of relationship listed here, and they may all be useful for analysis purposes. However, an error will be generated if you try to deploy a business object model containing an Association or an Aggregation to BPM.
• Aggregation, Composition, and Aggregation. Composition and Aggregation are both more specific types of the general relationship type Association. However note that Composition is the only one of these supported in BPM.Allrelationships, except Generalizations, can have various labels when they are created in a business object model. A label name for the relationship is not displayed by default but can be added. They also display the names of the Classes and the multiplicity allowed for the Classes. This is shown below:
An Association shows a relationship between two Classes. The relationship indicates that the Classes need to share data and how one Class can access another. For example, an Association between a Customer Class and an Order Class shows that a Customer has one or more orders. If you have an order, you can locate the customer who placed that order.
In this example, the Customer Class acquires an attribute called Order and the Order Class acquires an Attribute called Customer. In other words, from an Order you can find out about a Customer and from a Customer you can find out about an Order.In a one way Association, only the source Class acquires the attribute of the target Class. In the example above therefore, the Order Class inherits the Customer Class as an Attribute but the Customer Class does not inherit the Order Class as an Attribute. In other words, from an order you can find out about a customer but you cannot find out about an order from a Customer.
Where n is greater than 1 0..n 1..n
• Select the connection, and specify the multiplicity in the Source Role Multiplicity and Target Role Multiplicity fields on the Advanced tab; or
• Select the multiplicity value displayed in the editor (as shown in the following diagram) and specify the multiplicity in the Multiplicity field on the General tab; orYou can select an indicator from the content assistance dialog, or type it in. Where an indicator includes n, that represents any integer, and you must type it in.
1. Create the two classes between which the connection exists. These are shown as Class1 and Class2 in the illustration above.
3. Right-click on the connection, and select Refactor To AssociationClass. The existing connection is replaced by an Association Class as shown in the illustration.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |