Skip to content

Decision Table

The Decision Table widget in Emakin facilitates the definition and management of business rules using a spreadsheet-like interface. This structured approach simplifies the handling of complex decision logic within forms. For comprehensive usage instructions and configuration details, please refer to the Decision Table Guide.

Data Model Integration

The Decision Table widget seamlessly integrates with the form's XML data model. Its internal data—rules, inputs, outputs, and properties—are stored within the larger form data model, ensuring consistency and facilitating data exchange with other form elements.

Configuration Properties

The Decision Table widget offers several configurable properties to control its behavior and appearance:

AllowInputs

  • Description: Determines whether users can add, remove, or modify input expressions within the decision table.
  • Values:
    • True: Allows input modifications.
    • False: Prevents input modifications.

AllowOutputs

  • Description: Determines whether users can add, remove, or modify output expressions.
  • Values:
    • True: Allows output modifications.
    • False: Prevents output modifications.

ShowOutputLabel

  • Description: Controls the visibility of descriptive labels for output expressions.
  • Values:
    • True: Displays output labels.
    • False: Hides output labels.

AllowHitPolicy

  • Description: Determines whether users can select the hit policy, which defines how decision rules are evaluated and applied. See the Hit Policy Guide for details on hit policy behavior.
  • Values:
    • True: Allows hit policy selection.
    • False: Prevents hit policy selection.

AllowCollectPolicy

  • Description: Determines whether users can select the collect policy, which dictates how output values are aggregated during decision table execution.
  • Values:
    • True: Allows collect policy selection.
    • False: Prevents collect policy selection.

Example

1
2
3
4
5
6
7
8
<DecisionTable
        XPath="MyTable"
        ShowOutputLabel="True"
        AllowHitPolicy="True"
        AllowCollectPolicy="True"
        AllowInputs="True"
        AllowOutputs="True"
/>

This example shows a Decision Table widget bound to the data model element MyTable, with all modification options enabled and output labels displayed. Remember to consult the Decision Table Guide for a more in-depth understanding of configuration and usage.