Decision Table - 图1

A decision table represents decision logic which can be depicted as a table inDMN 1.1. It consists of inputs, outputs and rules.

A decision table is represented by a decisionTable element inside adecision XML element.

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

Decision Name

Decision Table - 图2

The name describes the decision for which the decision table provides thedecision logic. It is set as the name attribute on the decision element.

  1. <decision id="dish" name="Dish">
  2. <decisionTable id="decisionTable">
  3. <!-- ... -->
  4. </decisionTable>
  5. </decision>

Decision Id

Decision Table - 图3

The id is the technical identifier of the decision. It is set in the idattribute on the decision element.

Each decision should have an unique id when it is deployed to the Camunda BPMplatform. The engine uses the id as the decision key of the deployedDecisionDefinition.

  1. <decision id="dish" name="Dish">
  2. <decisionTable id="decisionTable">
  3. <!-- ... -->
  4. </decisionTable>
  5. </decision>

原文: https://docs.camunda.org/manual/7.9/reference/dmn11/decision-table/