Setting up the rule model extensions sample

You use the Samples Console to set up this sample.

About this task

This sample extends the Rule Designer API, and the required sample plug-ins are delivered as predeployed.

This sample installs a custom rule model that replaces the default rule model. To avoid conflicts with other rule projects in your default workspace, import the sample into a separate workspace.

Procedure

To import the sample project files:

  1. Click File  > Switch Workspace > Other, and specify a new workspace directory. Eclipse shuts down and restarts with a blank workspace.
  2. Click Window  > Preferences. In Rule Designer  > Rule Model Extension, click Change from File System to change the Default extension to the following path:

    <InstallDir>/studio/samples/brmanagement/customrulemodel/rules/data/rulestudiocustommodel.brmx

  3. Change the data extension file to the following path:

    <InstallDir>/studio/samples/brmanagement/customrulemodel/rules/data/rulestudiocustommodel.brdx

  4. Click OK.
  5. If you are prompted to restart Eclipse, click Yes. Restart Eclipse without changing the workspace location.

    Rule Designer now recognizes the rule model extension and its attached data file.

  6. Switch to the Samples Console perspective.
  7. In the Samples and Tutorials view, navigate to Rule Designer > Samples > Business rule management extension > Rule model extensions and click Import projects. If one or more files already exist in your workspace, Rule Designer displays a warning message.

    Rule Explorer displays the imported sample project files.