> ## 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.

# Create a DMN Decision Table

In this section you'll learn how to create your first DMN decision table with the Camunda Modeler. The table contains decision logic about the desired dish for a given season and guest count.

Start up the Camunda Modeler to begin.

## Create a new decision diagram

Create a new DMN diagram by clicking **File > New File > DMN Diagram**.

![Create a new DMN diagram](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-new-dmn-table.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=d85bf6c55a8e1f62bd0371a0b4950ddc)

## Start with the table header

Select the decision and open the properties panel on the right side. Change the text to `dish` as the technical ID of the decision, which is used to reference the decision inside the process application.

![Set the decision id](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step1.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=12cf4260811c28a84ea180ec5accf18d)

Next, set the name of the decision to *Dish* in the field below.

Click the table icon on top of the decision to drill down into the decision table.

![Drill down into the decision table](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step2a.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=0f9bf1d4b1d5a32e6bd48b14da08ceeb)

Set the input label to *Season* by double-clicking the field under *When*. Similarly, set the output label to *Dish* by double-clicking the field under *Then*.

![Set the input and output labels](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step2b.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=5a6cad9cda0eaeb5b3274fa05a29ce31)

## Configure the input expression and the output name

Assuming the input value for *Season* comes from a variable named `season`, set the input expression to `season`.

Double-click the *Season* field and enter `season` as the expression in the modal menu.

![Configure the input expression](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step3.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=a524c0e15e1af1033b14ffbced829f86)

Next, double-click the *Dish* field and set `desiredDish` as the output name.

## Configure the type of the input and output

If the input value for *Season* is provided as a string, set the input type to `string`.

Double-click the *Season* column header. Open the *Type* dropdown and select `string`.

![Configure the input type](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step4.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=f09386d1171de7af94297555f5b2cd9f)

Similarly, double-click the *Dish* column header and choose `string` as the output type.

## Add rules

Add the first rule by clicking the *+* button at the bottom of the table. In the new row, type `Fall` in the input column and `Spareribs` in the output column.

![Add the first rule](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step5.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=69e08e7442deeeade32fe40e4c11e196)

`Fall` is the condition (input entry) of the rule, expressed in FEEL. It checks whether the input value (the `season` variable) equals `Fall`.

`Spareribs` is the conclusion (output entry) of the rule and returns the string `Spareribs`.

Next, add a second input *How many guests* with the input expression `guestCount` and type `integer`. Fill the table with additional rules for the remaining seasons.

![Add the remaining rules](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step6.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=191d1d8166203e095b0a88cdad6dbe6a)

## Configure the hit policy

Set the hit policy to *UNIQUE*, which specifies that only one rule can match. Click the *Hit Policy* dropdown and choose *UNIQUE*.

![Configure the hit policy](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-step7.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=87b4e642ab664bfd139683640d2d180b)

> [!NOTE]
>
> The default hit policy is *UNIQUE*. If your rules are mutually exclusive, you don't need to change this setting.

## Save the decision table

Save your changes by clicking **File > Save File As...**. Navigate to your application project directory and place the model in the `src/main/resources` folder.

![Save the decision table](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/dmn/img/modeler-save-dmn-table.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=a13dfacf7d3b1aab9a799117eaa8cd57)

Return to your IDE, right-click the project folder, and click *Refresh* to synchronize the new DMN file. For automatic workspace synchronization, consider configuring auto-sync in your IDE.

> [!NOTE]
>
> **Catch up: get the sources of Step-3**
>
> ```bash theme={null}
> git clone https://github.com/aseeflow/aseeflow-get-started-dmn.git
> git checkout -f Step-3
> ```
>
> Or [download as a `.zip`](https://github.com/aseeflow/aseeflow-get-started-dmn/archive/Step-3.zip).

## Next step

Continue to [evaluate and deploy the decision table](https://docs.aseeflow.org/1.x/get-started/dmn/deploy.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.