IBM Support

PH53132: MODEL-2-MODEL TRANSFORMATION GENERATES FAULTY CODE WHEN USING CUSTOM SUBMAPS WITH CUSTOM FEATURE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • A model-2-model transformation generates faulty code when using
    custom submaps with custom feature extractors. If a element type
    ⠜UML Stereotype⠝ or ⠜UML Profile Class⠝ is selected, the
    generated code uses in both cases CustomDirectFeatureAdapter,
    which is only valid for ⠜Regular Class⠝ (default option).
    
    The transformation should work as follows:
    -	For ⠜Regular Class⠝ the generated code should use
    CustomDirectFeatureAdapter.
    -	For ⠜UML Stereotype⠝ the generated code should use
    CustomStereotypeFeatureAdapter.
    -	For ⠜UML Profile Class⠝ the generated code should use
    CustomProfileClassFeatureAdapter.
    
    Steps to reproduce:
    - create a model-to-model transformation
    - create a map that uses a custom submap
    - select "custom feature" -> "specify custom feature" -> "UML
    Class"
    - generate transformation code
    - the generated code has compile errors
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * -                                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * FAULTY CODE GENERATION DURING MODEL-2-MODEL TRANSFORMATION   *
    * WHEN USING CUSTOM SUBMAPS WITH CUSTOM FEATURE                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • RSA will now generate the required source code when
    selecting/defining the 'UML Profile Class' for 'Custom Feature'
    in a model submap.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH53132

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    960

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-03-09

  • Closed date

    2024-05-02

  • Last modified date

    2024-05-02

  • 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

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"960","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
02 May 2024