Creating an Aggregate Relationship

An aggregation relationship is used to model a relationship between objects where one object contains another. In IBM Cúram Social Program Management this relationship will always be between two structs.

In the Project Explorer:

  1. Select the struct which will be the containing struct in the relationship.
  2. In the Properties view, select the Relationships tab for the struct. Choose to add a relationship originating from this element.
  3. Select the object to be contained, as the target of the relationship and select Aggregation as the relationship type.

If the contained object is an entity you must pick the Shadow Type to identify the actual struct to be contained. This can be done in the Cúram tab of the Properties view.

On the relationships page, right-click the aggregation you have just created and select Navigate from the context menu. This opens the Properties view of the newly created aggregation. Verify that your aggregation is correct by viewing the diagram on the General tab.

In the diagram, the 'diamond' should appear beside the containing struct. In the Cúram tab, type a role name for the contained struct and set the multiplicity of the relationship. The multiplicity of the container struct must be 1. The multiplicity of the contained struct can be 1..* (for a 1 to many relationship) or 1 (for a 1 to 1 relationship).