IBM Support

Roundtripping causing code to be moved to Description field of Operation with Visual studio integration in IBM Rational Rhapsody

Troubleshooting


Problem

You will have integration setup between IBM Rational Rhapsody and Visual Studio. The initial Synchronize works well and all Code generation works fine. Some code that is entered in SpecificationProlog is also displayed as desired in Visual Studio IDE. However, if there is any modification done in Visual Studio and the Code Rountripped/Resynchronized, then the SpecificationProlog value gets placed in the Description field of Operation

Cause

SpecificationProlog and MarkPrologEpilogInAnnotations properties is not set properly.

Environment

Windows 7

Resolving The Problem

To avoid this, the lines that added by these properties need to be generated with the ignore annotation.
By default Rhapsody adds the ignore annotation only if the property contains more than one line. In this scenario, the prolog contains 1 line, so it was generated with no annotation.

Hence to avoid this situation you can add newline to this SpecificationProlog and the issue is solved.
In addition, by setting the property MarkPrologEpilogInAnnotations to 'Ignore' the annotation is added also for one line content and the issue is solved.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.1.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21988660