Modifying the generator used in the RuleApp code generation wizards

To modify the generator that is used in the RuleApp code generation wizards, you redefine the last three pages of the Client Project for RuleApps wizard by specifying a nested wizard.

About this task

The Decision Server wizards for a Client Project for RuleApps and Artifacts for RuleApps have the following pages:
  • A page to select the generator
  • A page to select the destination project
  • A page to select the RuleApp project that is used as source
  • A page to select the ruleset to manage in the RuleApp project

You can redefine the last three pages by specifying a nested wizard. A page in the nested wizard can inherit from IWizardPage or extend the IlrFileGeneratorWizardPage class. This class sets the context-sensitive help, the page title, and the wizard banner.

Procedure

  1. Use one of the attributes in the generator extension point.
    For more information about these attributes, see the subpackages under :
    • creationWizardClass
    • creationWizardPlugin
    • completionWizardClass
    • completionWizardPlugin
  2. Reference the fields as follows:
    • If you want to add your own pages in the Client Project for RuleApps wizard, reference the creationWizardClass field in the extension.
    • If you want to add your own pages in the Artifacts for RuleApps wizard, reference the completionWizardClass field in the extension.
  3. In the Class fields, specify a class that inherits from the IWizard Eclipse interface.

    If you intend to access the RuleApp project that is selected in the previous pages and the instance of the selected generator, specify a class that extends the IlrFileGeneratorWizard class.

  4. Optional: Specify the plug-in where the wizard is defined by referencing the creationWizardPlugin or completionWizardPlugin fields.