Example 2

  • Updated

Creating a decision table from the logic of a spreadsheet is an excellent way to use this type of rule construct within your rule application. You can manage complex logic in a graphical view without the need to create nested-IF statements and actions.

mceclip0.png

Figure 1

 

Scenario:

Grocery Store “ABC Foods” is using spreadsheets to track the price of different items throughout each department (bakery, produce, deli, etc) of the grocery store.

Problem:

ABC Foods has several issues with the use of so many different spreadsheets throughout each department in the grocery store. One issue is trying to enforce consistency of each spreadsheet and a second issue is how difficult it is to track any revisions when there are pricing changes.

Solution:

Create a decision table from the logic of a spreadsheet, providing consistent changes and the ability to track price revisions.

Example:

The following rule was authored using the business language editor from a specific row in the spreadsheet; the result is a rule which has four (4) nested-IF statements and an action.

mceclip1.png

Figure 2

 

Using the same logic and creating a decision table as pictured below you would have the same four (4) conditions and one associated action.

mceclip2.png

Figure 3

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.