IBM Support

PI08796: Impossible to add an association instance for an association between classes generalizing the same class

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect, when two classes with an
    directed association are inheriting
    from the same class, the corresponding object diagram
    association instance/link cannot be created or is created
    incomplete .
    
    Steps to reproduce
    
    1. Create a UML Model
    2. Add a class called 'Parent with an attribute 'atrParent' of
    type String
    3. Add two classes called 'Child1' and 'Child'
    4. Add two generalizations. One from 'Child1' to 'Parent' and
    one from 'Child2' to 'Parent'
    5. Add a direct association from Chidl1 to Child2
    6. Add an object diagram
    7. Drag ? drop the two classes 'Child1' and 'Child2' to create
    their corresponding object instances
    8. Try to add a new link between 'Child1Instance' and
    'Child2Instance'.
    Expected result:
    The link/association instance is automatically created between
    the between 'Child1Instance' and 'Child2Instance'
    with its corresponding slot and  slots values
    Actual result:
    You are not able to create the link. Your are prompted with the
    options 'Select and existing element' or 'Unspecified'.
    Choosing 'Select and existing element' and browsing to the
    element will not allow to create the link
    Choosing 'Unspecified' will do nothing.
    
    If you remove one of the generalization to the Parent Class then
    the link can be created.
    If you drag and drop the association directly onto the object
    diagram, the class instances and the association instance
    are created but the slot and slot value for the association
    instance are not correctly created (missing the slot value for
    'child2' under 'Child1Instance'  and the value for the
    association instance slots are wrong)
    
    Workaround
    
    The workaround could be to create generalizations only after
    having created the link between instance objects. Once you have
    created generalizations, you can include the inherited attribute
    in the slots/values from the properties page of respective
    instance object.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Customer is trying to create a link between two class
    instances in object diagram where the classes have
    generalization as well as association relationships between
    them. The arrow head created between parent and child
    instances is on the worng side.
    

Problem conclusion

  • This is been fixed keeping in mind the link arrowhead should
    point to the class insatnce as per the direction of
    association in the class diagram.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI08796

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-31

  • Closed date

    2014-06-13

  • Last modified date

    2014-06-13

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL SW ARCHITE

  • Fixed component ID

    5725A3000

Applicable component levels

  • R851 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"851","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"851","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 September 2020