Customizing code generation

The customization feature is available only for IBM® Rational® Rhapsody® Developer for C.

About this task

When you instruct the product to generate code, Rational Rhapsody can take a number of different paths, depending on the value of the C_CG::Configuration::CodeGeneratorTool property.

If CodeGeneratorTool is set to a value other than Customizable, the product starts its standard internal code generation mechanism.

If CodeGeneratorTool is set to Customizable, the product:

Procedure

  1. Creates a refined model from the original model. This model is referred to as the simplified model.
  2. Opens the external RulesPlayer code writer to create the code itself.
    Note: You must have a valid license to be able to use the RulesPlayer code writer.

    When code generation is running, you see the following messages to show that the RulesPlayer is at work:

    Loading external generator...
    Invoking RulesPlayer
    Evaluation of RiCWriter.

Feedback