IBM Support

Aggregations result in "ill-formed link across composite boundaries" code generation error

Question & Answer


Question

The model is comprised of the following relations. Note, ModuleA and ModuleB are using aggregations.
image 7883
This results in the following error when code generation is attempted:
Warning: Link will not be instantiated - ill-formed link across composite boundaries
    in Package: Default
        in Block: BlockA
            connector: BlockA-BlockB

Answer

Aggregation implies that the child (ModuleA/ModuleB) can exist without the composite parent (BlockA/BlockB).

Since the links are created by the composite instance, Rhapsody does not allow aggregation associations in this case.

You must redraw the relations using Compositions:

image 7882

[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"ARM Category":[{"code":"a8m50000000CjYVAA0","label":"Rhapsody->Profiles->UML"}],"ARM Case Number":"TS004752314","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
27 May 2022

UID

ibm16406312