If
you have indicated in the property settings
that a user-provided simplification is to be used for a given type
of element, then the code generation process starts the user-provided
code for transforming the model.
The
basics of this process
are
as follows:
- The user-provided transformation
code is provided
as a IBM® Rational® Rhapsody® plug‑in.
- You add this plug‑in information to the rhapsody.ini file,
or provide the information necessary to have the plug‑in run only
for a certain profile.
- During the code generation
process, Rational Rhapsody checks
whether the user-provided code has implemented the relevant "simplify"
interface for the element in question. (These interfaces are defined
in the Rational Rhapsody API.)
Note: Rational Rhapsody provides
you with sample projects that show the "simplify" interface. Look
in the <Rational Rhapsody installation path>\Samples\CustomCG
Samples path. For example, see the sample projects provided
in the Statechart_Simplifier_Writer subfolder. Review
the Readme.txt file that accompanies each sample
project for details about that project.
- If
the user-provided code implements the "simplify"
interface, your implementation is called.
- The
user-provided transformation code uses the Rational Rhapsody API
to directly modify the way model elements are transformed.