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. In Rule Designer, click File  > Switch Workspace > Other, and specify a new workspace directory.
    Eclipse shuts down and restarts with a blank workspace.
  2. Click Window  > Preferences. (On Mac, click Eclipse  > Preferences.)
  3. Expand Rule Designer  > Rule Model Extension, and click Change from File System to change the Default extension to the following path:

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

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

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

  5. Click Apply and Close.
  6. 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.

  7. Open the Samples Console (see Running samples from the the Samples Console).
  8. In the Samples and Tutorials tab, expand Rule Designer > Samples > Business rule management extension.
  9. Under Rule model extensions , 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.