Integrating a custom IRL code generator into Rule Designer

After you create a custom IRL code generator, you must integrate into Rule Designer.

About this task

You use a custom IRL code generator to modify the way IRL code is generated from business rule artifiacts. To integrate the custom IRL code generator, you create a Rule Designer plug-in with a value descriptor extension point. You package your implementation of a subclass of IlrIRLCodeGenerator into a JAR file.

Procedure

  1. Create a plug-in project that depends on the plug-in: ilog.rules.studio.model.

    For help with creating a plug-in project, refer to Creating a plug-in project.

  2. In this plug-in, create an extension for ilog.rules.studio.model.brl.codeGenerators.

    For help with defining a plug-in extension, refer to Defining a plug-in extension.

  3. In the extension point, set these attributes:
    • Use the class attribute to specify the fully-qualified name of the code generator class.

    • Use the targetLanguage attribute to specify the language of the code generator. Specify the value irl for this type of customization.

  4. Save the plug-in project.
  5. Deploy the plug-in.

    For help with deploying a plug-in, refer to Deploying a plug-in.