Using Rules Editor
Using Rules Editor
This chapter describes basic tasks that can be performed in Rules Editor. For more information on Rules Editor, see Introducing Rules Editor.
The following topics are included in this chapter:
- Switching to Another Project or Module
- Viewing a Project
- Viewing a Module
- Managing Projects and Modules
- Defining Project Dependencies
- Editing Localization Messages
- Viewing Tables
- Modifying Tables
- Referring to Tables
- Managing Range Data Types
- Copying a Table
- Searching for Tables
- Creating Tables
- Comparing Excel Files
- Viewing and Editing Project-Related OpenAPI Details
- Reconciling an OpenAPI Project
Switching to Another Project or Module
The breadcrumb above the module name shows the repository, the project and the branch the module belongs to and switches the editor to another project or module. It ends with a slash, as the module name below it is its last step:
- To see the other projects of the repository, click the repository name. The Projects list opens, filtered by the repository.
- To switch to another project, click the arrow next to the project name, start typing the project name in the Find a project field to narrow the list down, and select the project.
- To switch to another module of the current project, click the arrow next to the module name, start typing the module name in the Find a module field, and select the module.
- To open the localization messages of the project, click the arrow next to the module name and select Localization below the modules, as described in Editing Localization Messages.

Rules Editor breadcrumb navigation
To get a full list of projects or modules, delete the filter text in the field.
Viewing a Project
Rules Editor allows a user to work with one project at a time. To view a project, select it on the Projects page. The project page with general information about the project and configuration details appears on its Overview tab, as described in Viewing the Project Overview.

A project page
If a particular project is not available in Rules Editor, it must be opened as described in Opening a Project.
Viewing a Module
Rules Editor allows a user to work with one module at a time. To open a module, click its name in the Modules section of the Overview tab of an open project, select it in the module switcher of the breadcrumb, or select its workbook in the projects tree and click Open in Editor. The following module information is displayed:
- tree in the left pane displaying module tables
- contents of the table selected in the tree in the middle pane
- properties of the selected table in the right pane
- project and branch names, module name, and the actions for the module above the panes
If a particular module is not available, the project in which it is defined must be opened as described in Opening a Project.
By default, a project is opened in the multi-module mode. This is a common production mode. In the multi-module mode, all modules of the current project with all their dependencies are displayed, that is, modules of projects defined as the project dependencies.
For more information on project and module dependencies, see OpenL Tablets Reference Guide > Project, Module, and Rule Dependencies.
The first opened module page is displayed right after the module is loaded, while loading of the whole project continues in the background. The Compiling N of M indicator beside the module name shows how many modules are compiled, and the tree shows a skeleton until the tables of the module are read. The compilation problems panel at the bottom of the page lists errors and warnings as more modules are compiled, and the number of errors is shown in the tree next to the tables that have them.
Opening a module of another project stops loading the project opened before: only the module being compiled at that moment is finished. A dependency project that is not included automatically (autoIncluded is false) is loaded only with the modules the project uses, and the Compiling N of M indicator counts only those modules of it.

Loading progress indicator
If a module is modified during loading, this module is re-compiled and project loading continues.
The loading indicator is not displayed for newly opened projects if a project has only one module or multiple small modules which loading takes less than one second. The loading indicator is also not displayed if the project is already opened and fully compiled and the following actions happen:
- A page is refreshed using the browser refresh button.
- A user leaves the project by switching to the Projects page and then returns to the project without opening other projects in the meantime.
- A user switches between modules of the same project.
If a user clicks the Refresh button next to the module name, loading restarts and the indicator appears again. While loading is in process, or while other modules have errors, the Run, Trace, Test, and Benchmark actions work only for the currently opened module. That is why the Within Current Module Only check box is selected and cannot be edited in the menu of these actions in such a case.
When loading is completed and the other modules have no errors, the Within Current Module Only check box is cleared and becomes editable.
Managing Projects and Modules
This section explains the following tasks that can be performed on projects and modules in Rules Editor:
- Editing and Saving a Project
- Exporting and Copying a Project
- Exporting, Updating, and Editing a Module
- Comparing and Reverting Module Changes
Editing and Saving a Project
A project can be opened for editing and saved directly in Rules Editor.
-
To save the edited project, click Save
. The Save project window lists
the files the save commits, each comparable with its saved revision, as described in
Saving a Project.[!Note] If a project is in the Local status, this option is not available in Rules Editor.
-
To modify the project configuration, open the project page, click Edit in its Overview tab and modify the values as described in the following table. The Edit button is shown while the project is open and not locked by another user.
| Project details | Available actions |
|---|---|
| Project description | Enter the text in the Description section. |
| Modules configuration | In the Modules section, enter the name and the rules root path of every module, select Compile this module only to compile the module without the modules it does not depend on, drag a module to reorder it, click Add to add a module, or click the trash icon to remove it. |
| Custom file name processor and properties defined in the file name | In the Version patterns section, click Add to enter a file name pattern. The question mark next to the section name opens the description of patterns. In Properties processor, enter the class of the custom file name processor. For more information on properties pattern for the file name, see OpenL Tablets Reference Guide > Properties Defined in the File Name. |
| Methods exposed by the project | In the Exposed methods section, enter one pattern per line in Includes and Excludes. The patterns support the * wildcard for any characters and the ? wildcard for one character. When both are empty, every method of the project is exposed. |
| Project dependencies | Manage dependencies as described in Defining Project Dependencies. |
| Project sources | In the Sources section, click Add to enter a path to the folder or library that holds the source code, or click the trash icon to remove a path. |
| OpenAPI specification | Manage the OpenAPI specification as described in Viewing and Editing Project-Related OpenAPI Details. |
Click Save above the sections to keep the changes, or Cancel to discard them. All changes are saved in the project rules.xml file, and the project status changes to In Editing. For more information on this XML file, see the OpenL Tablets Developer Guide > Rules Project Descriptor.
Modules and sources that the standard rules/, tests/, lib/ and groovy/ folders provide are found automatically. They are listed in the sections but cannot be edited while rules.xml does not declare them: to add a module, put its Excel file in the rules/ or tests/ folder, and to add a library, put its JAR file in the lib/ folder.
The Migrate button is offered for a project that keeps its workbooks in the project root, or whose rules.xml keeps settings in a legacy form. For a project with workbooks in the root, it moves them into the rules/ folder and creates rules.xml, so that the project configuration can be edited. If the move would turn another Excel file into a module, OpenL Studio names these workbooks and blocks the migration until they are declared in rules.xml or removed. For rules.xml, Migrate rewrites the file to its minimal form, so its comments and layout are not kept.
Exporting and Copying a Project
The project actions of the editor are the ones described for the Projects page:
- To export the project to the user’s local machine, see Exporting a Project or a File.
- To copy the project, click Copy above the module and see Copying a Project.
- To synchronize the project with another branch, click Sync and see Working with Project Branches.
- To deploy the project, click Deploy and see Deploying a Project.
The content of a project is replaced by the content of a ZIP archive by creating a project from the archive, as described in Creating a Project from ZIP Archive, or file by file from the project tree, as described in Modifying Project Contents.
Exporting, Updating, and Editing a Module
A user can export, update, or edit a module directly in Rules Editor. Proceed as follows:
-
To upload a changed module file, for a module, above the table click Update and select an Excel file. The uploaded file replaces the module file. When the selected file name differs from the current module file name, a warning is displayed.

The button is shown while the project can be modified.
-
To export the module to the user’s local machine, for a module, click Export and select a module revision.
The default module version for export is the one that a user has currently open in Rules Editor. If it contains unsaved changes, it is marked as In Editing, otherwise, it is called Viewing.
The list offers the revisions of the module file itself, so a project revision that did not change the module is not proposed. Older revisions are loaded on demand through Load older revisions.
-
To modify module configuration, such as module name and path, open the Overview tab of the project page, click Edit and change the module in the Modules section.

Editing module information
-
To save the changes, click Save above the sections.
The Exposed methods section of the project filters the methods of the whole project. The method filter that a module declares in rules.xml is the legacy form of it: the Modules section shows its Includes and Excludes under the module, but the module form does not edit them.
For more information, refer to the OpenL Tablets Rule Services Usage and Customization Guide > Dynamic Interface Support.
Comparing and Reverting Module Changes
OpenL Studio allows comparing module versions and rolling back module changes against the specific date. To compare module versions, proceed as follows:
- Open the module.
-
Above the table, select More > Local Changes. The Local Changes window appears displaying the selected module’s local versions, with the latest versions on the top. In a multi-module project, switching modules shows the local history stored for that module only.

Displaying the Changes window
When a project is modified, upon clicking the Save icon
, a temporary version of the module is created, and it appears in the list of local changes. When project update is complete, clicking Save removes all temporary versions from Local Changes, and a new version is added to the list of revisions.When another program, such as Excel, saved the module since OpenL Studio last did, the version it saved is added to the list too before OpenL Studio writes over it or restores an earlier version, so it can be restored as well.

Clicking Save to complete project update and save changes as a revision version
-
To compare the changes, select check boxes for two required versions and click Compare.

Comparing module versions
The comparison opens in a window of its own and lists the elements that differ, grouped by Excel sheet, as displayed in the following example.

Tables with changes
-
To view the changes, click the required element.
The two versions of the element are drawn as one table, with the cells that read differently framed. The window is the one described in Comparing Excel Files, except that it has no files to pick: it opens on the comparison of the two versions, and the Show equal elements, Other tables and Formatting changes check boxes head the list of elements instead of standing next to the files.

The result of the module version comparison
-
To revert module changes, for the required module version, click the Restore link and confirm the changes.
When Restore is clicked, the corresponding changes are restored but this action is not added to the history as a change.
The project is modified after a restore only when its files differ from the revision it was last opened or saved at. The oldest version of the list is the module as that revision holds it, since saving the project clears the list. Restoring it leaves the module with no unsaved change: when no other file was changed, the project can be closed or switched to another branch without saving or discarding anything. Restoring a later version makes the project modified again.
[!Note] A repository that keeps no versions, such as a folder on the file system, holds only the files as they are now, so a restored module is compared with them. A module another program changed there since the project was opened stays modified after the restore. A project that is not in a repository yet has no revision to compare with and stays modified after any restore.
Defining Project Dependencies
A project dependency can be defined when a particular rule project, or root project, depends on contents of another project, or dependency project. Project dependencies are checked when projects are deployed to the deployment repository. OpenL Studio displays warning messages when a user deploys projects with conflicting dependencies.
To define a dependency on another project, proceed as follows:
- Open the Overview tab of the page of the project.
- If the project is not editable, make it editable as described in Editing and Saving a Project.
- Click Edit.
- In the Dependencies section, click Add, select the dependency project in the Project name field, and select Auto-included if required. To remove a dependency, click the trash icon next to it.
- Click Save above the sections.

Managing project dependencies
If Auto-included is selected in the multi-module mode, tables of all modules of the dependency project are accessible from any module of the root project.
If Auto-included is cleared or the single module mode is selected, the root project module has access to the particular module of the dependency project only if an appropriate dependency is added in the Environment table of the root module.
[!Note] Module names of the root and dependency projects must be unique.
[!Note] Dependency projects must be open to make dependency work. When a project with dependencies is opened, OpenL Studio offers to open its dependencies too, on the branch of the project, as described in Opening a Project.
For more information on project and module dependencies, see the OpenL Tablets Reference Guide > Project, Module, and Rule Dependencies.
Editing Localization Messages
The Localization screen shows the localization messages of a project, the message*.properties files of its i18n folder, as one table of all languages, and changes them. The msg function of the rules reads these messages. For more information on localization, see OpenL Tablets Reference Guide > Project Localization.
To open the screen, open the project, click the arrow next to the module name in the breadcrumb, and select Localization below the modules. To return to a module, select it in the same list. The screen also opens from the following places:
- Open in Editor of a localization file selected in the projects tree, as described in Editing a Text File.
- The key of a
msgcall in a table cell, as described in Checking Localization. - A warning about a localization file in the compilation problems panel, as described in Checking Localization.
The project must be open: for a closed project, the screen offers Open, which opens it as the module page does, asking whether to open its dependencies too.
The screen has the header of the module page: the breadcrumb switches to another project or branch, the title switches to a module, and the header offers the actions of the project, such as Sync, Copy, and Test. Switching to another branch with unsaved messages asks to discard them first. Opening the screen compiles nothing: the compilation indicator beside the title follows a compilation started elsewhere, and Refresh beside it compiles the project again and reads the localization files anew. Refreshing, synchronizing the project, or opening another revision reads the files anew, and if the messages have unsaved changes, OpenL Studio asks to discard them first.

Localization messages of a project
The screen contains the following elements:
- The left pane lists every key of the project in the order the files write them. All Messages opens the table of all keys, and a key opens the page of that key. The search field of the top bar, named Messages on this screen, narrows the list down to the keys whose names contain the typed text.
- The table shows a row for each key and a column for each language, with the language and its file in the column title. The default language comes first, followed by the other languages by name, each regional language next to its language.
- A cell shows the text of the language. A language without its own text shows, in grey, the text it falls back to and where that text comes from, such as Inherited from Default: a regional language falls back to its language, and every language falls back to the default one. A text a project dependency defines in the same language comes before the fallback language of the project. A key that no language down to the default one has shows Not found: the rule returns the key itself, and so does a key written on a line without
=or:, which has no text. A text left empty on purpose, such askey =, shows Empty text, and a rule that asks for it gets the empty text. - The keys that only the project dependencies define have no rows of their own: they are changed in their own project.
- A warning icon marks a text the check of the files warns about. Point to the icon to see the warning, or click the text to see the warnings under it.
A long table is read a page of keys at a time as it is scrolled. To narrow the table down or order it, use the column titles:
- To find keys, click the magnifier in the Key column title, type a part of a key or of a text in any language, and press Enter. Select Only With Problems to keep the keys with warnings only.
- To find the keys a language does not translate, click the filter icon in the title of the language column and select Not translated. With several languages filtered, the keys none of them translates remain.
- To order the keys by name, click the Key column title: the first click orders them ascending, the second one descending, and the third one restores the order of the files.

Searching keys
A key opens on its own page when it is selected in the left pane or in the Key column. The page lists the text of the key in every language, with the warnings under the texts. A page opened from a warning about a language marks the row of that language. The address of the page names the key and the marked language, so the page can be shared as a link. The copy icon next to the key copies the key.

Localization messages of a key
A key that a rule asks for but no localization file of the project has opens a page that says so:
- If no project has the key, the page offers Add Key, which adds the key with its text in the default language.
- If a project that the project depends on has the key, the page names that project and offers Open in with the name of that project, which opens the key in that project, and Override Here, which adds the key to the project so that its own text replaces the text of the dependency.
The messages are changed by a user who may change the project. Any other user reads them: the texts do not open for writing, and the screen offers no Save, Undo, Add Key, Add Language, or Create Default Language.
To change localization messages, proceed as follows:
- To change a text, click it, or select it with Tab and press Enter, type the new text, and press Enter; Shift+Enter starts a new line, and Esc cancels the change. To remove the text of a language so that the language takes the inherited text, click the text and click Use the inherited text next to it. To make a text empty, clear it and press Enter. A cell that shows an inherited text opens empty, and leaving it empty keeps the inherited text.
- To add keys one after another, use the row under the table: type the key, press Enter to move to the text of the default language, press Tab to move to the texts of the other languages, and press Enter to add the key. A language left empty takes the inherited text. The new keys appear at the end of the table, as they are written at the end of the files. Add Key above the table adds a key in a dialog.
- To add a language, click Add Language or the plus icon after the last language column, and select the language and, for a regional language, the country. The new language column starts empty and shows the inherited texts, so no text has to be copied, and Save writes its file, such as
message_de_LU.propertiesfor German (Luxembourg). A language the messages already have cannot be added again. A project without localization files offers Create Default Language, which creates themessage.propertiesfile. - To remove a key from every language, click the trash icon in its row, or Remove Key on its page, and confirm the removal.
Every change is a separate step, kept on every page of the screen until it is saved. Undo takes the last step back, and Redo repeats it. Save writes the changes to the files: only the lines of the changed keys are written, new keys are added at the end of the files, and comments, blank lines, and the other keys remain as they are. A changed line keeps the separator it is written with, such as ` = `, and a new key takes the separator of the file. A file not written in UTF-8 is written in UTF-8 when it is saved, which the screen notes above the table. A change that cannot be written, such as a key that a language already has, cancels all changes of the save, and no file is written. Saved changes stay in the project until the project is saved, as any other change of its files. Saving the project with unsaved messages offers to save the messages first, and leaving the screen with unsaved messages asks for confirmation.
Checking Localization
The compilation of the project checks the localization files before its modules, and the calls of msg in the rules as each module compiles. When the localization files are saved, they are checked again at once, without compiling the project. A project opened but not compiled yet is checked as well: the compilation problems panel lists the warnings about its localization files before any compilation, and the compilation indicator stays idle. For the list of the checks, see OpenL Tablets Reference Guide > Checking Localization.
The warnings appear in the compilation problems panel at the bottom of the Localization screen and of the module page:
- A warning about a key of a localization file names the file and the key. Selecting it opens the page of the key with the row of its language marked.
- A warning that a language leaves keys untranslated opens the table with the Not translated filter of that language.
- A warning about a
msgcall belongs to the table the call is written in, and is shown on the cell of the call.
In a table, the key of a msg call is a link. Point to it to see the default text of the key, or a note that the default localization file does not have the key, and click it to open the page of the key. The page opens in the project when the project has the key in any language, and otherwise in the project dependency that defines the default text of the key. A key that no localization file of the project or of its project dependencies defines, such as a key of a library on the classpath of the project, is not a link: pointing to it shows its default text, marked as coming from an external resource. A text of another cell that equals a key of the default localization file, such as a key a table chooses for a later msg call, is underlined with a dotted line as a possible key, and leads to the page of the key as well.

The key of a msg call in a table cell
Viewing Tables
OpenL Tablets module tables are listed in the module tree. Table types are represented by different icons in Rules Editor. The following table describes table type icons:
| Icon | Table type |
|---|---|
| Decision table. | |
| Decision table with unit tests. | |
| Column match table. | |
| Column match table with unit tests. | |
| Tbasic table. | |
| Tbasic table with unit tests. | |
| Data table. | |
| Datatype table. | |
| Method table. | |
| Unit test table. | |
| Run method table. | |
| Environment table. | |
| Property table. | |
| Table not corresponding to any preceding types. Such tables are considered comments. | |
| Spreadsheet table, Constants table. |
For more information on table types, see OpenL Tablets Reference Guide > Table Types. The number of errors that a table or a group of tables contains is displayed as a red badge next to its name in the tree.
The tables that correspond to none of these types — the utility tables — are hidden by default: they take no part in the rules. To list them, in the module tree, click the filter button next to the sorting mode, select Show utility tables in the Advanced filter dialog and click Apply. A utility table is named by whatever its first cell says, opens as the grid it is, and can be edited the same way as any other table; it carries no properties, so the Table Details pane offers none for it. While the utility tables are hidden, a search by name in the tree, and an extended search of all table types, tells how many of them it would find, such as 2 tables hidden by the type filter, and Show them lists them. Show them selects Show utility tables, which the browser keeps like any other choice of the Advanced filter dialog: the utility tables stay listed after the page is reloaded, until it is cleared in the dialog.
To view contents of a particular table, in the module tree, select the table. The table is displayed in the middle pane. If the project is closed or locked by another user, the table can be viewed but cannot be modified. Modifying a table of an open project changes its status to In Editing.
OpenL Studio draws a table in one of two looks, selected by the Excel Formatting switch of the theme menu, as described in Switching the Theme:
- Excel Formatting off, the default — the table is drawn by what its cells mean, in the colours of the OpenL Studio
theme, light or dark. The formatting of the Excel file is not drawn, except the indent, which carries the
structure of a TBasic and a ColumnMatch table. An indented cell keeps its text on the side it is indented from,
left or right:
- The parts of a table are set apart by lines in the colour of the text: a line above and below the header, the properties and the code, a line above the titles and a heading inside the body, and above each row of the horizontal values of a lookup. The types of a Datatype and of a Constants table stand among the values and have no line of their own. The header has its name in bold and its keyword, types, and punctuation in a fainter colour.
- The properties and the code the compiler reads, such as
C1andRET1of a Rules table, are drawn in a fainter colour. - The titles of what a table takes, such as the conditions of a decision table, are bold, centered, and filled grey. The titles of what a table gives, such as what a decision table returns, the columns of a Spreadsheet, the fields of a Data table, or the horizontal values of a lookup, are filled in a tint of the accent colour of the theme, and the values it gives, the rows of a Data table and the names of the fields of a Datatype and of constants among them, in a lighter tint.
- The names of the rows and columns, such as the rule names of a Rules table or the keys of a Data table, are bold.
The step a Spreadsheet returning one value returns, the step RETURN or else the last step, is bold, with a
line above it and a double line below it. In a Spreadsheet returning
SpreadsheetResult, the name of a step marked*is bold, and so are the values it returns: the values of the marked steps in the marked columns, or in every column when no column is marked. When only columns are marked, every value of those columns is bold and no step name is. Their fill does not change and no line is added. - In any Spreadsheet, a step or a column marked
~, a local value left out of aSpreadsheetResult, is italic in a fainter colour: its name or title and every value of it. Its values are neither coloured by type nor highlighted. Its fill does not change and no line is added. - A heading inside the body, such as a merged step of a Spreadsheet, is centered and filled like a title. A dotted line sets apart the rules that share a merged value of a condition, and the columns of a lookup that share a merged value, from the titles down. In a Data, a Test and a Run table where a row takes several lines, such as a test case defining a collection one element per line, a dotted line sets apart every row.
- A number and a date are aligned to the right, and a line under the last row closes the table.
- Code is highlighted as the code editor of the theme highlights it: an expression, such as a formula of a
Spreadsheet, the code the compiler reads, such as
C1andRET1, the body of a Method table, and the steps of a TBasic table, its operations such asIFandEND IFincluded. - A value is coloured by its type, in the colours the code editor of the theme gives values: a number and a
date in one colour, a boolean and a text each in another. A value is coloured whole, such as
2026-10-15,1,000.50, or10%.
A table of the type Other is drawn as the Excel file formats it.

Table drawn in the colours of the OpenL Studio theme
-
Excel Formatting on — the table is drawn as the Excel file formats it: its fills, borders, font colours and weights, and alignment, in black on white whatever the theme. The text is written in the font of OpenL Studio in both looks, whatever font the Excel file names.

Table drawn with the formatting of the Excel file
The switch changes only the screen: the Excel file and the project are not changed, and the table is not read again. The comparison of Excel files always draws the formatting of the files.
Modifying Tables
OpenL Studio provides embedded tools for modifying table data directly in a web browser. To modify a table, proceed as follows:
-
In the module tree, select the required table.
The selected table is displayed in the middle pane in read mode.

Table opened in OpenL Studio
- To switch between simple and extended view, in My Settings, opened by the settings icon in the top-right corner, turn the Show Header and Show Formulas options on or off as required.
- To switch the table to the edit mode, perform one of the following steps:
- Above the table, click Edit.
- Double click the cell to edit.
Alternatively, the file can be edited in Excel. Clicking the Export button initiates file download. After editing the file locally, it can be uploaded back to the project in Rules Editor as described in Exporting, Updating, and Editing a Module or by selecting the file in the project tree on the left of the project page.
The following table is switched to the edit mode:

Table in the edit mode
The edit mode provides the following functional buttons:
Button Description 
Saves changes in table. 
Reverses last changes. 
Reapplies reversed changes. 
Inserts a row after the selected one. 
Deletes a row and selects the row that takes its place, or the new last row. 
Inserts a column before the selected one. 
Deletes a column and selects the column that takes its place, or the new last column. 
Merges the selected cells into one: select the first cell, then Shift+click the last one. A merged cell keeps one value, so cells holding different values are not merged. 
Takes the selected merged cell apart. 
Aligns text in currently selected cell with left edge. 
Centers text in currently selected cell. 
Aligns text in currently selected cell with right edge. 
Make the text font bold. 
Applies italics to the cell text. 
Underlines the cell text. 
Sets the fill color. 
Sets the font color. 
Decreases indent. 
Increases indent. The alignment, font and color buttons are shown only while Format tables on save is cleared in System Settings and Excel Formatting is on. Otherwise a save writes the OpenL table style over them, or the table is drawn in the look of OpenL Studio, which does not show them. The indent buttons are shown with them, and in a TBasic or ColumnMatch table in every case: these tables read their structure from the indent. In a table of an
.xlsxfile, the toolbar ends with the marks for a piece of a cell text, described below.The fill color and font color buttons open the palette of Excel:
- Theme Colors — the ten theme colors of the Excel file, each with five shades under it. A theme color is written as the theme color, so the cell takes the colors of the theme of its Excel file.
- Standard Colors — the ten fixed colors of Excel, from Dark Red to Purple.

Picking a fill color
Resting the pointer on a color shows it on the selected cell. Until the table is saved, a theme color is shown as Excel shows it in a new workbook.
The Close button at the end of the toolbar leaves the edit mode. When the table has unsaved changes, OpenL Studio asks whether to discard them.
A merged cell grows over the line laid down beside it, the way it does in Excel. A row inserted inside a merged group therefore has a cell only in the columns the group leaves free, and a row inserted under a merged heading is banked across the table as that heading is. The table shows this before anything is typed into the new line, so every value is saved in the column it was typed under.
An MS Excel formula keeps computing from the cells it names, the way it does in Excel. A row or a column inserted into a table moves the cells after it, and a formula that names one of them is changed to name it where it moved:
=D4*3becomes=E4*3once a column is inserted before column D of the table. A range over the place grows over the new line, as=SUM(B4:D4)becomes=SUM(B4:E4). A formula that names a cell which stays where it is, beside the table, above it or before the place, keeps its text. A row or a column removed turns a reference to its cells into#REF!and makes a range over it shorter. This holds for the formulas of every sheet of the workbook and for its defined names, and also when a table moves to another place of its sheet to make room for the new line. The formulas that refer to the sheet are computed again. Conditional formatting and data validation keep the addresses they had.The first column is the reader’s like any other: the table header is banked across every column, so a column inserted before the first one widens that bank and a first column removed narrows it. The header keeps the corner OpenL finds the table by. The header row itself cannot be removed, since a table that starts on a line OpenL reads as no header is a table nobody can find again.
The rows of the table properties keep their cells where they are when a column is inserted or removed, so each property keeps its name and its value, and Update table properties on editing updates them in place. A column is not removed when the table would become narrower than its properties.
A table too large to draw at once opens on its first 250 rows, with Show more rows under it for the rest. A merged cell is never split between two of those readings: the first reading runs on to the end of a group it would otherwise have cut, so the group is one cell on screen and every action on it — taking its rows away, adding a row after it, writing its value — acts on the whole of it. A column is added with a value for each row, so Insert Column Before stays unavailable until every row of the table is shown. A cell a compilation message points to is read with the rows down to it, however far below the first rows it lies. The cases of a test table keep their numbers on the rows shown, even when the rows of the last case shown are not all read yet.
The rows are drawn as they scroll into sight, so a long and wide table opens and scrolls without holding the page up. A column keeps the widest width it has been shown at, and the selected cell stays in sight as the arrow keys move it, down and across. A cell being edited keeps what is typed into it while the table is scrolled away from it and back.
-
To modify a cell value, double click it or press Enter while the cell is selected.
A cell is written the way its own type asks for — a whole number takes no decimal point, a date is picked from a calendar, a value of a known set is chosen from a list — and it keeps that way of writing wherever a row or a column laid down since has moved it.
A number cell of a module that has constants of its type, written in a Constants table, also takes the name of one of them, such as
Noonfor a constantInteger Noon 12: the cell is written as text, and the names of the constants are offered as you type.Most tables declare what a whole part of them holds. A Data table and a Test table declare their columns, a decision table its conditions and its returns, a lookup the cells its rules meet in — and every cell of that part is written the way the part was declared, however many rows or rules the table has. A line added to such a table is therefore written the same way at once: a column of dates takes a calendar in the new row too, a rule added to a lookup takes numbers where the returns are, and a column added beside the last one takes the values its horizontal condition allows. A table whose columns are declared and which holds no rows or no rules yet says the same before anything is written in it.
Elsewhere — in a Spreadsheet, in a Datatype, in a table written as a plain grid — a cell of a line just added is written as plain text: nothing is known about it until the table is saved and read again.
-
To draw the attention of reviewers to a piece of a text, mark it. Open the cell, select the piece, and on the toolbar above the table click one of the marks:
Mark In OpenL Studio In the Excel file Error bold, in the error color of the theme bold, Red Warning bold, in the warning color of the theme bold, Orange Success bold, in the success color of the theme bold, Green Info bold, in the info color of the theme bold, Light Blue 
Marking a piece of a text
Clear Mark takes the marks off the selected piece. Text typed inside a marked piece takes its mark. The marks are available only while a piece of the text of the open cell is selected, and clicking one leaves the cell open with the piece still selected.
A mark changes the text only. It is saved into the Excel file as rich text of the cell, so Excel shows it the same way, and the cell keeps its style: no cell style is added to the Excel file. A mark does not change how the rule is compiled and run, and it is kept when another cell is saved, when the table is formatted on save, and by Reformat Excel files. Every other font a piece of a text has in the Excel file, such as italics or another color, is replaced by the font of the cell when the table is formatted.
Marks are offered for a text, an expression and a text of several lines, in every cell of a table but its header. A value written as a number, a date, a value chosen from a list, or an Excel formula keeps no marks. Marks are saved to
.xlsxfiles only: a table of an.xlsfile offers no marks. -
To enter a formula in the cell, double click it, right-click the cell being edited, and in the Switch to list select Formula Editor.
Now a user can enter formulas in the selected cell. A formula entered here is an OpenL formula, such as
= $Base * 2: it is saved as the text it is and calculated by OpenL. In the Excel file, the text follows an apostrophe, so MS Excel keeps it a text when the cell is edited there. The same list offers Text Editor and Multiline Editor to write the value in another way. The editor the cell is open in is shown in the list but cannot be selected.To enter an MS Excel formula, such as
=B2*C2, select Excel Formula Editor in the same list. The formula is saved as an MS Excel formula, and OpenL reads the value MS Excel computes for it. A cell that holds an MS Excel formula opens in Excel Formula Editor. As in MS Excel, a value typed there without=replaces the formula; to replace it with a text starting with=, such as an OpenL formula, switch the cell to another editor. -
To save changes, click Save
.Cells written and not yet saved live on the screen alone. Anything that reads the workbook afresh — switching the branch, opening a revision, restoring a local version, refreshing the module — asks whether to discard them first, so none of them is lost without a word. Saving the table’s properties in Table Details writes them along with the properties, since the properties are rows of the table itself. The cells are written first, so they stay saved even when the properties are refused.
A table that has no room to grow where it stands, such as one given a row at its end right above another table, is moved to an empty area of its sheet when it is saved. The table stays open at its new place.
If a table contains an error, the appropriate message is displayed.

Example of an error in a table
The Show stack trace link under the message allows viewing all stack trace for this error.

Error stack trace example
Reformatting Excel Files
OpenL Studio formats the tables of a project with one style, the OpenL table style. The style uses only what Excel itself offers, so the tables look the same in Excel and change with the theme of the Excel file:
-
Cell styles — each part of a table takes a cell style of the Cell Styles gallery of Excel, so a selected cell shows what it is in the gallery:
- Title — the header.
- Explanatory Text — the table properties.
- Calculation — the code the compiler reads, such as
C1andRET1of a Rules table, and the types of a Datatype and of constants, which have no line of their own. - Heading 3 — the titles of what the table takes, such as the conditions of a decision table, and a heading inside the body, such as a subroutine of a TBasic table.
- Heading 2 — the titles of what the table gives, such as what a decision table returns, the fields of a Data table, or the horizontal values of a lookup.
- Heading 4 — the names of rows and columns, such as the rule names of a Rules table or the keys of a Data
table, and the names of the steps a Spreadsheet returning
SpreadsheetResultmarks*. - Input — the values the table takes, and the step names of a Spreadsheet.
- Output — the values the table gives, such as the rows of a Data table, and the names of the fields of a Datatype and of constants.
- Total — what the table returns, such as the step a Spreadsheet returning one value returns or the
RETURNstep of a TBasic table.
The cells a Spreadsheet returning
SpreadsheetResultreturns of the steps and columns marked*keep their cell style and are bold. The cells of a step or a column a Spreadsheet marks~keep their cell style and are italic, in the text colour of the theme made lighter, as the table properties are.OpenL Studio redefines these styles in the Excel file with the theme colours and the theme fonts, in the font size of the Normal style, so the rows keep their height.
- Theme colours and fonts — every colour is a theme colour, and the titles and the header are written in the heading font of the theme and the rest in its body font. Changing Page Layout > Colors or Fonts in Excel changes the look of the tables. An Excel file without a theme gets the Office theme.
- Lines — every line is in the text colour of the theme. A line runs above and below the header, the properties and the code, above the titles and a heading inside the body, above each row of the horizontal values of a lookup, and a line closes the table. The types of a Datatype and of a Constants table stand among the values and have no line of their own. A fine line sets apart the rules that share a merged value of a condition, the rows of a Data, a Test and a Run table where a row takes several lines, and the columns of a lookup that share a merged value from the titles down, and what a table returns has a line above it and a double line below it. No other line is vertical, except the fine line that sets apart the columns of a Data, a Test and a Run table written the other way round.
- Header — the header is merged into one cell across the table, unless another cell of its row holds a value, or a block of filled cells, such as a note, ends right above the header and starts over one of its cells after the first: merged, the header would join that block to the table, and the table would no longer be found. The name of the table is bold, the names of the parameters are in the text colour, and the keyword, the types, and the punctuation are lighter.
To format every table of the project, above the table, click More, select Reformat Excel files, and in the dialog, click Reformat. A tooltip on the menu item says what the action does. With Excel Formatting on, a table shows the formatting its Excel file gave it before the reformatting and the OpenL table style after it.

Table before reformatting

Table formatted with the OpenL table style
The project is compiled first when it needs to be: a module set to compile alone has the whole project compiled, and a project changed since it was compiled, with Verify on Edit turned off as described in System Settings, has the module compiled again. A project whose compilation was stopped is not formatted.
Reformatting changes only the look of the tables:
- Each cell keeps its value, its number format, its indent, its text wrapping, and its text rotation. The indent carries the structure of a TBasic and a ColumnMatch table.
- A text that the Excel file formats in pieces of its own, other than the header, is written in the font of its cell.
- Cells outside the tables are not changed, and reformatting again changes nothing more.
- Tables of the type Other,
.xlsfiles, a table written as several partial tables, and a table of a dependency project are left as they are. - The cell styles that no cell uses any more are removed from each Excel file.
Like any other change of a table, the change is kept in the workspace until the project is saved.
While Format tables on save is selected in System Settings, as it is by default, every table is formatted when it is saved, created, or copied, with no compile:
- An edited table keeps the roles OpenL Tablets compiled it with. A row or a column inserted inside a part of the table takes the role of that part, such as a rule inserted between two rules, and a line inserted where two parts meet takes the role of the line next to it that holds values, such as a rule inserted under the titles.
- An edit that changes the roles, such as a condition column made a return column, a parameter added to the
header, or a step of a
SpreadsheetResultmarked*, takes the roles the edit gives at the same save. OpenL Studio reads the edited table alone for it, with no compile of the module. A Datatype, a Vocabulary, a Conditions, an Actions or a Returns table takes its new roles at its next save. - A created table takes the roles OpenL Tablets will compile it with, whether it is created in the table creation window, through the REST API or through the MCP server: OpenL Studio reads the new table alone against its module. A Datatype or a Vocabulary table, and a table created in a new module, takes the roles the table creation window lays it out in, or else the roles its text tells: the parts its type writes, found where the type writes them.
- A copied table takes the roles OpenL Tablets will compile the copy with, or else the roles of the table it is copied from.
- The header and the properties are formatted as they stand, so a property written by the edit takes the style of the properties.
With Verify on Edit cleared, a table saved again before the module is verified is saved as it is written: its roles are not known until the module is compiled. The next save after Verify formats it, and so does Reformat Excel files.
An .xlsx file uploaded into a project is formatted as well, while the setting is selected:
- a module updated with Update, and a file uploaded or updated on the page of the project;
- a project updated from a ZIP archive or from files;
- a ZIP archive that replaces a project in Design repository;
- a workbook of the project a merge of branches combines from both branches, as described in Working with Project Branches: the one Sync merges by itself, and the one Merge table by table builds.
Unlike an edit, an uploaded file is compiled, once, with the project, to learn the roles of its tables. The other
Excel files of the project and .xls files are left as they are, and a file that cannot be compiled is stored as it
was uploaded.
With Excel Formatting on, OpenL Studio also draws the formatting of text pieces that an Excel file holds, such as a header with a grey keyword and a bold name, and the cell borders the file draws, for every table.
Referring to Tables
OpenL Studio supports references from one table to another table. A referred table can be located in the same module where the first table resides, or in the different module of the same project.
Links to the following tables are allowed:
- data table
- datatype table
- rule table types
Links to the rule tables are underlined and marked blue. When a mouse cursor is put over the link, a tooltip with method name and input parameters with types is displayed.

A tooltip for the linked method to a decision table
A link to a rule written in several versions, which differ by their business dimension properties, opens the table OpenL Tablets builds to choose between those versions, validateGapOverlap_<rule name>. The table is shown read-only, without the table toolbar: Info describes how it was built, and each of its rows links to the version it selects. OpenL Tablets builds the table anew every time the module is compiled, so open it from the link rather than from a saved address. A table you write yourself under such a name is an ordinary table of the module.
Links to the data and datatype tables are underlined with a dotted line and has an appropriate tooltip with description.

Links to the datatype tables from the decision and datatype table
All fields of the datatype tables are also linked and contain tooltips. A field keeps its link and tooltip in a cell with an error, such as an index of a field that is no array or collection.

A link to the field of the Corporate datatype table
Pointing at a name an array index operator declares, such as m or i in members[(m, i) select all having i > 0], shows where its value comes from and its type, for example Element of Member[] and Member m. For more information on naming the element and its index, see OpenL Tablets Reference Guide > Element Index in Array Index Operators.
Managing Range Data Types
OpenL Studio provides a special tool, Range Editor, for adding and editing range data types, such as IntRange and DoubleRange, in rule tables and test tables.
This section briefly introduces Range Editor and provides examples of its functionality.
The main Range Editor goal is to move to a single range format in OpenL rules, namely, the ‘..’ format. For more information on ranges on OpenL Tablets, see OpenL Tablets Reference Guide > Representing Range Types.
Consider the following principles while working with Range Editor:
- The default range format is set to ‘..’ in OpenL Studio.
- When a new range is created, the ‘..’ format is used.
- When a range format other than ‘..’ is edited, if only range values are edited, the format remains the same.
Range Editor also applies to numeric ranges in the horizontal conditions of Smart Lookup and Simple Lookup tables. Double click a condition value and click its field to open the same range controls shown below. This also works when the condition value is highlighted with a compiler usage tooltip.
If a check box or the type of range is changed and the original format cannot express the new range, the range is written in the ‘..’ format, or with >, >=, < and <= for a range with one border. For example, 3+ edited to 4 stays 4+, and 1-5 edited to 2 and 6 stays 2-6.
The following example displays the decision table with data represented as a range:

Decision table with a range data type
In this table, the Hour column contains hours with the IntRange Data type. All range sells are filled except for the last one. This example is used further in this section to demonstrate how Range Editor works.
The following controls are available in Range Editor:
- From — indicates the left border of the range
- To — indicates the right border of the range
- Include — indicates whether the border is included in the range
- ‘>’ — indicates values greater than the specified border
- ‘<’ — indicates values smaller than the specified border
- ‘=’ — indicates a constant
- ‘-’ — indicates a range
To create a range, proceed as follows:
-
Double click the cell to be edited.
For example, edit the cell containing 18-21, and click the field of the cell. The table is extended by the pop-up window with a set of controls for editing the range.

Creating a range in Range Editor
- In the From field, enter the left border of the range, which is 22 for the example described in this section.
-
In the To field, enter the right border of the range.
In this example, the To value must be 24, but an erroneous value 23 is entered for further editing of this border.
- Clear the Include check box.
-
Click Done to complete.
The last cell in the Hour column is filled as follows:

New range created in Range Editor
-
To modify the range in Range Editor, double click the cell with the [22-23) range.
The table resembles the following:

Editing a range in Range Editor
- Select the To field, set the right border to 24, and select Include.
-
Click Done to save the work.
The range resembles the following:

The range edited in Range Editor
A range can also be modified using ‘>’, ‘<’ and ‘=’ controls as described in the beginning of this section.
Copying a Table
To create a table as a copy of the existing table, proceed as follows:
- In the module tree, select a table to copy.
-
Above the table, click Copy. OpenL Studio displays the Copy table “TableName” window.

Copying an existing table
- Enter a valid OpenL identifier in Table Name. It may match an existing table name when the table is
distinguished by its signature or properties. A name of any other shape is refused, by the window and by the
server alike.
The name of a Test, Run, Properties or Environment table is optional, as OpenL Tablets names such a table on its
own. Leave Table Name empty to copy the table without a name: the copy is headed by the keyword and, for a
Test or Run table, by the table it calls, such as
Test calculatePremium. A table whose header leaves its name out opens with an empty Table Name; a Conditions, Actions, Returns or Constants table copied from such a header needs a name. - Select or enter the destination Module.
- Select or enter the destination Sheet. The sheet is the table’s category, so a new sheet name creates a new category. A copy into the module of the copied table is offered its sheet, the same category; a copy into another module is offered a sheet of that module.
- Review the property name and value rows. A Properties or Environment table is copied as it stands and offers no
rows. The names are the properties applicable to the copied table’s type,
offered the way the Table Details editor lists them — by display name, under the Info, Business
Dimension, Version and Dev groups, so the dimensional properties are presented rather than guessed:
- complete the last row to add another property, or delete a row with its row control;
- select a property by its display name; a property another row already carries is not offered again, since a table declares each property once;
- enter text directly, select a date in the date picker, select or clear a Boolean check box, or select an enum
display value from the dropdown, according to the property type. A single-value enum is selected from a closed
dropdown and does not accept typed text.
The date picker opens on the date the copied table declares and follows the user’s locale; OpenL Studio
carries a date value as ISO 8601
yyyy-MM-dd. A date naming a moment of the day keeps that moment when another day is selected, because the picker chooses a day. - Version is entered as its three numbers — major, minor and variant — with the version the copied table stands for named beside them. It opens on the first version the table’s versions leave free, and a version one of them already carries is refused.
- Click Copy to save your changes.
The copy is stamped as created: OpenL Studio records Created By and Created On on it, as it does for a table created from scratch, provided Update table properties is selected in the system settings.
The table appears in the module list.
Removing a Table
To remove a table, select it in the module tree, click Remove above it, and confirm. The table is cleared from the sheet it is written on. Save the project to carry the change to the Design repository.
Searching for Tables
In Rules Editor, the search field of the top bar is named Tables. It narrows the module tree down by table name, and Extended search, the button at its end, looks for tables by several criteria in the current module, in the current project, or in all compiled projects, dependencies included. For more information on the search field, see Searching in OpenL Studio.
Searching by Table Name
To find a table in the module tree, start typing its name in the search field of the top bar. The tree shows only the tables with the typed text in their names. To get a full list of tables, delete the text in the field.

Searching by table name
Performing an Extended Search
Extended search allows specifying criteria to narrow the search through tables. To limit the search, specify the table type, text from the table name, header or cells, and table properties as described further in this section.
-
To launch an extended search, click Extended search, the filter icon at the end of the search field of the top bar. The search starts from the text typed in the field.

Initiating the extended search
-
In the Scope field, select whether search must be performed within the current module, within the current project, or within everything compiled, dependencies included.

Specifying search area
A search that is wider than the open module waits until the project is compiled.
- In the Table Type field, select one or more table types to search in. Leave the field empty to search in all table types. Then the utility tables, of the type Other, are listed only while the module tree lists them: otherwise the results tell how many utility tables the search found, such as 1 table hidden by the type filter, and Show them lists them both in the results and in the module tree. Selecting the type Other always finds them.
- In the Name contains, Header contains and Text in cells fields, enter the words or phrases to search for. The text is searched for exactly as entered, spaces at its beginning and end included, and an empty field is not a criterion. A date in Text in cells, written as dates are written in tables, such as
3/12/2014or2014-03-12, also finds the cells holding that day. A field takes up to 1,000 characters. If the search as a whole is still too long for the server, for example because of a long property value, a message asks to shorten it. - In Table Properties, click Add a property, select the required table property and enter its value. A table must match every property added. A property that takes several values, such as Tags, takes them separated by commas and matches a table that declares at least one of them.
- In the similar way, add as many table properties as required.
-
To remove a property, click the trash icon to the right of the property.

A filled form for extended search
- Click Search to run the search.
As a result, the system displays the tables matching the search criteria with the name of the Excel file they are written in. The View table link opens the table in Rules Editor. The Show body link shows the first rows of the table right in the list, and Hide body folds them back.

Extended search result

Search results with the bodies of some tables shown
Creating Tables
The Create Table action opens one window that holds the whole table: a settings strip for the type, the name and the destination, and below it the sheet itself. The skeleton is rebuilt the moment the table type changes, and the header cell at the top of the sheet shows the exact OpenL header the table will be written with.

The Create Table window
To create a table:
- In OpenL Studio, click Create Table.
-
In Table Type, select one of the supported types:

Selecting the table type
- Datatype — Type, Name, Default Value, Mandatory, Description, and Examples. Type accepts a value directly or
a value selected from simple types, vocabularies, and datatypes of the project and of the projects it depends
on, as the project compiles them: a datatype or a vocabulary whose own table has errors is not offered.
Extends suggests only those complex datatypes and writes the selected parent into the header; it does not
offer
SpreadsheetResult. Select the Mandatory check box to writetrue; clear it to leave the cell empty. - Vocabulary — one value column and a simple Base Type, written in angle brackets in the Datatype header. The value cells use that type’s editor.
- Constants — Type, Name, and Default Value. Type is selected from simple types, and Default Value uses the selected type’s editor. A Constants table carries no name of its own, so the Table Name field is not shown.
- Spreadsheet — Steps and Formula, returning
SpreadsheetResultunless another type is chosen. A Spreadsheet names its own columns in the first row of the table, so those names are cells to edit and more columns can be added beside them. - Smart Rules and Simple Rules — one column for each input argument. A simple result adds an Output column; a Datatype result adds one output column for each Datatype field.
-
Smart Lookup and Simple Lookup — a two-dimensional table, read where a row and a column cross. The leading arguments run down the left, one column each, and the trailing ones across the top, one row each. The corner where the two meet is kept as square as it can be and gains a row before a column: two arguments give one of each, three give two rows and one column, five give three and two. That corner is written as a merged cell, because its height is what tells OpenL how many arguments run across the top.
A lookup of one argument has no second axis to spread over, so it is laid out exactly like a Simple Rules table — the argument down the left, the result beside it, and no corner at all. Every row is a rule from the first one, so no title row is written above them.

A lookup with one argument down the left and one across the top
- Rules — Condition and Output.
- Test and Run — columns generated from the signature of the selected executable table: one for every
value a call has to supply, plus
_res_for the expected result, which Run omits. An argument of a datatype contributes one column per field, named by the path OpenL reads it back with —policy.mainDriver.age— as deep as the datatypes nest, a datatype of a project the project depends on included. An argument of any other type, a collection included, stays one column. The target can be any executable table in the project, whichever module holds it. Test excludes a table that returns nothing because there would be no result to assert; Run includes it because Run only calls the table. The new table opens named after the table it exercises —PremiumTest,PremiumRun— and can be renamed. A Test or Run table is placed with the project’s tests: selecting the type moves the destination to a module undertests/, and a module created for it goes undertests/too. Select Transposed to put the generated fields down rows and test or run cases across columns. - Data — columns generated from the selected Datatype, one of the project or of a project it depends on. Select Transposed to put fields down rows and data records across columns. Test, Run and Data display every word in generated titles in Title Case, such as Main Driver Age.
- Environment — Key and Value. Key is suggested from the three keywords OpenL acts on —
dependency,importandinclude. An Environment table carries no name of its own. - Properties — Property and Value. Property is suggested from the properties that may appear in a Properties
table. Its value uses the editor declared for that property: text, date picker, Boolean check box, or enum
dropdown. Single-value enum dropdowns do not accept typed text. Enum lists show display values and write their
codes. Multiple selected values wrap onto additional lines within the value column. Dates follow the user’s
locale in the date picker and are written as ISO 8601
yyyy-MM-dd. The skeleton starts with the mandatoryscopeproperty set toModule; change it toGlobalor toCategory— adding acategoryrow to name the category — as required. A Properties table carries no name of its own. - Free Form Table — a plain grid, with the sheet’s own column letters over it and nothing else. It has no header cell and no name: OpenL does not recognize such a table, and names it after whatever its first cell says. It is written exactly as it stands. Only that first cell is required — OpenL reads a table from it.
- Datatype — Type, Name, Default Value, Mandatory, Description, and Examples. Type accepts a value directly or
a value selected from simple types, vocabularies, and datatypes of the project and of the projects it depends
on, as the project compiles them: a datatype or a vocabulary whose own table has errors is not offered.
Extends suggests only those complex datatypes and writes the selected parent into the header; it does not
offer
-
Enter the table name, where the table type has one. The field opens empty and is required wherever it is shown.
The name must be a valid identifier — letters and digits of any script,
_and$, not starting with a digit — because it becomes the name OpenL compiles. It may match an existing table name: signatures and properties supplied by the file name, a Properties table, or the table’s own properties section distinguish table overloads and versions. Constants, Environment, Properties and Free Form tables carry no name and do not show the field. -
In Module, choose the module that receives the table, then choose the sheet. Both fields suggest what the project already has and accept anything else typed into them. The sheets offered are the ones the chosen module’s own workbook holds, and choosing a module selects its first sheet, since a sheet belongs to a module. The module decides only where the table is written — it does not change what a Test or Run table may target.
A module name the project does not declare creates a module. OpenL Studio derives its project-relative
.xlsxpath —rules/for a rules table,tests/for a Test or Run table — creates the workbook, and registers it inrules.xmlwhen the path is not already covered by a module wildcard. For a simple project withoutrules.xml, OpenL Studio creates the descriptor and keeps all existing root modules registered.A sheet name that the chosen module does not have creates a sheet.
The sheet name cannot contain
/ \ * ? [ ] :, which Excel does not allow in a worksheet name.
Choosing the module that receives the table
-
For Spreadsheet, Rules, Smart Rules, Simple Rules, Smart Lookup, and Simple Lookup, set Result Type and Arguments. A type can be a simple type, a vocabulary, or a datatype visible to the selected module;
SpreadsheetResultis offered here as well, because only a signature can name it. The header cell at the top of the sheet updates as the signature is filled in.
A signature builds the header cell and the columns
-
Edit the skeleton cells.
- Every body cell can be edited. The header cell at the top is a read-only preview generated from the settings.
A Datatype parent is set with Extends, which builds a header such as
Datatype Policy extends Base. - The first row opens filled in as an example. It is a placeholder to write over: every cell holds a value of
the type its column declares —
1for an Integer,TRUEfor a Boolean,2026-06-15for a Date,1-10for an IntRange, and for a vocabulary the first value that vocabulary offers — so a table created untouched is a table that works. A cell whose value no single cell can spell out, such as another datatype or a collection, opens on<field>_id_1, the way a Data table row holding that value is referenced. - A value cell uses the editor for the type its table definition gives it. Boolean cells offer
TRUE,FALSEand an empty value. Vocabulary cells use a closed dropdown that offers their declared values and empty, without accepting typed text. Numeric cells use a number input, Date cells a date picker that displays the user’s locale and stores ISO 8601yyyy-MM-dd, and Character cells accept one character. Byte, Short, Integer and Long values must stay within the range of the selected type. This applies to Datatype defaults and examples, Constants and Vocabulary values, and generated Rules, lookup, Test, Run and Data cells, except for the condition cells described below. - A condition cell of a Smart Rules, Simple Rules, Smart Lookup or Simple Lookup table is matched by range as
readily as by equality, so a condition of a numeric, Character, String or Date type is typed rather than
picked: it takes
18-30,>=18,[18 .. 30)or18 and moreas well as a single value, it is not held to the range of its type, and a Character condition is not capped at one character. What OpenL cannot read is reported when the table compiles. A Boolean or Vocabulary condition has no range of its own and keeps the dropdown its type gives it. - Filling the last row automatically adds an empty row below it.
-
Point at a row to reveal its actions: insert a row above or below it, or delete it. A Free Form Table reveals the same actions for its columns, above the grid.

Actions revealed for the row under the pointer
- Columns controlled by a table signature, Datatype, or tested table change when that definition changes.
- Where a table type has no fixed set of columns — a Free Form Table, a Spreadsheet, a lookup — filling the last column adds an empty column to the right. A table wider than the dialog scrolls sideways rather than widening it.
- Blank rows are not written. OpenL reads a blank row as the end of a table, so an empty row left in the middle of the skeleton is dropped together with the trailing one kept for input.
- While Create is unavailable, the dialog names what is missing, one thing at a time and in the order the fields are laid out, so the first thing shown is the first thing to fix.
- A Spreadsheet needs at least one filled row, because OpenL rejects a table with no body. Create stays disabled until one is entered.
- A lookup of two or more arguments needs a value in every row of its top band — one for each argument running across the top — and at least one row below to look up by. A blank row is never written, so a top row left empty would shorten the merged corner and change how many arguments OpenL reads as horizontal. Create stays disabled until both are filled. A lookup of one argument has no band, so it needs only a filled row.
- A lookup’s top band and the argument titles beside it belong to the table type and carry no row controls.
- Every body cell can be edited. The header cell at the top is a read-only preview generated from the settings.
A Datatype parent is set with Extends, which builds a header such as
- Click Create.
The table is created in the selected module and opens in the Rules Editor. Its availability to other modules depends on project and module dependencies. For more information, see OpenL Tablets Reference Guide > Project, Module, and Rule Dependencies.
For an executable table, Create Test opens the same window with a Test table skeleton generated from the selected table signature. The generated columns contain every input parameter and the expected result. The tested table can also be changed in the window.

A Test table generated from the tested table
Comparing Excel Files
OpenL Studio compares two Excel files and shows the tables and other elements that differ. To compare two Excel files, proceed as follows:
-
In Rules Editor, above the table, select More > Compare Excel files.

Initiating Excel comparison functionality
The comparison opens in a window of its own.
-
Drag the two files to compare into the box, or click it and select them.

Excel files ready for comparison
- To list the elements that are the same in both files as well, select the Show equal elements check box.
- To list the cells outside OpenL tables as well, such as notes or formulas beside them, select the Other tables check box. Without it, such cells are left out of the list of elements, unless both versions of a conflict changed them differently.
- To list the tables that differ in formatting only as well, such as a fill, a border or a font, select the Formatting changes check box. Without it, a change of formatting is left out, so only what reads differently is listed.
-
Click Compare.
The elements of the two files are listed grouped by Excel sheet. Selecting an element displays its two versions drawn as one table. The rows and the columns of the two versions stand against each other, the way the lines of two texts do in a text comparison:
- Each row is led by the sign that says what became of it, and each sign says what it means when the pointer rests on it.
- A row the second file adds is marked with a plus and painted green, and a row it no longer holds is marked with a minus and painted red. Each stands where it stands in its file.
- A column only one file holds stands beside the columns of the other file, painted the same way.
- A cell the two files read differently is framed in orange and carries both values, the one the first file has before the one the second file has in its place. Changed cells next to each other share one frame, so a changed row, a changed column or a table changed throughout is framed as a whole.
- Every other cell keeps the colours the workbook gives it.
A legend on the line above the table tells what each colour and each sign means. A cell differs when its value, its formula, the result of its formula, its comment or its merging differs: a formula kept as it was differs too once a cell it reads changed its result. Merged cells stretched over an added row or column are the same merged cells. A change of formatting alone frames no cell.
A change of formatting is shown only with Formatting changes selected. The table is then framed whole with a dashed orange line, as a merge frames it, and the line above the table says Formatting changed. Without Formatting changes, a table that differs in formatting only is listed as one that reads the same, so only with Show equal elements, or as a moved one when it was moved as well, and a table that changed its values too shows them without the frame. When the formatting is all that differs between the two files, the list of elements says Only the formatting differs; click Show next to it to list these tables.
The tables are found by their headers and their places, the way a merge of two branches finds them, so a table moved to another place of its sheet is still the same table. Such a table says where it was moved from and where to, as Moved from A16:B20 to E1:F5, both under its name in the list of elements and on the line above the table. A table only pushed down or up by the rows inserted or deleted above it is not moved and reads the same. A table renamed and moved at once is still the same table when the rest of its header, such as its parameters, stays and it keeps at least half of its values. Cells outside OpenL tables, such as notes or formulas beside them, kept at their place are the same cells changed, whatever they hold. Rows are paired by the values they hold, so a row removed and another one added read as removed and added, and the rows between them as changed only where their values changed. A row of a single value, as a value of a vocabulary is, replaced by another value is that row changed, also when a row is added next to it. A table that changed both its rows and its columns pairs its columns by the values they share first. The workbooks are read as they are and are not compiled, so a module with errors or with dependencies on other modules is compared as well as any other.

Excel file comparison results
Every element is marked with what became of it:
- An element that changed its contents carries the changed file icon
. - A table moved to another place of its sheet with nothing else changed carries the moved file icon
. The places it was moved from and to are listed under it, as they are under a moved table that changed too. - An element the second file adds carries the added file icon
. - An element the second file no longer holds carries the removed file icon
. - An element that reads the same in both files carries a plain file icon.
The list of elements and the table are separated by a divider. Drag the divider to give either side more room. The button above the list hides it and leaves the table alone; while the list is hidden, the button that brings it back and Select other files are above the table.
-
To read the two versions one next to the other, select Side by side at the end of the line the files are named on.
Each file heads its own column, and a divider between them gives either file more room:
- A row or a column only the second file holds is painted green, and an empty row or column stands against it in the first file.
- A row or a column only the first file holds is painted red, and an empty row or column stands against it in the second file.
- A cell the two files read differently is framed in orange in both files, changed cells next to each other sharing one frame.

The two versions side by side
- To display the rows that read the same in both files, select the Show equal rows check box. Without it, an element shows the rows that differ, the rows added, removed or holding a framed cell, with one equal row on either side of each, and the first row of the table, its header, so that every change is read in its place. The equal rows left out in between are one row across the table that says how many they are, such as ⋯ 3 equal rows, the way a text comparison marks the lines it skips. A single equal row is shown rather than left out. Merged cells cut by such a row are drawn on either side of it. A table with a column added or removed shows every row, since the column runs through all of them.
- To compare another pair of files, click Select other files.
If the two files hold the same elements with the same contents, the File elements are identical message is displayed.
Viewing and Editing Project-Related OpenAPI Details
How a project created from an OpenAPI file stores it is described in Creating a Project from OpenAPI file.
The OpenAPI section of the Overview tab of the project page shows the specification of the project. A project that declares no specification shows the note The project declares no OpenAPI specification. A specification that is stored in the project root under the default name openapi.yaml, openapi.yml or openapi.json is found automatically and used for reconciliation even if rules.xml does not declare it.
After an explicit OpenAPI import or generation operation stores its settings in rules.xml, the OpenAPI section shows
the OpenAPI file name, mode, and module names.

OpenAPI project after explicitly running Tables generation
It contains the following information:
| Field | Description |
|---|---|
| File | Location and name of the OpenAPI file in the project, such as openapi.json and files/example.json. |
| Mode | Last operation performed with this OpenAPI project. - Tables generation mode is used for generation or regeneration of the rules and data type modules based on the OpenAPI file. For the Tables generation option, project reconciliation is done, too. - Reconciliation mode is set to validate the project against the OpenAPI file. To revalidate the project, change the path to the OpenAPI file. |
| Services module | Name of the module that contains rules. It is shown for the Tables generation mode. |
| Data types module | Name of the module that contains data types. It is shown for the Tables generation mode. |
The OpenAPI file and the mode are changed in the edit mode of the Overview tab: click Edit and change the OpenAPI section, as described further in this section. Like any other configuration change, it is written to rules.xml, and the project must be saved to store it in Design repository.
The following topics are described in this section:
- Generating an OpenAPI File from Rules and Datatype Tables for Reconciliation
- Adding OpenAPI for Reconciliation to an Existing Project
- Regenerating a Project from Another OpenAPI File
- Updating the OpenAPI File
Generating an OpenAPI File from Rules and Datatype Tables for Reconciliation
If a project is not generated from an OpenAPI file and it is necessary to add the OpenAPI file, this file can be generated from the existing rules and datatypes tables. Proceed as follows:
- Open the project page and its Overview tab.
-
In the OpenAPI section, click Generate specification.

Initiating OpenAPI file generation
The button is shown while the project can be modified and does not use the Tables generation mode.
The file is written to the project right away, without a window to confirm. Its info section names the project as the title and 1.0.0 as the version. The message with the file name is displayed, the project is pointed at the file in the Reconciliation mode, and the file appears in the OpenAPI section. When the file already exists, it is updated according to the current project tables.

The OpenAPI file added to the OpenAPI section
Note that successful generation of the OpenAPI file requires that the project has no compilation errors and tables contain data for the OpenAPI methods.
The file describes the datatypes as OpenL Rule Services does, as described in Datatypes with Children. Reconciliation compares a list of a datatype and its children through anyOf as the datatype itself, so a file that refers to the datatype alone is reconciled with the same result.
Adding OpenAPI for Reconciliation to an Existing Project
If a project is not generated from the OpenAPI file, but it is required to add the OpenAPI file and generate modules from it, proceed as follows:
- Open the Overview tab of the project page and click Edit.
-
In the OpenAPI section, select the OpenAPI file in the File field. The list offers the
.json,.yamland.ymlfiles of the project. To use a file from the user’s computer, click the upload icon
and select the file. The file is added to the project when the changes are saved.
Choosing the OpenAPI file and the mode
-
Select the Tables generation mode.

Selecting the generation mode
-
If necessary, modify the default names of the Services module and the Data types module, and click Save above the sections.
The services and the data types are generated into a module each, so the two names must differ, letter case aside. Names that do not are refused under both fields with the Module names cannot be the same message, and the settings are not saved. Names saved that way before stay as they are, and the Generate tables dialog refuses them with the same message until they differ.
-
In the OpenAPI section, click Generate tables and review what the generation will write.

The OpenAPI section with the Tables generation mode
If no module with the entered name is found, the workbook it is written to can be edited, and the reset icon beside the field puts back the proposed path.

Generate tables window, both modules are new
If the project already reads a module of that name, it is written wherever the project reads it, so there is no option to define a file name. When a workbook stands there, it is overwritten and the corresponding warning message is displayed.

Generate tables window, one of modules already exists
- Click Generate tables, or Generate and overwrite when the window says a workbook is replaced.
The rules and model modules are created or updated, and the message The tables were generated from the OpenAPI specification is displayed.
Regenerating a Project from Another OpenAPI File
If a project is initially created from an OpenAPI file, it can be regenerated explicitly from another OpenAPI file. Follow the steps described in Adding OpenAPI for Reconciliation to an Existing Project, select Tables generation, and choose the OpenAPI file. Regeneration overwrites the selected rules and data modules.
Updating the OpenAPI File
When the project is generated from the OpenAPI file and reconciliation is done, the system automatically validates the generated OpenL Tablets rules and data types. If the file is selected in the project tree and updated with Update in its pane, as described in Updating a File, and the name is not changed, reconciliation is completed immediately.
To reconcile a project using an OpenAPI file with a different name, proceed as follows:
- Ensure that the OpenAPI file is uploaded to the project, as described in Uploading a File, or pick it from the computer with the upload icon in the next step.
- Open the Overview tab of the project page and click Edit.
-
In the File field of the OpenAPI section, select the OpenAPI file, select Reconciliation, and click Save.

Selecting an OpenAPI file for reconciliation
The project is validated using the newly selected file.

Viewing results of the last reconciliation
Reconciling an OpenAPI Project
If an OpenAPI file is set for a project, during project compilation, the system automatically checks whether the project matches the defined OpenAPI file. If the generated OpenAPI for the deployed project does not match the existing OpenAPI file, errors and warnings are displayed. This process is called reconciliation.
Reconciliation does not expect exactly the same OpenAPI generated by the project and checks the following:
- All paths defined in the existing OpenAPI file are generated by the project.
- All paths generated by the project are defined in the existing OpenAPI file.
- All operations for each path in the existing OpenAPI file are the same as operations in the generated OpenAPI file for the correspond path.
- Operation parameters in the existing OpenAPI file and parameters in OpenAPI generated based on the project for a corresponding operation are the same and all parameter types are compatible.
- Request bodies and responses of an operation have the same media types. A media type written without its parameters, such as
text/plain, matches the same type written with them, such astext/plain;charset=UTF-8. - Schemas that are not a part of API are ignored in the reconciliation process.
- All schemas in the existing OpenAPI file that are a part of API must be generated by the project.
- All schemas generated by the project must be defined in the existing OpenAPI file.
- All fields defined in schemas must exist in schemas generated by the project.
- All fields generated by the project for corresponding schemas must be defined in the existing OpenAPI file.
- Field types in schemas must be compatible.
- A rule may return a child of the data type declared in the existing OpenAPI file, such as
Employee extends Personwhere the file declaresPerson. Then only the fields of the declared data type are compared. A data type whose schema restrictsadditionalProperties, tofalseor to a schema, accepts no child, and a parameter of a rule must be of the declared data type itself. - A field, a parameter, or a returned value whose schema lists
enumvalues in the existing OpenAPI file must be of a vocabulary data type with exactly the same values. A schema withoutenumis checked by type only, so a vocabulary data type is accepted where the file says a plain type. Anullvalue in the list is ignored, numbers are compared by value, so2and2.0are the same value, and a Java enum is not checked against the list.
| OpenAPI type defined in the file | OpenAPI type generated by the project |
|---|---|
| Integer (int32) | Integer (int32) |
| Integer (int64) | Integer (int32), Integer (int64) |
| Integer(no format) | Integer (int32), Integer (int64), Integer(no format) |
| String | String |
| String (date/date-time) | String (date/date-time) |
| Number(float) | Number(float) |
| Number (double) | Number(float), Number (double) |
| Number(no format) | Number(float), Number (double), Number(no format) |
| Boolean | Boolean |