Where code respect information is defined Manually adding a SourceArtifact A SourceArtifact is created when you reverse engineer or roundtrip code in Rational Rhapsody, which is the typical way to do so. Advanced users might also want to manually add a SourceArtifact, which you can do through the Rational Rhapsody browser. To manually add a SourceArtifact: 1. To enable the display of SourceArtifacts on the Rational Rhapsody browser, choose View > Browser Display Options > Show Source Artifacts . See Making SourceArtifacts display in the browser . 2. To add a SourceArtifact, right-click a class/package/object/block and select Add New > SourceArtifact .
Reverse engineering and SourceArtifacts Note the following rules for reverse engineering and locating a SourceArtifact under a class: Љ If only one class is mapped to the artifact, the artifact is located under the class it is mapped to. Љ If more than one class is mapped, the artifact is located under the first class. Priority is given to a class with the same of the file. Љ If no class is mapped to the artifact, the artifact is located under the package. Љ External files are imported under the component. Roundtripping and SourceArtifacts Note the following rules for roundtripping and locating a SourceArtifact, which are similar as the ones for reverse engineering:
Љ New SourceArtifacts are added under classes. Љ The order of elements is updated. Љ For existing component files under a component (for example, created by a user or in old models), their locations are not changed. Rational Rhapsody 1067