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.
![](/support/pages/system/files/support/swg/rattech.nsf/0/7b7491a9199637b785257e5100299332/Cause/0.260.gif)
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 Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21957803