Building Decision Table Documents

Print Friendly, PDF & Email

◷ Reading Time: 6 minutes

Introduction

Decision Table is a way to model business rules in a tabular form. Each business rules consists of

  1. Conditions (inputs)
  2. Actions (outputs)

Preparation

New project and decision table

The first step is to create a new project and add a decision/validation document as a table using the Document --> New menu.

Then open that table document.

When the editor is a Table editor then all the techniques we described for building tree are applicable. However creating a diagram using the keyboard may not be as easy as the ‘tree’ approach. Also, please keep in mind that positioning an item is not valid in a table.

Add parameters

Add two parameters below:

  1. Input parameter: WeightTotal
  2. Output parameter: Delivery

To learn more about parameters follow here

Table Structure

If you have a look at a complete table below:

You see that the table is divided into two sections:

  1. Signature – top part
  2. Values (expressions) – bottom part

Columns

In a table editor, three types of columns can be created:

  1. Name
  2. Condition
  3. Action

Adding Columns

To add a column, you can simply drag and drop from the toolbox or use the keyboard.

Adding Condition by dragging from the toolbox

Adding Condition by dragging from the toolbox

Moving Columns

For moving columns, you need to select and drag them to the desired position.

Select the column.

Hover over the column and the cursor will be changed.

Press the left mouse button and drag the column to the right position. A vertical indicator will show you where is it going to be dropped.

Release the mouse button.

Delete Columns

To delete a column you can use the toolbar button named ‘Delete Column’.

Rows

Adding Rows

There are several ways to add a new row to the table:

  1. Drag and Drop from the toolbox
  2. Using keyboard
  3. Using toolbar:
    1. New Row After
    2. New Row Before
  4. Using the buttons

Drag and drop Row from the toolbox

Adding Values

To add values into the table cell, you can simply:

  1. Double click on a cell and start typing
  2. Select a cell and use the value bar on top of the table
Values In Cell

Double click on a cell. A text box will appear and start typing in the in-place text box. Once finished, press ‘Enter’.

Alternatively, you can just select a cell and start typing.

Value Bar

Select a cell and then go to the value bar. Start typing and then press ‘Enter’.

Moving Rows

You can move a row Up and down.

Select, drag and drop to the location you want to move the row

Updated on July 4, 2019

Was this article helpful?

Related Articles