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:
-
In Rule Designer, click , and specify a new workspace directory.
Eclipse shuts down and restarts with a blank workspace.
-
Click . (On Mac, click .)
-
Expand , and 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 Apply and Close.
-
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.
-
Open the Samples Console (see Running samples from the the Samples Console).
-
In the Samples and Tutorials tab, expand .
-
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.