Editing & Testing
Editing and Testing Functionality
This chapter describes advanced OpenL Studio functions, such as table editing, performing unit tests, rule tracing, and benchmarking. The following sections are included in this chapter:
Editing Tables
This section describes table editing and includes the following topics:
- Editing a Comma Separated Array of Values
- Editing Non-Finite Numbers
- Editing Numbers of Many Digits
- Editing Default Table Properties
- Editing Inherited Table Properties
Editing a Comma Separated Array of Values
OpenL Studio allows editing comma separated arrays of values. A multi selection window displaying all values appears enabling the user to select the required values.

Editing comma separated arrays
Editing Non-Finite Numbers
To enter a non-finite value in a Double or Float cell, use NaN, Infinity, or -Infinity in Formula Editor.
OpenL Studio saves these values as text in the workbook. OpenL interprets them as numeric values when compiling the
rule.
The table API returns these values as strings. Use the same strings when creating or updating a table through the API.
Entering one of these values in a cell holding an MS Excel formula replaces the formula, as any value does.
Editing Numbers of Many Digits
A workbook cell holds a number as a double, which keeps 15 to 17 significant digits. A BigDecimal value with more
digits, such as 0.6666666666666666666666666666666667, and a Long or BigInteger value that a double rounds,
such as 9007199254740993, would lose their last digits there. OpenL Studio saves such a value as text in the
workbook, with all its digits, and OpenL reads it back as the same number when compiling the rule. A test that
expects it compares with every digit entered.
A number a double holds exactly, such as 0.5 or 100, is saved as a number.
MS Excel shows a number saved as text with the Number Stored as Text mark, and its functions, such as SUM, skip
text: an MS Excel formula over such a cell leaves the number out. Keep the numbers an MS Excel formula reads within
15 significant digits.
The table API returns such a value as a string, as it is stored. Send a fraction as a string when creating or updating
a table through the API: a JSON number with a fraction or an exponent is read as a double and loses the digits
beyond its precision. A whole JSON number is read exactly.
Editing Default Table Properties
This section describes table properties available in OpenL Studio. For more information on table properties, see OpenL Tablets Reference Guide > Table Properties.
The properties of a table are shown in the Table Details pane on the right of the table. The pane lists only the properties that the table declares or inherits, grouped as Info, Business Dimension, Version and Dev. The default value of a property that the table does not declare is not listed, though it applies to the table. In the following example, the table declares only its description, so the default properties, such as Active = true and Fail On Miss = false, are not shown.

Table properties example
Default properties can be overridden at the table level; in other words, a default property can be set for the table as follows:
- In the Table Details pane, click Edit the properties, the pencil icon.
-
Open the Add a property list, start typing the name of the property, such as Fail On Miss, and select it.
A field for the value appears. For a property with the values true and false, it is a check box:

Updating a default property
-
Select or deselect the check box as needed and click the Save button.
The property appears in the Table Details pane with its new value and is written to the table.

Default property was updated by a user
Editing Inherited Table Properties
Module or category level properties are those inherited from a Properties table as described in OpenL Tablets Reference Guide > Properties Table. In the Table Details pane of the given table, inherited properties appear in a different color and are marked with an arrow icon. Resting the pointer on the icon tells where the property is inherited from, for example, Inherited from the module properties table or Inherited from the category properties table. The values of the inherited properties are not stored in the table, they are displayed in the Table Details pane, since they are inherited and applied to this table. Inherited properties can be overridden at a Table level, i.e. they can be changed.

An example of inherited category-level properties
To change an inherited property, perform the following steps:
- In the Table Details pane, click Edit the properties, the pencil icon.
-
Enter or select the required values from the drop-down list and click Save.

Updating an inherited property
The system displays the property in the table.

Inherited category-level property updated by a user
The following topics are included in this section:
Editing System Properties
When Update table properties is selected in System Settings, which it is not by default, OpenL Studio applies system properties to each created or edited table. The values of the System properties are provided in the table and in the Table Details pane.
The modifiedBy property value is set using the name of the currently logged in user. The modifiedOn property is set according to the current date. These properties are applied upon each save.
The createdBy property value is set using the name of the currently logged in user. The createdOn property is set according to the current date. These properties are applied on the first save only while creating or copying a table in OpenL Studio. A copy is a new table, so it records its own author and date rather than inheriting the ones of the table it was copied from.
The createdBy and modifiedBy properties are only applied in the multi-mode as described in Security Overview.
System properties cannot be edited in UI. The OpenL Studio users can delete those properties if required.

An example of system properties
Editing Properties for a Particular Table Type
Some properties are only applicable to particular types of tables. When opening a table in OpenL Studio, the Table Details pane offers properties depending on the type of the table.
For example, such property as Validate DT is available for Decision Tables. That means it can be selected in the Add a property list of the Table Details pane while the properties are edited. The following figure shows properties applied to a Decision Table:

Properties for the Decision table type
When opening a Data Table in the same project, these properties are not available for selecting from the Add a property list.

The Decision table properties that are not available for a Data table
The Copy table window reads the properties explicitly defined on the source table. It displays them as editable property name and value rows, offering the properties applicable to the table’s type by their display names under the Info, Business Dimension, Version and Dev groups — the same names and grouping the Table Details editor uses. The copy keeps the source table’s formatting — its cell styles, merged cells and comments.
Datatype tables and tables of the Other type cannot be copied: they carry no properties to tell a copy from the table it was made of. A Properties or Environment table is copied as it stands, its rows unchanged, so the window offers no properties for it. A module holds one Properties table for each scope and category, so a copy of a Properties table goes to another module or, for the Category scope, to another sheet.
A table whose header leaves its name out, such as a Conditions table headed by its keyword alone or a Test table that names only the table it calls, opens the window with an empty Table Name. The name of a Test, Run, Properties or Environment table is optional, and OpenL Tablets names such a table on its own, so the copy of one can be left without a name. A Conditions, Actions, Returns or Constants table needs a name for its copy.
To create a variant of a rule that OpenL selects at runtime from the request context, keep the source table’s name and give the copy a different value for a Business Dimension property, such as US States or LOB. The copy is created with its properties already set, so the two same-named tables are told apart from the start.
To create a new version of a rule, keep the source table’s name and give the copy a Version property. The version
is entered as its three numbers, and the version the source stands for is named beside them. The window opens on the
first version the table’s versions leave free, and a version any of them already carries is refused — two versions
under one number leave the engine unable to order them. Only one version of a table is active at a time, so the
version the copy replaces stops being the active one; a table that declared no version until then keeps 0.0.1, and
the copy becomes the version the rule runs.
To add a new property for the selected table, perform the following steps:
-
In the Table Details pane, click Edit the properties, the pencil icon. The Add a property list appears under the properties of the table.

Add new property for the current table
-
Enter the required property or select it from the list. The properties are grouped by their purpose, and a property that the table already declares is not offered again.

Selected table property to be added
-
Specify the property value and then click the Save button to complete. To discard the changes, click Cancel.
All steps are collected in the following figure:

Saving a new property for the current table
Using Table Versioning
The table versioning mechanism groups tables with the same identity and dimensional properties by their Version property.
A new table version has the same identity, that is, signature and dimensional properties of the previous version. When a new table version is created, the previous version becomes inactive since only one table version can be active at a time. By default, all tables are active. The following is an example of an inactive table version.

An inactive table version
Versions of the same table appear in the module tree next to each other under the same name, and the inactive versions are greyed out. Select a version in the tree to display it.

Displaying table versions in the module tree
The table version is defined in a three digit format, such as 4.0.1. Table versions must be set in an increasing order.

Entering a new version number
Performing Unit Tests
Unit tests are used in OpenL Tablets to validate data accuracy. OpenL Tablets Test tables with predefined input data call appropriate rule tables and compare actual test results with predefined expected results.
For example, in the following diagram, the table on the left is a decision table but the table on the right is a unit test table that tests data of the decision table:

Decision table and its test table
OpenL Studio supports visual controls for creating and running project tests. Test tables can be modified like all other tables in OpenL Studio. For information on modifying a table, see Modifying Tables. Test results are displayed in a simple format directly in the user interface.
The following topics are included in this section:
Adding Navigation to a Table
OpenL Studio adds a view navigation link to the appropriate test table and vice versa. See the following example:

Navigation link to target table
A test of a table written in several versions exercises every version. The first version is named in the toolbar, and the arrow beside it lists the others. A version is named by the values of its dimension properties, with dates in the formats chosen in Date & Time of My Settings. A name too long for the toolbar is cut short, and pointing to it shows the whole name.
Running Unit Tests
This section describes how a table and its tests are run, and how the results read. The following topics are included in this section:
Running the Tests of a Table
-
In Rules editor, open the rule table to test and click Test in the toolbar above it. The button appears for a rule table that has test tables written against it. A panel opens under the button; clicking elsewhere on the page closes it.

Running every test of a rule table
- To leave out the other modules of the project, select Within Current Module Only. The current module is then used with the modules and projects it depends on. While the project is still loading, or another module has errors, only the current module can be used: the option is selected and cannot be changed.
- Failures Only, Failures per test and Compound Result say what the results show; they can be changed there as well.
- Click Test. Every test table that tests this rule table runs, and the results open in the results window, a separate browser window beside the editor; the panel closes. The editor stays as it was, so a rule can be corrected and the tests run again; the correction drops the results shown, as described in Reading Test Results. Test into File runs them and saves the results as a workbook without opening the results window.
To run a test table itself, open it and click Run: the panel lists its cases, every one of them ticked, and
the results open in the results window, each case marked passed or failed against its expected values. A test table
has no Test button, since Run already runs its cases: the panel offers Within Current Module Only,
Failures Only, Failures per test and Compound Result as well, and Test into File saves the results
as a workbook. Untick the cases to leave out, or clear the box in the header of the list and
tick the cases to run; the box in the header stands for every case of the table, on every page of the list, and a
case unticked stays out while the cases of the other pages stay in.
Selecting the cases is described in Starting a Trace, which lists them the same way. To name
the cases by their IDs instead of ticking them, select Use the Range and enter the IDs in Range of IDs:
single IDs and ranges separated by commas, such as 2-4,7,10-12 or id3-id7. The list steps aside while the
range is in use, and the total under the field says how many cases the table holds. A range that names a case
the table does not have starts nothing: the panel says which case it is.
Running All Tests of a Module
- Click Test in the module toolbar, above the module tree. The number next to it counts the tests of the project and of the modules and projects it depends on.
- In the panel that opens, leave Within Current Module Only clear to run every test of the project and of the modules and projects it depends on. Select it to leave out the other modules of the project: the tests of the current module run with the tests of the modules and projects it depends on. Tests per page, Failures Only, Failures per test and Compound Result say what the results show.
- Click Test. The results are shown the same way as the tests of a single table, so only one kind of results screen has to be read. Test into File saves them as a workbook without opening the results window.
Reading Test Results
The results window lists every test table that ran, with the number of cases it holds and, in red, how many of them failed. The name of a table is green when every case of it passed and red when one did not, and it opens that test table in the editor. A test table of a project the tested project depends on opens in that project. For a test table written the usual way round, every case is a row: its id, a column for each value it was given, and a column for each value the test compares. A tick or a cross stands next to the case and next to every value that was compared, and a case that failed says how many of its comparisons did not match and shows the value that was expected under the value that came out.
The results are laid out the way the test table is written. A test table written transposed, with its cases across the columns and its parameters down the rows, shows its results the same way: a case to a column, headed by its id, and a line for each value it was given and each value it compares. Long results scroll inside the table, the ids of the cases and the names of the lines staying in view. The columns stand still as the lines go by: a column widens only for a wider value or name, and the other columns share what is left. A long name of a line wraps rather than widen its column. Transpose next to the name of a table turns its results the other way round, and a second click turns them back. It changes only what the window shows: the workbook stays as it is, and the table stays turned while the options below change what the window lists.

Results of a test table written transposed
Test, Run and Benchmark show their results in one separate browser window, the results window, which can be resized or moved beside the editor or to another monitor. It opens at the click on Test, Run or Benchmark, says the execution is starting, then follows its progress and shows its results; if the execution cannot start, the window says why. A later Test, Run or Benchmark shows its results in the window already open and brings it to the front. A run saved with Test into File or Run into File opens no window of its own; a results window already open shows its results too, without coming to the front. Clicking a table name opens it in the original editor and leaves the results window open. If the editor tab was closed, the table opens in a new tab. Refreshing the window shows the latest results. When the server no longer has a Test or Run result, the window says No results to show; an empty Benchmark list says No measurements. If the browser blocks pop-up windows, or the storage of the site, nothing starts, and the panel says what to allow for the site.
While tests, a run or a benchmark go on, the results show their progress and a Stop button. Stop ends the execution before its next test case or run of the rules, and the results say it was stopped. A test case, or a run of a rule table, that has already started finishes on the server, and its result is not shown. A stopped benchmark measures nothing and keeps the measurements taken before it.
The editor stays available while an execution goes on: tables can be opened, searched and edited. An execution works with the projects as they were when it started. A change to the project, such as an edited table, stops an execution of it that is still going on and drops the results of its last Test, Run and Benchmark, whether they ended or not, with the measurements of the benchmarks before them. A change that reloads the projects, such as a saved project or an uploaded file, does so for every project. The results window then says that a project was changed or reloaded since the execution started; start it again to see the results of the project as it is now. Closing the project, or switching its branch, stops the execution too, after the test case it is running. Tests of one module stop when another module is opened: the results show the tests that ran and say the tests were stopped.
A fractional number is rounded when a decimal with at least two fewer digits lies within two floating-point steps of
it, as the saved workbook does: a rule that computes 1.1 ** 3 returns 1.3310000000000004, and the window shows
1.331. The test compares the value the rule returned, not the one shown. A comparison that failed is shown exactly
when its actual and expected numbers would read the same once rounded, and so is a failed comparison of a value with
inner structure, whose fields are read later. A number with more digits than a double holds, such as a
BigDecimal of 34 digits, is never rounded: the window shows every digit of it. Without a precision a test accepts
a difference of one floating-point step, so a value two steps away fails unless the test sets a precision such as
sf, which rounds the returned value at the last figure of the expected value; see
Using the Precision Property in Testing.
A table lists its cases 20 to a page, and the pager under it reaches the rest. To read every case at once, save the results to Excel. A plain value, such as a number, a date or text, is shown at once. A value with inner structure - one a case was given, returned, compared or expected - shows Load value in its place, which reads it a level at a time: its fields when you click it, and the fields of every node as you open it, 100 at a time; Show more under them reads the next ones. Only what you open is read, so a value of any size opens at once.
The results stay on the server while they are read. When the server runs short of memory, it releases the large values the rules returned and compared, such as spreadsheet results, and keeps the rest of the results. It does so while the tests still run as well, so a test table of many test cases with large results runs to its end. A value that was released comes back when you open it, by running its test case again. Save to Excel runs again the test cases whose values were released. Once the project is compiled again, as editing it or opening another module does, a released value cannot come back: run the tests again. A test case that runs again computes its value anew, so a rule that reads the current date or a random number can return another value than it did in the run.
A Run table states no expected values, so its results carry no ticks and no crosses: they only show what every run returned, in a Result column of their own — in the window and in the workbook it is saved to alike.

Results of a test run
The options above the list decide what it shows. They apply at once, without running the tests again:
- Failures Only — leaves out the cases that passed. Failures per test next to it limits how many failures of one test table are listed, so a long list stays readable while a rule is corrected step by step; All lists every failure a table has.
- Compound Result — adds the whole value the rule returned to every case, and not only the values the test compares. It is what a spreadsheet result is read with: the test names a few of its steps, and this option shows all of them.
- Tests per page — how many test tables one page holds; the pager under the list reaches the rest. All puts every test table on one page.
The screen opens with the options the panel that started the run was left with, and that panel starts from what My Settings keep in the browser. Failures per test is not offered there, so it starts at 5. Changing any of them here applies to this run only.
To save the results, click Save to Excel. The workbook holds every case that ran, with its input — whatever the options above the list leave out of the screen.
Running a Table
A rule table can be run on its own, without a test table for it.
-
Open the table and click Run in the toolbar above it. The panel asks for the input the table takes: the parameters as a tree, or the same input as JSON, exactly as Starting a Trace describes. A table that takes no parameters runs at once, with no panel.
The Run, Trace and Benchmark panels of a table share their input: what was entered to run the table is there when the table is traced or measured next, and the other way round. Opening another table starts its input afresh.
OpenL Studio checks vocabulary values before running the table, including fields of nested datatypes and elements of lists. A value outside the vocabulary is refused with a message naming the invalid value, the vocabulary and its allowed values. The table does not run until the input is corrected. For a table with multiple versions, OpenL Studio checks the vocabulary of the version selected by the table or runtime context, including context properties supplied by input parameters. A version with compilation errors is reported before its input values are checked. When the runtime context selects no single version, the values are not checked in advance and the table runs as it would without the check.

Running a table with the input it takes
-
Click Run. The result opens in the results window: one row of what the table was given and what it returned, a column each, with the runtime context first when one was entered. The runtime context shows the fields that were set, the way the rules received them.

Result of running a table
A fractional number of the input or the result, inner fields included, is rounded the way the test results window rounds it: a table that computes
1.1 ** 3shows1.331. A number with more digits than adoubleholds is shown with every digit.A table that returns a spreadsheet shows it as the table its author wrote: a row per step, a column per spreadsheet column, and the calculated value in every cell, unrounded.
A run that fails shows its error in the Result column, in place of the value it did not return. A table that returns nothing shows
nullthere, as does an input left empty. -
To save the result, click Save to Excel. The workbook is written the way the options of the panel ask, as described after these steps.
To save the result without reading it first, click Run into File instead of Run. The table runs and the result is written straight to a file, which is what a result too large to read on screen is taken with. A test table offers Test into File in the same place, and saves the results of its cases as a workbook. A Run table keeps Run into File, and none of the test options: its cases are run, not tested, and the workbook holds what every run returned.
On the Result sheet, a value of a datatype takes one cell, which lists its fields, such as
FinancialData{ totalAssets=0.0001 capital=0 }. Each field is written as on the Parameters sheet, so a
number keeps its plain notation: 0.0001, not 1.0E-4.
For a test whose input list comes from a Data table, Test into File writes the list reference on the Result sheet when the Data table has a primary key. Without a primary key, it writes the list values there. When the list contains records referenced by their own primary keys, it writes those keys in order. The Parameters sheet shows each list element on a separate row. When the list has a primary key, that key has its own column beside the elements; other parameters keep their columns alongside the list.
Three options above the input decide what the file of a rule table holds. Run into File and Save to Excel in the window of the result write the workbook alike; only Run into File takes Result in JSON Format into account:
- Skip Empty Parameters — leaves the input values that are empty out of the workbook. A value is empty when
a field holds no value (
null) or a list has no elements. A field of a primitive type, such asintorboolean, is never empty, so0andfalsestay. The option starts cleared: the workbook then names every field of the input and leaves the cell of a field that holds no value blank. A field that holds no value and whose type is the type of an object above it, such as a link to the next item of a chain, takes one column: its fields would lead to the same type again without end. Select the option to keep only the values that were entered. - Flat Parameter Layout — writes every field of an input on a row of its own. Clear it for a compact table of the inputs.
- Result in JSON Format — writes the returned value on its own as JSON, instead of the workbook of the run.
The input of the run is written on the Parameters sheet, which follows the Result sheet; the option changes
only that sheet. For the vehicle input of DetermineVehiclePremium in the Example 3 - Auto Policy Calculation
project, where only name, year and price were entered, the flat layout writes these rows:
| Row | Value | Kept when the option is selected |
|---|---|---|
vehicle.airbagType |
blank | no |
vehicle.bodyType |
blank | no |
vehicle.carType |
blank | no |
vehicle.hasAlarm |
false |
yes |
vehicle.hasRollBar |
false |
yes |
vehicle.model |
blank | no |
vehicle.name |
Camry |
yes |
vehicle.onHighTheftProbabilityList |
false |
yes |
vehicle.price |
25000 |
yes |
vehicle.year |
2022 |
yes |
In the compact layout the option leaves out the column of such a field instead of its row. A list is written an element per row in the flat layout, so a list without elements has no row either way.
The workbook of a test table has no such options: it is always written in the compact layout and without the empty parameters.
Creating a Test
OpenL Studio provides a convenient way to create a new test table.
When an executable table, such as Decision, Method, Spreadsheet, ColumnMatch, or TBasic table, is created, the Create Test item becomes available.

Create new test table
Proceed as follows:
-
To create a Test table for the current table, click the Create Test button.
OpenL Studio opens the Create Table window. The Test table skeleton is generated from the current table signature, including its input parameters and expected result column.

A Test table generated from the tested table
-
Select the destination module and sheet, edit the generated skeleton as required, and click Create.
-
Enter test input values and expected result values in the created Test table.
Tracing Rules
When a rule returns a result you did not expect, tracing lets you see how that result was produced. OpenL Studio runs the rule and shows every rule that executed as a tree; click any rule to see the values it received and the result it returned, which rows of a decision table fired, and how one rule passed its result to the next.
By default, tracing opens the business view, described first below. It runs the calculation for you and shows the whole tree at once — nothing to step through, nothing to configure. For deeper investigation, an advanced mode turns the trace into an interactive debugger; it is described separately in The Advanced Mode.
Tracing only reads the calculation. It does not change your data or your rules, so you can explore freely.
Tracing is available for everything that can be run:
- All test tables
- Rule tables, where you provide the input parameters
- Method tables with preset parameters
[!Note] The trace opens in a separate browser window. Make sure the browser does not block pop-up windows for OpenL Studio, otherwise the window does not appear. For details on allowing pop-ups, refer to the specific browser Help.
Starting a Trace
-
In Rules editor, open the table to trace and click Trace in the toolbar above the table. A panel opens under the button; clicking elsewhere on the page closes it.

Starting a trace from the table toolbar
-
For a test table, select the test case to trace. Every case is listed by ID with the values of its columns, shown the way the trace window shows them, and the first case is selected at first. A trace runs one case, so click the case to trace. A value with inner structure, such as a whole datatype, is not read until you ask for it: until then it reads as its type and, in parentheses, the key it is referred to by in the data table, such as
Driver (Sara), so the cases are told apart at a glance. Click Load value next to it to see it; the value keeps that name as its title once it is read, and a value without such a key is titled by the number of its fields instead.
Selecting a test case to trace
A table with more than 25 cases is shown a page at a time; a pager appears under the list to reach the rest, and the case you selected stays selected while you look through the other pages.
-
For a rule or method table, provide the input parameters instead:
-
Form — the parameters are shown as a tree, one folded line each, and clicking the arrow next to a parameter shows its fields with the value of every field next to its name; a field with a default value in its datatype starts with that value, the others start as
null. Click the pencil next to a field to enter or change its value: a number field takes only a number and keeps every digit typed, while adoublefield given more digits than it holds says which rounded value the rule receives, a date opens a calendar, and a value with a fixed set of options — a vocabulary datatype, an element of a list of one, or a runtime context field — offers them in a list; a runtime context field lists its values by name, such asQuébecforQC, finds them by name or by code, and sends the code; the runtime context locale is typed as text, such asen_US; the cross clears the value back tonull, and the rules receivenulleven when the datatype declares a default for the field, while a field that cannot benull, such as anint, goes back to its default. A nested object starts asnullunless its datatype declares a default for it: + creates it with the defaults its datatype declares, × makes itnullagain. A list starts asnulltoo: + creates it, + on the list adds anullelement that another + turns into an object, and − next to an element removes it. When the project provides a runtime context to its rules — Provide runtime context is on in itsrules-deploy.xml— Runtime Context is the last line of the form, under the parameters, and opens the same way.
Entering parameters for a rule table
-
JSON — for advanced use. If a developer gave you the input as a JSON request, for example taken from a log, paste it here instead of filling in the fields. Switching to JSON shows what the form holds, so the form can be filled in first and adjusted as text; switching back reads the text into the form the way Run reads it, and a number keeps every digit either way. The text can list the values under
params, by parameter name or in order, or withoutparams; for a rule with one parameter, it can also be that parameter’s value as is. A list with more values than the rule has parameters stays on JSON with a message, as Run refuses it too. If the rule uses a runtime context (Provide runtime context is on in its deploy configuration), the JSON can carry it in theruntimeContextobject. If the option is off,isProvideRuntimeContextis absent fromrules-deploy.xml, or the project has norules-deploy.xmlat all, OpenL Studio treats runtime context as disabled, as OpenL Rule Services does by default, and the form has no such line. A parameter that is itself another spreadsheet’s result is written by that spreadsheet’s step names, exactly as OpenL Rule Services publishes it, so a request captured from a deployed service can be pasted as is. When the table version can be selected in advance, OpenL Studio refuses a vocabulary value outside its allowed values, including one in a nested datatype field or list element, before starting the trace. Most users can ignore this option and stay on Form.
Providing input as JSON
Trace checks vocabulary values against the selected version of a table before starting the trace, including versions selected using context properties from input parameters. When the runtime context selects no single version, the values are not checked in advance.
-
- To leave out the other modules of the project, select Within Current Module Only. The rule is then traced within the current module and the modules and projects it depends on. While the project is still loading, or another module has errors, only the current module can be traced: the option is selected and cannot be changed.
- Leave Advanced tracer off — the default — to open the business view. Select it only for the full step debugger; see The Advanced Mode. The mode is chosen here, before the trace starts, and stays fixed for the trace window.
- Click Trace. The trace window opens and runs the calculation. A table that takes no parameters is traced as soon as Trace is clicked in the toolbar; no panel opens for it.
To save the calculation as a text file instead of opening the trace window, click Trace into File. OpenL Studio runs the rule and downloads the result as trace.txt.
The Business View
The business view is the default trace. It runs the calculation on its own and shows the tree of every rule that executed on the left, with the details of the selected rule on the right. This view answers the everyday question — what did this rule receive and what did it return — with nothing to configure.

The business view: the call tree on the left, the selected rule’s details on the right
- Left panel — the Show detailed trace toggle at the top, always in view, and the calculation tree below it: every rule that executed, in the order it was called. Each rule reads with its signature and result, and each spreadsheet cell with its value — a decision table as
DT RatingGroup BankRatingGroup(Double bankRating)— the way the classic trace showed it. The toggle adds the description and reference cells that the everyday view hides. - Right panel, also called Details — everything about the selected rule: the values it received (Parameters), the value it produced (Result), the table itself, and any errors.
While the calculation runs, a progress note counts the rules as the tree is prepared; the finished tree is the answer, with no status to watch. If the calculation fails, a banner reports what went wrong, and the tree still shows every rule that ran up to the failure, with the failing rule — and each rule that called it — marked = ERROR. The trace opens that path for you, so the failing rule is in view at once, and clicking it shows the error in the Details panel — you land on exactly where the calculation broke. If a run cannot produce a tree at all — a dropped connection, say — the panel offers a Try again button to run it again in place.
Exploring the Calculation
- Open the trace. The business view runs the whole calculation on its own and records the tree of every rule that ran; for a large calculation, a progress note counts the rules while the tree is prepared. The window receives the upper levels of the tree at once, level by level: every rule a step called is listed, every iteration of a repeated rule included, and only the deep branches of a large calculation are left for later.
- Expand any branch. A branch already in the window opens instantly. A deep branch loads when you expand it: its row reads Loading… for a moment, then its rules appear. Loading a branch never runs the calculation again — it reads the tree the run recorded. A step shows the rules it called a hundred at a time: a +N more executions row ends the list, and a click on it shows the next ones. On a failed run, the failing iteration of a long loop is shown at once.
- Click a rule to inspect it. The Details panel shows the values it received (Parameters), the value it produced (Result), and its table with the calculation highlighted — see Reading a Step. A click on a step of a rule keeps the panel on that step: its Parameters are the values the step’s formula used, named exactly as the formula writes them — other steps (
$LimitIndex), the table’s inputs, constants (MaxLimit) — its Result is the value the step computed, and the step’s cell is pointed out in its own table.
Behind the scenes, clicking a rule quietly re-runs the calculation up to and through that rule: the engine does not keep every intermediate value, so OpenL Studio recomputes them on demand. The tree itself never changes — it is the record of the original run, and only the Details panel follows your clicks. On a heavy calculation the re-run takes a moment, shown by the Calculating badge. A re-run can stop before the rule you clicked: a rule that calls itself until the stack overflows fails at a slightly different depth on each run, so its deepest calls may not run again. The Details panel then says the rule was not reached and shows the error that stopped the re-run; clicking the rule again tries once more.
OpenL Studio keeps the recorded tree for the deep branches until you close the window, edit the project or sign out, or until the trace is left idle for ten minutes. Each trace window keeps a tree of its own, so tracing another table in a second window leaves the first one browsable. The tree holds every rule the calculation called, however large it is. Expanding a branch of a released tree reports it — trace the table again to browse further.
The business view runs once, on open. To trace the table again — for example after changing the rules or the input — close the trace window and start a new trace from the editor.
Reading a Step
Click a rule in the tree to inspect it in the Details panel. (In the advanced mode, select a step while the calculation is paused; the same panel opens.) It shows the step name, the inputs it received (Parameters), the value it produced (Result), and any Errors. Next to the parameters and the result is a copy icon that copies them as JSON — handy for reusing them as a new test case. Large values are not loaded until you ask — click Load value to expand them; a value the traced case took from a data table is named by its type and key, such as Driver (Sara), before and after it is loaded.
The selected step’s table is shown below, with the calculation highlighted.

A traced decision table: the row that fired is highlighted
What the table shows depends on its kind:
- A decision table highlights the rule that fired — the row whose conditions all matched, which produced the result. In a lookup table, the rule is the value it returned with the conditions of its row and its column; a condition value merged over several columns is highlighted as the merged cell.
- A spreadsheet table shows a Steps grid with the value calculated in each cell. Cells that have not run yet appear as pending, and the cell running now as executing.
The colours have a fixed meaning, shown in the legend below the table: Result marks the cell or row that produced the step’s result. In the advanced mode, while you step through a rule, Current step marks the cell being calculated now, and, for a decision table, Condition met and Condition not met mark for each rule which conditions passed — so you can see exactly why a row was chosen.
[!Note] Very large tables are shortened in the trace window. To see all rows, open the table in Excel.
The Advanced Mode
Everything above is the business view. Selecting Advanced tracer before starting the trace instead opens a full interactive debugger: pause the calculation at any point, step through it rule by rule, set breakpoints, watch how a cell’s value changes, and measure performance. Everything from here on describes this mode. The mode is fixed for the window — to switch, close it and start a new trace with the checkbox set the other way.
The advanced toolbar stays in view at the top of the left panel: its buttons run and step the calculation, a tag shows the run status — Starting, Running, Paused, Finished, or Stopped — and a gear on its right opens the settings, where Profiling and Show detailed trace live. The Breakpoints and Watch panels sit below it, each collapsing from its title to give the tree more room.
[!Note] In the advanced mode, a called rule’s values — its inputs, result, and decision — are readable only while the calculation is paused on it. After Finished the window keeps the top-level rule with its steps, inputs, and result, but the values of the rules it called are gone — inspect a called rule while stopped on it, not after the run ends. (The business view hides this: clicking a rule always re-runs the calculation to it.)
Following a Calculation
Here is a typical trace — for example, to understand why a premium came out higher than expected.
- Start a trace on the rule or test case that produces the value. The window opens paused at the beginning.
- Reach the rule you want to inspect and pause on it — either set a breakpoint on it and click Resume to run straight there, or click Step over to move through the calculation and Step into to go inside a rule it called.
- While the calculation is paused on the rule, the right Details panel shows the inputs it received (Parameters), the value it produced (Result), and the table with the relevant cells highlighted.
- For a decision table, step forward until a rule fires; the Decision panel then highlights the rule that fired and shows, for each condition, a green check if it matched or a red cross if it did not — so you can see exactly why that row was chosen. (Right after you stop at the table it shows No rule has fired yet until you step on.)
- To measure where the time goes rather than read values, turn on Profiling — in the toolbar’s settings, behind the gear on its right, together with Show detailed trace — and run to the end; the Tree and Hot Spots then show how long each rule took (see Measuring Performance).
Running and Stepping
You control the calculation from the toolbar, and each button applies in one state: Resume and the step buttons — Step over, Step into, and Step out — work only while the calculation is paused (Paused), while Pause works only while it is running. The first button follows the state: it is Resume while the calculation is paused and becomes Pause while it is running. A button is greyed out when it does not apply, which is normal.
- Resume (the ▶ button) — run the calculation forward: to the next breakpoint, or, if there is none, all the way to the end. This is the main “go” button. With no breakpoints set, it runs to Finished — and because the values are kept only while paused, set a breakpoint or step if you want to stop and inspect a rule.
- Pause — shown in place of Resume while the calculation is running: stop at the next step, so you can look at where it is.
- Step over — run the next step and stop, without opening any rule it calls. Use this to move through a calculation quickly.
- Step into — go inside the rule called by the next step, to see how it produces its value. This is how you look deeper into a called rule.
- Step out — finish the current rule and go back up to the rule that called it. Use it once you have stepped into a rule and seen enough.
- Rerun — start the whole trace over from the beginning.
In everyday use, Resume and Step over are enough. Reach for Step into only when you want to open a called rule and see how it computed its value.
To end the trace, simply close the trace window — the calculation is stopped for you.
Navigating the Calculation
As the calculation runs, each rule that is still being worked out is called a frame. When one rule uses another, the calculation moves into the second rule while the first one waits for its answer — so several rules can be in progress at once, stacked in the order they were called. The current frame is the one at the top: the rule running right now. Its details are shown by default, and, while paused, you can select any other frame to look at it instead.
The left panel lists the rules in two views:
- Tree — the rules shown as an indented list that mirrors how one rule called another, each line carrying the icon of its table kind. An arrow points along the calls the calculation is inside right now — bright on the current line, muted on the rules waiting above it; a line that has already run reads as plain text, and a greyed-out line has not run yet. While paused, click the step you want and read its values in the Details panel. When a run finishes, the Tree keeps the top-level rule and its steps, with the overall result readable in Details. With Profiling on it keeps the shape of the whole calculation — every called rule, with each line’s timing — but not their values; to see a finished rule’s values again, use its Replay button, which restarts and runs back to that rule and pauses on it.
-
Execution Path — the list of rules currently in progress (the frames), with the current one at the top. It answers “which rules are being worked out right now, and how did we get here?” Each row shows the rule’s name, its kind (for example,
decisionTableorspreadsheet), and the line it is currently on. Click any row to inspect that rule.
The Execution Path: the rules in progress, the current one at the top
With Profiling on, each line in the Tree also shows how long its rule took to calculate. By default this is the Total time — the time for the rule including every rule it called. Switch to Self to see only the time spent in the rule itself, without the rules it called.
In a profiled run’s Tree, a step marked ref points to a value that was already calculated elsewhere in the same table; click it to jump to where it was calculated. When a rule exists in several versions, the trace shows which version was used.
Breakpoints
A breakpoint tells the trace to pause when a chosen table is about to run, so you do not have to step through everything to get there. When you press Resume, the calculation runs until it reaches a breakpoint and then pauses, ready to inspect. The Breakpoints panel (and the Watch panel below it) collapses from its title, to give the tree more room when you are not using it.

Managing breakpoints
- To pause at a table, find it by name in the Breakpoints panel and add it. The calculation then pauses every time that table is about to run. This works even for a table deep inside the calculation — set the breakpoint, then press Resume to jump straight to it.
- To pause at a single cell of a spreadsheet, first stop on that spreadsheet, then, in the Steps grid on the right, click the margin to the left of a cell that has not run yet.
- To pause on a decision table’s rules, stop on the table and use the Decision panel on the right: turn on Break when a rule fires to pause whenever the table fires a rule (when all of a rule’s conditions match), or use Break on rule to pause only on the rules you select.
- Remove a breakpoint from the Breakpoints panel when you no longer need it.
Watching Cell Values
The Watch panel captures the value of chosen cells every time their table runs. This helps you spot where a value goes wrong — for example, watch a rating factor to see that it is 1.0 for most drivers but 2.5 for one, which explains a high premium.

Watching cell values
- Type a cell name, such as
$Factor, or a cell reference, such asR2C3(the reference shown for the cell in the Steps grid), into the box and click Add (or press Enter). Each watched cell appears as a tag; remove one with its ✕. - Click Collect. OpenL Studio runs the calculation to the end and records the value of each watched cell every time its table runs.
- The panel lists the captured values, grouped by cell and table, in the order they were calculated. If a table runs very many times, the list is capped and shows the first values collected.
Measuring Performance (Hot Spots)
Turn on the Profiling switch to keep the whole calculation and measure how long each rule takes. Turning it on restarts the trace at the beginning; press Resume to run it. When it finishes, the Tree keeps the shape of the whole calculation with each rule’s timing (its values are not kept — use Replay to return to a rule and read them).

Hot spots after a timed run
- In the Tree, each rule and step shows its time — Total (including the rules it called) by default, or Self (the rule itself only) if you switch.
- The Hot Spots view ranks the tables that ran by time, showing how many times each ran (Runs), its Self time, and its Total time — a quick way to find the slowest rules.
- From a hot spot or a step in the tree, use Replay to restart the trace and run back to that table, pausing at its start so you can step through it and read its values. This differs from Rerun, which restarts to the very beginning.
[!Note] Profiling keeps the whole calculation in memory, so it uses more memory and runs slower. Turn it off when you do not need the timings.
Using Benchmarking Tools
OpenL Studio measures how fast rules run. A benchmark is taken over the cases of a test table, so the rules it tests are measured with the input the table author wrote for them. It is useful for optimizing the rule structure and identifying critical paths in rule calculation. The following topics are included in this section:
Taking a Benchmark
-
Open the test table to measure and click Benchmark in the toolbar above it. The button appears above a test table and above a Run table, over whose cases the measurement is taken. A panel opens under the button; clicking elsewhere on the page closes it.

Measuring a test table over its cases
- The panel lists the cases of the table, every one of them ticked. Leave them so to measure the table the way it runs, over every case at once, or untick the cases to leave out. Selecting the cases is described in Starting a Trace, which lists them the same way, and Use the Range names them by their IDs instead, as described in Running the Tests of a Table.
- To leave out the other modules of the project, select Within Current Module Only. The table is then measured within the current module and the modules and projects it depends on. When benchmarking a rule table with input parameters, OpenL Studio checks vocabulary values before the measurement starts. An invalid value, including one in a nested datatype field or list element, is refused with a message naming the allowed values. For a table with multiple versions, the selected version’s vocabulary is checked, including versions selected using context properties from input parameters. When the runtime context selects no single version, the values are not checked in advance.
- Click Benchmark. The table runs over and over until the measurement lasts long enough to be meaningful, so it takes a few seconds. The results window opens at once and shows the measurements when it ends.
Reading Benchmark Results
Every measurement is a row of the results window. Later measurements appear there too. If the server has released every measurement, the window says No measurements. A change to a project drops every measurement, as described in Reading Test Results, so measurements to compare are taken after the last change.

Benchmark results
A row reports the measured table, the number of test cases one run covered, the input of the measured case, and the following numbers:
| Parameter | Description |
|---|---|
| Test Case (ms) | Time of one test case execution, in milliseconds. |
| Test Cases/sec | Number of such test cases that can be executed per second. |
| Test Cases | Number of test cases in a Test table. |
| Runs (ms) | Time required for all test cases of the table, or rule set, execution, in milliseconds. |
| Runs/sec | Number of such rule sets that can be executed per second. |
OpenL Studio remembers every benchmark taken within one session, the newest first, so measurements of different tables and cases stand side by side. Measuring another project starts a new list, and so does a change to a project.
Tick the rows and click Compare to find the most time consuming of them. The comparison is shown under the results: it places the measurements by speed, the fastest first, and says how many times slower each of the others is.

Comparing benchmark results
Delete forgets the rows that are ticked.