IBM Support

IBM Rational Rhapsody Java API for RoundTrip ignores changes made in code

Troubleshooting


Problem

Calling RoundTrip from IBM Rational Rhapsody Java API results in code changes not being imported into the model as expected.

Symptom

Calling Java API below results in code change won't be taken back into model as expected.

  • roundtripElements(IRPCollection)
  • forceRoundtripElements(IRPCollection)

Cause


When RoundTrip is called from GUI and the relevant model element like project, component, configuration or class being modified after the last code generation, RoundTrip would pop up below dialogue to ask for user permission before taking further action.


When RoundTrip is called via Java API, Rhapsody will first evaluate the value set in [Lang]_Roundtrip::General::NotifyOnInvalidatedModel property. By default, Rhapsody doesn't perform RoundTrip if the model is found newer than code and no message would be alerted to user.

Resolving The Problem

If you want the tool always perform RoundTrip when called from Java API, you need to un-tick property of [Lang]_Roundtrip::General::NotifyOnInvalidatedModel.

NOTE:

Please be aware if you override above property, the change you done on the model since last code generation could be ignored by Rhapsody.

[{"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.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21957803