Prepare Decision Table

The decision table is a graphical representation of decision logic. The decision logic includes the mapping between conditions and actions which expresses that certain actions can be performed only if certain conditions are satisfied. Each decision model can contain only one decision table.

The decision table includes columns and rows. The columns represent the input and output. The rows are populated by the rules that you add.

You must define the input and output attributes in the header row before you add the rules. Using the specified attributes, you can add conditions in inputs column and results in outputs column for each rule.

Perform the following steps:

  1. Navigate to the decision model to which you have already added business objects.
  2. Click Inputs in the header row and select the Namespace corresponding to the current decision model.
  3. Select the Business Object that includes the attributes needed for your rules. You can also filter the business objects by typing the business object name in the text field. You can add as many business objects as required in Inputs.
  4. Click Outputs in the header row and select the Namespace corresponding to the current decision model. You can add only one business object in Outputs. You cannot add same business object in both Inputs and Outputs.
  5. Select the Business Object that includes the attributes corresponding to the results to deliver if the conditions evaluate to true.
  6. You can add as many business objects as you need to add all the required attributes for your rules. Each attribute in the business object is added in a separate column under the respective business object.

  7. Optionally, click the business object that you added and perform the following actions:
    • Delete input: Allows to delete the business object if it is no more required for your business rules.
    • Add input before: Allows to Insert a business object before the selected column.
    • Add input after: Allows to insert a new business object after the selected column.
    • Toggle input mode: Applicable only for Inputs. Combines all the attributes of a business object into one column. Choose this option if you want to add conditions using Friendly Enough Expression Language (FEEL). This approach allows for definition of business rule conditions to fully use the power of expressions in FEEL.

    The business objects are added to the decision model. You can now add rules to your decision table. Every decision table must include at least one rule.