The heart of the Decision Table
In this section, you can easily create your business rules, then link them to input and output data. Business rules are created to easily design or change the rules and deploy them quickly.
After each change, press the
button in the bottom right corner to save your progress.
All the changes are made to the current table version.
Conditions are used to define input values.
To add a new condition, click on the plus symbol in the header of a condition column.
It is necessary to select some value from the Input Model. To do this, click on
button under the condition name. All possible values will be expanded, and then you can select one of them
To delete a condition from the Designer, click on the gear icon in the header of said condition, then click the remove button in the dropdown menu.
Results are used to define output values.
To add a new result column, click on the plus symbol in the header of another result column.
It is necessary to select some value from the Output Model. To do this, click on
button under the condition name. All possible values will be collapsed, and then you can select one of them.
To delete a result column from the Designer, click on the gear icon in the header of said result column, then click the remove button in the dropdown menu.
A row represents one rule for specified data. If it's called, the Rule Solver or theTest Bench with Input Data corresponding to conditions in a row, the Rule Solver or the Test Bench response will have the same data specified in results in the corresponding row.
To add a new row, click on
button in the bottom panel.
For every condition cell, choose an Operator and write a Value (if necessary). Possible operators are specified in Operators, and possible values for data types are specified in Data Types.
Possible results for data types are specified in Data Types. To fill the result cell value, click on the existing value, then enter a new value.
To copy a row, click on
the button. After that, select one of the copy options, then the row will be copied. The copied row will have the same set of rules.
To clear all sets of conditions and result values, click on
the button. After that, select Clear Row, then all values in the row will be cleared.
To Inactive the row, click on the
button. After that, the button changes to
. To reactive row click on the button again.
By default all the rows in the tables are ACTIVE. This functionality can be used when you don't want to use the line in the rule for validation, but you might need to use it in the future.
If the row is INACTIVE it behaves in the same way, as it wouldn't be there.
There are two options for deleting a row from the designer:
- Click onthe button.
- Click onthe button. After that, select Delete Row.
To use a row in the Test Bench:
- Click on thebutton
To change the position of the row, click on
the button. After that, select Move.
It will open new modal, where you can specify the new position of selected row.
You can specify in which time period the row will be active and when it will not be active. To set the time validation, click on the
button. You will then be presented with a new modal where you can select a time range from and to.
Date and GMT must be set, Time is optional.
By default all rows are not time limited, so they will always be evaluated. If time validation is set, the row will only be evaluated in the set period.
The row with the setting shown in the image above is valid from 29 April 2022 00:00:00 GMT+2 to 30 April 2022 23:59:59 GMT+2
To check the table for duplicate rows, click the
button in the bottom panel, then click the
button. Clicking this button compares the input values in the table. If it finds rows, which are the same it highlights them. It works only on the input model as the output model can be the same.
The debug button
is on the test bench shown on the bottom of the table designer. By default debug mode is turned off, by clicking on it the user turns it on.
The debug mode is used for showing the rows in the table which meet the input. It highlights the row with green color.
For a larger view of the test bench, you can use the maximize button in the right corner. Looks like this:
The AutoSave button
is located on the bottom of the Decision Tables page, next to the button
If you are getting lost between columns and rows, there is an option to highlight active rows and columns. This function is hidden under the button
in the navigation toolbar in the bottom of Decision Tables.
Choose what you want to get highlighted and activate the option. The row/ column will be highlighted with light green - as it is demonstrated in the picture below.
There is a local history of every change in this designer. It is possible to undo or redo change by clicking on