Introducing OpenL Tablets
Introducing OpenL Tablets
This chapter introduces OpenL Tablets and describes its main concepts.
The following topics are included in this chapter:
What Is OpenL Tablets?
OpenL Tablets is a business rules management system and business rules engine based on tables presented in Excel documents. Using unique concepts, OpenL Tablets facilitates treating business documents containing business logic specifications as executable source code. Since the format of tables used by OpenL Tablets is familiar to business users, OpenL Tablets bridges a gap between business users and developers, thus reducing costly enterprise software development errors and dramatically shortening the software development cycle.
In a very simplified overview, OpenL Tablets can be considered as a table processor that extracts tables from Excel documents and makes them accessible from the application.
The major advantages of using OpenL Tablets are as follows:
- OpenL Tablets removes the gap between software implementation and business documents, rules, and policies.
- Business rules become transparent to developers.
For example, decision tables are transformed into Java methods or directly into web service methods. The transformation is performed automatically.
- OpenL Tablets verifies syntax and type errors in all project document data, providing convenient and detailed error reporting. OpenL Tablets can directly point to a problem in an Excel document.
- OpenL Tablets traces calculations, enabling expansion of any calculation result down to its source arguments in the original tables.
- OpenL Tablets enables users to create and maintain tests to insure reliable work of all rules.
- OpenL Tablets provides search capabilities within all project tables.
- OpenL Tablets provides full rules lifecycle support through its business rules management applications.
- OpenL Tablets supports the
.xls,.xlsxand.xlsmfile formats.
Basic Concepts
This section describes the basic concepts of OpenL Tablets and includes the following topics:
Rules
In OpenL Tablets, a rule is a logical statement consisting of conditions and actions. If a rule is called and all its conditions are true, then the corresponding actions are executed. Basically, a rule is an IF-THEN statement. The following is an example of a rule expressed in human language:
If a service request costs less than 1,000 dollars and takes less than 8 hours to execute, then the service request must be approved automatically.
Instead of executing actions, rules can also return data values to the calling program.
Tables
Basic information OpenL Tablets deals with, such as rules and data, is presented in tables. Different types of tables serve different purposes. For more information on table types, see OpenL Tablets Reference Guide > Table Types.
Projects
An OpenL Tablets project is a container of all resources required for processing rule related information. Usually, a project contains Excel files and Java code. For more information on projects, see OpenL Tablets Reference Guide > Working with Projects.
There can be situations where OpenL Tablets projects are used in the development environment but not in production, depending on the technical aspects of a solution.
Wrapper
A wrapper is a Java object that exposes rule tables via Java methods and data tables as Java objects and allows developers to access table information from code. Wrappers are essential for solutions where compiled OpenL Tablets project code is embedded in solution applications. If tables are accessed through web services, client applications are not aware of wrappers but they are still used on the server.
For more information on wrappers, see Using OpenL Tablets Rules from Java Code.
Execution Mode for OpenL Project
Execution mode for OpenL project is a light weight compilation mode that enables only evaluating of rules; but editing, tracing and search are not available. Since the Engine will not load test tables and keep debug information in memory in this mode, memory consumption is up to 5 times less than for debug mode.
OpenL Rule Services compile projects in the execution mode (executionMode=true). OpenL Studio compiles them in the debug mode (executionMode=false).
To compile an OpenL Tablets project in execution mode, proceed as follows:
- If
SimpleProjectEngineFactoryis used, call thesetExecutionMode(boolean)method of its builder. - If
RulesEngineFactoryis used, call itssetExecutionMode(boolean)method. - If a dependency manager is created directly, pass the flag to its constructor. The manager reports it with the
isExecutionMode()method.
System Overview
The following diagram displays how OpenL Tablets is used by different types of users:

OpenL Tablets overview
A typical lifecycle of an OpenL Tablets project is as follows:
- A business analyst creates a new OpenL Tablets project in OpenL Studio. Optionally, development team may provide the analyst with a project in case of complex configuration. The business analyst also creates correctly structured tables in Excel files based on requirements and includes them in the project. Typically, this task is performed through Excel or OpenL Studio in a web browser.
- The business analyst performs unit and integration tests by creating test tables and performance tests on rules through OpenL Studio. As a result, fully working rules are created and ready to be used.
- A developer adds configuration to the project according to application needs. Alternatively, they can create a new OpenL Tablets project in their IDE via OpenL Maven Archetype and adjust it to use business user input.
- A developer employs business rules directly through the OpenL Tablets engine or remotely through web services.
- Whenever required, the business user updates or adds new rules to project tables.
OpenL Tablets business rules management applications, such as OpenL Studio, Rules Repository, and Rule Services Core, can be set up to provide self-service environment for business user changes.
Quick Start with OpenL Tablets
OpenL Tablets provide a few ways to create a project. We recommend using Simple Project Maven Archetype approach for creating a project for the first time or create it via OpenL Studio. For more information on approaches for creating a project with detailed descriptions, see How to Start with OpenL Rules Project.
OpenL Studio creates a project from a template, a ZIP archive, Excel files or an OpenAPI file. For more information, see the OpenL Studio Guide.
OpenL Studio provides convenient UI to work with rules. However, its usage can be avoided by working with rules from IDE only using the OpenL Tablets Maven plugin. The plugin provides compilation and testing of rules and wrapper generation support.
Also, the OpenL Tablets Demo Package starts OpenL Studio and OpenL Rule Services on one computer. For more information, see the Demo Package Guide.