Decision Tables

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Process wizard > Business Rules > Policies >

Decision Tables

Decision tables allow defining which actions to perform for each value or combination of values of one or more definitions.

A great advantage of this concept is that decision tables are highly parametrized, providing agility when dealing with changing business conditions.

The GET and SET type definitions (Vocabulary) are dragged to the table header, once all the vocabulary to be used has been created.

 

 

Policies2

 

 

In order to create Decision tables follow the next procedure:

 

1. Go to the fourth step of the Bizagi Process Wizard and select Activity Actions.

 

Defining Notifications 4

 

 
2. Click the shape where the policy is to be created and select On Enter, On Save or On Exit to create the policy.

Select the Policy item.

 

CreatingPolicies1

 

 

3. Click New on the upper left corner. In the new window, enter a name, display name and description for the policy.

Click Ok

 

 

CreatingPolicies2

 

 

4. In the Policy Manager, select New Decision table

 

Decision Table1

 

5. A window will open where the user can create and edit Decision tables.

 

Decision Table2

 

 

 

6. Drag definitions, context definitions or library functions to the Conditions box. Each definition will be displayed as a column and will retain the green color of GET definitions and the blue color of SET definitions. You need to specify at least one GET and one SET definition.

 

 

Decision Table3

 

7. Click the Add Row button to include values for each column. Double click a specified cell to enter a value. The values entered in SET definition cells will be the resulting action of a TRUE evaluation of the condition.

 

Include as many rows as per your requirement.

 

Decision Table4

 

note_pin

The values that are used to build the condition (the green part) will automatically adjust to the Vocabulary type; for instance, the permitted values will be integer numbers when the definition has been generated from an integer field in the database. The permitted values will be text when the definition has been generated from a string field in the database.

 

You can change the condition operator by clicking on it. A list of operators will be displayed.

 

Decision Table5

 

 

If you wish to define a "Between" operator you must define the same column twice and insert the required operators for each value.

 

Decision Table6

 

When all the necessary rows have been included click Finish.

 

Decision Table7

 

8. You will be prompted to include the requested information for the new Decision table:

 

Name: This is the name of the Decision Table in the database. Once saved it cannot be modified.

Display Name: This is the display name of the Decision Table. You can change it anytime.

Description: Include information to describe the policy.

Priority: Establishes the relevance with which the Decision Table must be executed.

Enabled: Defines if the Decision Table is enabled or disabled.

Enabled From Date: The Decision Table can be enabled for an specified period of time. This is the From date of that specific period.

Enabled To Date: The Decision Table can be enabled for an specified period of time. This is the To date of that specific period.

 

 

Decision Table8

 

Example

Imagine you work in a bank. The bank has set policies on the amount a Client can request in loan products based on his or her income and employee status. The conditions are listed below.

 

If their income is less than US$500 the client will not be eligible.

If their income is between US$500 and US$3,000, eligibility depends on the employee status.

If the income is greater than US$3,000 the client is always eligible.

 

The Decision table is represented as follow:

 

Income

Employed?

Eligible?

< 500

YES/NO

NO

> 500 and < 3000

YES

YES

> 500 and < 3000

NO

NO

> 3000

YES/NO

YES

 

To configure this Decision table in Bizagi follow the next steps:

 

1. Go to the fourth step of the Bizagi Process Wizard and select Activity Actions.

Click the shape where the policy is to be created and select On Enter, On Save or On Exit to create the policy.

Select the Policy item.

 

 

CreatingPolicies1

 

2. In the Policy Manager select New Decision table.

 

Decision Table1

 
3. A window will be opened where the user can create and edit the decision tables.

 

Decision Table2

 
4. Drag and drop the definitions to be evaluated from the list in the work area to create the columns of the table.

 

 

Decision Table9

 

 

5. Include the rows and values for each column.

 

 

Decision Table10

 

 

6. When done click Finish. When prompted, define a name, display name and description for the new Decision Table.

 

Decision Table11

 

 

The Decision Table has been created.