Data sources for decision tables

This sample demonstrates how to use Rule Designer APIs to populate a decision table.

Time required

10 minutes

Prerequisites

You must have Rule Designer installed to import and run this sample.

Description

This sample shows you how to fill an empty, structured decision table by using Rule Designer APIs. The values that are used to populate the decision table model come from a customized data provider.

This sample comes with three providers:

  • File provider: Stores data in a file.
  • Excel provider: Stores data in an Excel sheet.
  • Database provider: Stores data in a database.

This sample uses the Apache H2 engine and the Apache POI provided with Decision Server.

The sample covers the following operations:

  • Using a Rule Designer API to develop an Eclipse plug-in.
  • Populating a decision table from a file, Excel spreadsheet, or database.
  • Automating Rule Designer tasks through Ant tasks.
  • Retrieving a project and a rule in the workspace from a name.
  • Checking whether a project or a rule is defined in the workspace.
  • Saving a resource in a workspace after modification.
  • Using the repository API to access the definition object of the decision table.
  • Defining a custom data provider class to implement IlrDTDataProvider.