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:
- Click , and specify a new workspace directory. Eclipse shuts down and restarts with a blank workspace.
- Click . In , click Change from File System to change the
Default extension to the following path:
<InstallDir>/studio/samples/brmanagement/customrulemodel/rules/data/rulestudiocustommodel.brmx
- Change the data extension file to the following path:
<InstallDir>/studio/samples/brmanagement/customrulemodel/rules/data/rulestudiocustommodel.brdx
- Click OK.
- 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.
- Switch to the Samples Console perspective.
- In the Samples and Tutorials view, navigate to 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.