A decision table can have one or more rules. Each rule contains input andoutput entries. The input entries are the condition and the output entries theconclusion of the rule. If each input entry (condition) is satisfied, then therule is satisfied and the decision result contains the output entries(conclusion) of this rule.

A rule is represented by a element inside a decisionTable XML element.

Input Entry (Condition)

A rule can have one or more input entries, which are the conditions of the rule.Each input entry contains an expression in a text element as child of aninputEntry XML element.

The input entry is satisfied when the evaluated expression returns true.

  1. <inputEntry id="inputEntry41">
  2. <text>"Spring"</text>
  3. </inputEntry>
  1. <inputEntry id="inputEntry41">
  2. </inputEntry>

If FEEL is used as expression language, then an empty input entry is representedby a -. Otherwise, the expression is empty.

The expression language of the input entry can be specified by theexpressionLanguage attribute on the inputEntry XML element. The supportedexpression languages are listed in the .

If no expression language is set then the global expressionlanguage, which is set on the XML element, is used.

  1. <definitions id="definitions"
  2. name="definitions"
  3. xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
  4. expressionLanguage="groovy"
  5. namespace="http://camunda.org/schema/1.0/dmn">
  6. <!-- ... -->
  7. </definitions>

In case no global expression language is set, the default expression languageis used instead. The default expression language for input entries is FEEL.Please refer to the to read more about expressionlanguages.

Output Entry (Conclusion)

Rule - 图1

  1. <outputEntry id="outputEntry4">
  2. <text>"Steak"</text>

If the output entry is empty, then the output is ignored and not part of thedecision table result.

The expression language of the expression can be specified by theexpressionLanguage attribute on the XML element. The supportedexpression languages are listed in the User Guide.

  1. <outputEntry id="outputEntry4"
  2. expressionLanguage="groovy">
  3. <text>"Steak"</text>
  4. </outputEntry>

If no expression language is set then the global expressionlanguage, which is set on the definitions XML element, is used.

  1. <definitions id="definitions"
  2. name="definitions"
  3. xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
  4. expressionLanguage="groovy"
  5. namespace="http://camunda.org/schema/1.0/dmn">
  6. <!-- ... -->

In case no global expression language is set, the default expression languageis used instead. The default expression language for output entries is JUEL.Please refer to the to read more about expressionlanguages.

Description