Add Rules in Decision Tables

The business rules are the conditions and results which expresses that certain results can be delivered only if certain conditions are satisfied. Each rule that you add in the decision table is populated as a row. Every decision table must include at least one rule.

In runtime the rules are evaluated in the same order as they are added in the decision table. If the conditions in Inputs column of a row evaluate to false, processing continues with the next row. When the conditions in Inputs column of a row evaluate to true, the result specified in Outputs column is processed.

Perform the following steps:

  1. Navigate to the decision model in which you have already added business objects to decision table.
  2. Click Add Rule. A new row is added in the decision table. The rows are indexed with serial numbers.
  3. In the Rule Details panel, enter the following values:
    1. Description: Enter text to briefly explain the rule you want to define.
    2. Input: Enter the conditions to be evaluated under each attribute. You can also enter the input conditions using Friendly Enough Expression Language (FEEL). You must combine the all the attributes columns to enter the conditions using FEEL. To combine the attributes, select the business object name and click Toggle Input Mode from the drop-down list.
    3. Output: Enter the value to be delivered as result if the input conditions evaluate to true.
  4. If you want to edit the values in a row, click any column in that row to open the Rule Details panel. An indicator in blue color appears in the header row of the index column, when you edit a rule or add a new rule. The indicator disappears after you save the changes. You can use the up and down arrows present at the top-right corner of the Rule Details panel to navigate to the previous and next row in the decision table respectively. The close (X) button allows you to close the Rule Details panel. Alternatively, you can also click outside the Rule Details panel to close.
  5. Optionally, select the row number and perform the following actions as required:
    • Add Above: Inserts a new row above the selected row. Click any column in the row to open the Rule Details panel.
    • Add Below: Inserts a new row below the selected row. Click any column in the row to open the Rule Details panel.
    • Duplicate: Inserts a new row with the existing values from the selected row. The new row is inserted at the top of the table.
    • Move to Top: Moves the selected row to the top of the table.
    • Move to Bottom: Moves the selected row to the bottom of the table.
    • Delete: Removes the selected row from the table. When a row is deleted the confirmation message appears at the bottom of the screen. Click Undo in the message to restore the row. The message appears for a short span and you cannot restore after the message is closed.
  6. Click Save to update your decision model.
  7. The rules are defined and added to the decision table. You can now apply a hit policy to your decision table.