This sample shows how to use Rule
Designer APIs
to populate a decision table.
Prerequisites
You
must have Rule
Designer installed
to import and run this sample.
Description
This
sample shows how to fill an empty, structured decision table using Rule
Designer APIs.
The values used to populate the decision table model come from a customized
data provider object providing the decision table content.
This
sample comes with three providers:
- File provider: Data are stored in a file.
- Excel provider: Data are stored in an Excel sheet.
- Database provider: Data are stored in a database.
This sample uses the Apache Derby engine and the Apache POI
provided with Decision Server.
The
key features of this sample include:
- Development of an Eclipse plug-in using the exposed Rule
Designer API
.
- Populating a decision table from a file, Excel spreadsheet, or
database.
- Ability to automate Rule
Designer tasks
through ant tasks.
- Retrieving project and a rule in the workspace from a name.
- Checking if a project or a rule are defined in the workspace.
- Saving a resource in a workspace after modification.
- Use of the repository API to access the definition object of the
decision table.
- Definition of a custom data provider class implementing IlrDTDataProvider.