> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aseeflow.org/llms.txt
> Use this file to discover all available pages before exploring further.

# DMN Decision Table Output

<img src="https://mintcdn.com/aseeflow/EOmYJq0E21aelwRy/reference/dmn/decision-table/img/output.png?fit=max&auto=format&n=EOmYJq0E21aelwRy&q=85&s=12779b0d06580b5642204bab7525cde2" alt="Output" width="1537" height="1266" data-path="reference/dmn/decision-table/img/output.png" />

A decision table can have one or more outputs, also called output clauses. An
output clause defines the id, label, name and type of a decision table output.

An output clause is represented by an `output` element inside a `decisionTable`
XML element.

```xml theme={null}
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" id="definitions" name="definitions" namespace="http://camunda.org/schema/1.0/dmn">
  <decision id="dish" name="Dish">
    <decisionTable id="decisionTable">
      <!-- ... -->
      <output id="output1" label="Dish" name="desiredDish" typeRef="string" />
      <!-- ... -->
    </decisionTable>
  </decision>
</definitions>

```

## Output Id

The output id is a unique identifier of the decision table output. It is used
by ASEE Flow to reference the output in the history of
evaluated decisions. Therefore, it is required by the ASEE Flow DMN engine. It is
set as the `id` attribute of the `output` XML element.

```xml theme={null}
<output id="output1" label="Dish" name="desiredDish" typeRef="string" />
```

## Output Label

<img src="https://mintcdn.com/aseeflow/EOmYJq0E21aelwRy/reference/dmn/decision-table/img/output-label.png?fit=max&auto=format&n=EOmYJq0E21aelwRy&q=85&s=288e2e97919a72607001020d43fb4161" alt="Output Label" width="1537" height="1266" data-path="reference/dmn/decision-table/img/output-label.png" />

An output label is a short description of the output. It is set on the `output`
XML element in the `label` attribute. Note that the label is not required but
recommended, since it helps to understand the decision.

```xml theme={null}
<output id="output1" label="Dish" name="desiredDish" typeRef="string" />
```

## Output Name

<img src="https://mintcdn.com/aseeflow/EOmYJq0E21aelwRy/reference/dmn/decision-table/img/output-name.png?fit=max&auto=format&n=EOmYJq0E21aelwRy&q=85&s=e392089f31f0cb0cbfe07172643262ce" alt="Output Name" width="1537" height="1266" data-path="reference/dmn/decision-table/img/output-name.png" />

The name of the output is used to reference the value of the output in the
[decision table result]. It is specified by the `name` attribute on the
`output` XML element.

If the decision table has more than one output, then all outputs must have a
unique name.

```xml theme={null}
<output id="output1" label="Dish" name="desiredDish" typeRef="string" />
```

## Output Type Definition

<img src="https://mintcdn.com/aseeflow/EOmYJq0E21aelwRy/reference/dmn/decision-table/img/output-type-definition.png?fit=max&auto=format&n=EOmYJq0E21aelwRy&q=85&s=fe52641487d0f63795c6054a0b0f4c01" alt="Output Type Definition" width="1537" height="1266" data-path="reference/dmn/decision-table/img/output-type-definition.png" />

The type of the output clause can be specified by the `typeRef` attribute on the
`output` XML element. After an [output entry] is evaluated by the
DMN engine, it converts the result to the specified type. The supported types
are listed in the [User Guide][supported DT].

```xml theme={null}
<output id="output1" label="Dish" name="desiredDish" typeRef="string" />
```

Note that the type is not required but recommended, since it provides a type
safety of the output values.

Additionally, the type can be used to transform the output value into another
type. For example, transform the output value `80%` of type String into a
Double using a [custom data type](/user-guide/dmn-engine/data-types#implement-a-custom-data-type).

[decision table result]: /user-guide/dmn-engine/evaluate-decisions#interpret-the-dmndecisiontableresult

[supported DT]: /user-guide/dmn-engine/data-types#supported-data-types

[output entry]: /reference/dmn/decision-table/rule#output-entry-conclusion

[custom data type]: /user-guide/dmn-engine/data-types#implement-a-custom-data-type
