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

# Leverage Business Rules

This guide demonstrates how to integrate decision automation into BPMN processes using business rule tasks and DMN decision tables.

## Add a business rule task

Open your Payment Retrieval process in the Camunda Modeler. Select the *Approve Payment* task and change its type to *Business Rule Task* via the wrench menu.

![Change to a business rule task](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-businessrule-task1.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=a782104ad9bf1d286ec756dee3447493)

Configure the task properties:

* **Implementation:** `DMN`
* **Decision Ref:** `approve-payment`
* **Result Variable:** `approved`
* **Map Decision Result:** `singleEntry`

![Configure the business rule task](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-businessrule-task2.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=7b872a2f3dabdd227f30da812e312e40)

Deploy the updated process using the deploy button.

## Create a DMN table

Create a new DMN diagram via **File > New File > DMN Diagram**.

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

Name the decision element *Approve Payment* with ID `approve-payment` (matching your BPMN Decision Ref).

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

Click the table button to generate a new DMN table.

![Generate the DMN table](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-dmn-table.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=45c7d8dfd40c8acf19a1115844118a05)

## Specify the DMN table

Double-click **Input** to configure:

* **Input Label:** `Item`
* **Input Expression:** `item`

![Configure the input column](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-dmn2.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=6ed65ea1747d8bec433969fef5168bc6)

Configure the output column:

* **Output Label:** `Approved`
* **Output Name:** `approved`

![Configure the output column](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-dmn3.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=97626c016f894ed716de327e952d6482)

Add rules using the plus icon and set the output column data type to `boolean`.

![Add rules](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-dmn4.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=c7f42fb8e0939818cfd5bcf30c0f88ac)

Your completed table should resemble:

![Completed decision table](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-dmn5.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=a2cb321b2d07a46a203199ac58fc3f13)

## Deploy the DMN table

Click **Deploy** in the Modeler. Provide the deployment name *Payment Retrieval Decision* and confirm.

![Deploy the DMN table](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-dmn6.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=3cc67089bcad9fb6416b30b340c7deb3)

## Verify the deployment with Cockpit

Navigate to `http://localhost:8080/aseeflow/app/cockpit/` and log in with `demo` / `demo`. Open the *Decisions* section to confirm *Approve Payment* appears as a deployed decision definition.

![The deployed decision in Cockpit](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/cockpit-approve-payment.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=294b4454d38e3650ff139ed1a2d02450)

## Inspect with Cockpit and Tasklist

Open Tasklist at `http://localhost:8080/aseeflow/app/tasklist/`. Start two Payment Retrieval instances with different inputs to observe routing variations based on the DMN evaluation.

![Start instances in Tasklist](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/tasklist-dmn1.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=acebf29571cdeadf565ad26d0a41d125)

![Observe routing variations](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/tasklist-dmn2.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=5fd79c25af36556e9ac56567ff18c9f5)

Review the executed decision instances in Cockpit's *Decisions* section:

![Decision instances in Cockpit](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/cockpit-dmn-table.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=86017437b02dfb7b049aa682ac42fbf4)

## Success!

You've completed the quick start. For next steps, explore the [ASEE Flow documentation](https://docs.aseeflow.org/1.x/introduction.md).

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


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