Visual Paradigm logo
Jump to Menu

How to Develop a Decision Table?

Creating decision table in Visual Paradigm is easy. You don't need to draw the table and grid lines yourself. You don't even need to worry about how to operate with the editing tool. Just focus on what is important to you - the business logic. Add into decision table the conditions, actions and business rules, all by simple clicks.

Compatible edition(s): Enterprise, Professional

  • June 13, 2013
  • Views: 14,631
  • PDF

Pre-requisite - The Decision Table Software

Just in case you are not currently using Visual Paradigm, you may download in the Visual Paradigm download page. It comes with 30 days free evaluation period. You don't need any license key or activation code. Just download it, install it (or unzip it if you are going to download the No-Install version), run it and set the edition. Remember to select the Enterprise Edition as it is the edition that supports decision table.

Develop a Decision Table

In this section we are going to develop a decision table that represents the following business rules implemented by an online bookstore.

  1. New customer has to pay in advance.
  2. If the amount of transactions a customer made in the previous month is more than $1,000, and if the amount of transaction is more than $500 this time, allow the customer to pay upon delivery.
  3. If the amount of transactions a customer made in the previous month is more than $1,000, but the amount of transaction is less than $500 this time, we still allow the customer to pay upon delivery but he/she has to make a 15% prior deposit.
  4. If the amount of transactions a customer made in the previous month is less than $1,000, but the amount of transaction is more than $500 this time, request the customer to pay in advance and ask him/her to make a 15% prior deposit.
  5. If the amount of transactions a customer made in the previous month is less than $1,000, and less than $500 this time, the customer has to pay in advance.

Now, take the steps below to develop a decision table.

  1. Start Visual Paradigm.
  2. To create a decision table, select Diagram > New from the toolbar.
    create new diagram
  3. In the New Diagram window, enter decision table in the search field, click Next.
    enter decision table
  4. Then, fill in the Diagram Name and Description (if any). Click OK to confirm diagram creation.
    enter diagram name and description
  5. Let's consider this rule: New customer has to pay in advance.
    Obviously, "New customer" is a condition and "Accept pay in advance" is an action. Let's put them into the decision table. Initially a dummy condition and action are created for you. Let's rename them into New customer and Accept "Pay in advance" respectively.
    rename conditions and actions
  6. Double click on the cell next to the condition New customer, under the first rule. Select Y. Double click on the cell next to the action Accept "Pay in advance", under the first rule. Select X.
    business rule created
  7. Here is another rule we have: If the amount of transactions a customer made in the previous month is more than $1,000, and if the amount of transaction is more than $500 this time, allow the customer to pay upon delivery.
    Add a new condition first. You can create a condition by moving your mouse pointer to the Conditions row and clicking the plus button.
    create condition
  8. Name the condition Previous monthly transaction > $1000.
  9. Add one more condition - Transaction > $500.
  10. Similarly, create an action Accept "Pay upon delivery".
    actions created
  11. Add a rule by clicking on the third button the editor toolbar.
    add rule
  12. Select Y for the condition Previous monthly transaction >$1000, N for Transaction > $500.
  13. Select X for the action Accept "Pay upon delivery".
    rule added
  14. Create the other rules. Your decision table should look like this:
    decision table built

Decision table that can answer your question

One of the strengths of decision table is that it allows people to view business logic from different angles, thus providing answers to different kinds of questions related to decision making. By viewing a decision table, you can easily tell with what conditions certain action would be performed, what will happen when certain condition is met, in what extent certain condition may affect the decision making process, etc. Although you can find the answers of all these question by naked eye, Visual Paradigm makes it even simpler by providing you with the highlighting feature. Just click on a condition (row), the business rules that cover the condition will be highlighted. The same technique can be applied on actions and rules, too.



Turn every software project into a successful one.