IBM Support

Results of importing SysML XMI files are not consistent before and after Rhapsody v8.0.3

Troubleshooting


Problem

Attempts to import XMI files written for SysML using IBM Rational Rhapsody v8.0.3 (or newer) results into different representation of models as compared to the ones imported from pre-v8.0.3 releases.

Symptom

When you import the attached XMI (original.xmi) in Rhapsody v8.0.2 and v8.0.3, and compare the two results, you will notice "sample1" element is represented as "Requirement" in v8.0.2 as opposed to "Class" in v8.0.3:

Steps to Reproduce:

  1. Go to Tools > Import > From OMG UML/XMI
  2. Select original.xmi and start import

EXPECTED RESULT (v8.0.2):

ACTUAL RESULT (v8.0.3):

Cause

The difference was introduced primarily because of changes made in the formal release of OMG SysML1.3 profile:

  • Rhapsody v8.0.2 or older contains a beta version of OMG SysML 1.3

  • Rhapsody v8.0.3 or newer contains the final version of OMG SysML 1.3

Between those two versions, the OMG made two key changes:

In addition, the attached file (original.xmi) contains two problems to be addressed:
    • For being compatible with UML, the model should have a profile application referencing SysML profiles.

    • The loading in v8.0.2 was possible due to usage of schemalocation. But schemalocation is not stable, thus its usage is not recommended.

Resolving The Problem

You are able to import original.xmi successfully if following four changes made to your XMI files:

The original.xmi and fixed file are attached below for your reference.

 
Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


original.xmi original_fixed.xmi

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Integrations - 3rd Party","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0.3;8.0.4;8.0.5;8.0.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21660796