The best way to use the OpenL Tablets rule technology in a solution is to create an OpenL Tablets project in Eclipse. An OpenL Tablets project is a Java project with an OpenL Tablets facet. A typical OpenL Tablets project contains the following general elements:
OpenL Tablets project contents |
|
---|---|
Element |
Description |
Main content |
|
Excel files |
Physical storage of rules and data in the form of tables. |
Additional Java code |
Optional classes for domain models and for processing or testing rules in the project. Solution developers can decide whether to include additional code in OpenL Tablets projects. |
Additional content |
|
Ant task for generating static wrappers |
Ant configuration file used for creating wrapper classes for Excel files so that they can be accessed from code. For general information on wrappers, see Wrappers. |
Wrappers |
Java classes providing access to OpenL Tablets rules in Excel files. Wrappers are generated as described in Generating a Wrapper. |
Third party dependencies |
Java libraries files used in rules and Java code. |
The following table describes common OpenL Tablets folders in the physical project structure. However, the structure can be adjusted according to the developers preferences, for example, to comply with the Maven structure.
Rule projects must contain the default folders rules and gen to be recognized.
OpenL Tablets project structure |
|
---|---|
Folder |
Contents |
|
Contains all project Java classes apart from wrappers. |
|
Contains Excel files with rules. |
|
Contains generated wrapper classes. |
|
Contains compiled Java code. |
|
Contains Ant configuration file for generating wrapper classes. For information on generating wrappers, see Generating a Wrapper. |
|
Contains rules project dependencies JAR files. |