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

# Modeling

WebAdmin has modelers in the browser, under **Modeling** in the left-hand menu:

* **Modeling › BPMN**: processes, with a properties panel, a linter, and deployment to the engine.
* **Modeling › DMN** (since 2.1): decision requirements diagrams, decision tables and literal expressions, with a properties panel, a linter, and deployment.
* **Modeling › Form** (since 2.1): Camunda Forms for user tasks and start events, with a properties panel and deployment.

They are for modeling next to the engine you administer, without installing anything. The [Camunda Modeler](https://docs.aseeflow.org/modeler.md) remains the desktop tool for working with files and projects; both read and write the same BPMN, DMN and form files.

## What the modelers do

* **Your model stays in the browser.** The diagram or form is kept in the browser's local storage. It survives leaving the page, closing the tab, and restarting the browser. It is stored for that browser only: another browser or computer does not see it.
* **Files only when you ask.** **Upload** opens a `.bpmn`, `.dmn` or `.form` file from your computer, and **Download** saves the model as a file. In Chrome and Edge it asks where to save and confirms the saved file by name; other browsers save it as a download. **Download SVG** saves the picture of the diagram (in the DMN modeler, from the decision requirements diagram).
* **View XML** shows the diagram's XML; for a form, **View JSON** shows its JSON.
* **Undo and redo** with **Ctrl+Z** and **Ctrl+Y**, or from the **Actions** menu.
* **Properties**: in the BPMN and DMN modelers, the switch next to **Actions** shows the properties panel, where you set the attributes ASEE Flow reads, such as the history time to live and the version tag. The Form modeler's panel is always on the right.
* **Deploy** sends the diagram or form to the engine as a deployment, through the engine's REST API and under your [deployment authorizations](https://docs.aseeflow.org/user-guide/process-engine/authorization-service.md). The dialog asks for the deployment's name and source; **Advanced** has the duplicate filtering options. For a model opened with **Edit in modeler**, the name is pre-filled with the name of the deployment it came from.
* **Additional files** (since 2.1): in the deploy dialog, **Add files** adds further files to the same deployment, such as the forms, decisions, scripts or called processes a process uses. A process that refers to one of them with the binding `deployment` finds it only in its own deployment, so deploy them together. Each file is listed with its resource name, which you can change, for example to a path such as `forms/approve.html`. A deployment holds one resource per name: the dialog refuses two files with the same name, and a file with the name of the model. **Resource name** is the model's own name in the deployment; it follows the deployment name until you change it, and has to keep its ending (`.bpmn`, `.dmn`, `.form`), by which the engine recognises the model.
* **Filtering covers all the files.** With **Enable duplicate filtering**, a deployment whose files are all unchanged is not created again. With **Deploy changed resources only**, the new deployment holds only the files that changed. A process that did not change is then not in it and keeps looking up a form or decision bound with `deployment` in its own, older deployment, so leave the option off when you change such a file. Both options compare files by resource name, among deployments with the same name.
* **File size**: the engine's REST API and WebAdmin set no limit of their own on a deployment's size. A server or reverse proxy in front of them may set one.

## Modeling › BPMN

The BPMN modeler draws processes with the palette on the left and has a minimap for large diagrams. Its **Actions** menu also has **Select All**, **Auto Layout** (arranges the diagram) and **Clear**.

![The BPMN modeler with a process, the linter's "No Issues" button, and the properties panel](https://mintcdn.com/aseeflow/kh4_PYgqDehLkusl/webadmin/img/modeling-bpmn.png?fit=max\&auto=format\&n=kh4_PYgqDehLkusl\&q=85\&s=b733672601ec903721e48c5fb8c06cef)

* **Open a deployed process** (since 2.1): on a process definition's page, **Edit in modeler** in the **Actions** menu opens that version of the process. Deploying it again creates a new deployment, and the engine makes the process a new version. When the deployment it came from also had other files, such as forms, scripts or decisions, the deploy dialog names them: a process that loads one of them from its own deployment (with the binding `deployment`) does not find it in a new deployment that lacks it. Tick **Include the rest of its deployment** to deploy them again with the process; you can still remove or replace single files in the list.
* **Unsaved changes** are asked about before **Upload**, **Clear** or opening a deployed process replaces them. A download or a deployment counts as saving; a save dialog you cancel does not, in Chrome and Edge.

The linter checks the diagram as you draw and marks each finding on the element, with the recommended BPMN rules and rules of ASEE Flow's own.

With the [AI features](https://docs.aseeflow.org/webadmin/ai.md) module, the BPMN modeler also has an AI assistant that draws and changes processes from a description and explains and fixes the linter's findings. Without it, the modeler works the same, without the assistant.

## Modeling › DMN

> [!NOTE]
>
> The DMN modeler is new in WebAdmin 2.1.

The DMN modeler has a tab for each view: one for the decision requirements diagram (DRD), and one for the logic of each decision or business knowledge model. You can also switch views from the diagram, with the icon on a decision, and back with **View DRD**.

![A decision table in the DMN modeler, with its tab next to the decision requirements diagram's](https://mintcdn.com/aseeflow/kh4_PYgqDehLkusl/webadmin/img/modeling-dmn-table.png?fit=max\&auto=format\&n=kh4_PYgqDehLkusl\&q=85\&s=521dd7d137334c1a55b8f08ee2f4f4c1)

* **Decision tables and literal expressions** are edited in their own views. The DRD's properties panel has a decision's name, id, version tag, variable, and history time to live. The table and expression views have no properties panel.
* **Open a deployed decision**: on a decision definition's page, **Edit in modeler** in the **Actions** menu opens that decision; on a decision requirements definition's page, **Edit in modeler** opens its diagram. Deploying it again creates a new deployment, and the engine makes its decisions new versions. When the deployment it came from also had other files, the deploy dialog names them: a process among them that calls the decision with the binding `deployment` keeps using the decision in its own deployment. Tick **Include the rest of its deployment** to deploy them again with the decision; the process then gets a new version too.
* **Unsaved changes** are asked about before **New diagram**, **Upload DMN** or opening a deployed decision replaces them. A download or a deployment counts as saving; a save dialog you cancel does not, in Chrome and Edge.

### The linter

The linter checks the decision requirements diagram and marks each finding on the element, with the recommended DMN rules and rules of ASEE Flow's own. A button at the bottom of the diagram shows the number of errors and warnings, and switches the linter off and on. The linter checks the diagram only, not the table and expression views.

![The DMN linter's warning on a decision without a history time to live, with the count at the bottom of the diagram](https://mintcdn.com/aseeflow/kh4_PYgqDehLkusl/webadmin/img/modeling-dmn-drd.png?fit=max\&auto=format\&n=kh4_PYgqDehLkusl\&q=85\&s=6e79e6b87526d84836822cbac88f0b21)

## Modeling › Form

> [!NOTE]
>
> The Form modeler is new in WebAdmin 2.1.

The Form modeler builds [Camunda Forms](https://docs.aseeflow.org/user-guide/task-forms): the components are on the left, the form is in the middle, and the properties of the selected field, or of the form, are on the right. Drag a component onto the form, or press **Enter** on it.

* **The form's id is its key.** A user task or start event refers to a deployed form by that id, with a form reference of the type Camunda Forms. A new form gets an id of its own; change it under **General** in the form's properties. A download is named after it, `<id>.form`.
* **Deploy** sends the form as `<deployment name>.form`, alone unless you add files. The engine resolves a form reference when a process instance reaches the task, so the form and the process can be deployed separately, in any order. With the binding `latest`, a new version of the form also reaches running instances. With the binding `deployment`, the form has to be in the process's deployment: deploy the process from the BPMN editor and add the form under **Additional files**.
* **Open a deployed form**: on a deployment's page, the **Deployed Resources** tab has an **Edit … in modeler** button for each form. Deploying it again creates a new deployment, and the engine makes the form a new version. When the deployment it came from also had other files, the deploy dialog names them: a process among them that refers to the form with the binding `deployment` keeps using the form in its own deployment. Tick **Include the rest of its deployment** to deploy them again with the form; the process then gets a new version too.
* **A button to submit the form**: WebAdmin's **Tasks** complete a task when its form is submitted, so add a **Button** with the action **Submit**. The deploy dialog warns when the form has none; it still deploys. The Legacy Tasklist has a **Complete** button of its own.
* **Unsaved changes** are asked about before **New form**, **Upload form** or opening a deployed form replaces them. A download or a deployment counts as saving; a save dialog you cancel does not, in Chrome and Edge.

### Forms in the Legacy Tasklist

WebAdmin's **Tasks** show every field of the Form modeler. The Legacy Tasklist uses an older form renderer (form-js 1.8.7), which does not know two of them: the **File picker** and the **Document preview**. A form with either is not shown in the Legacy Tasklist at all. When the form has such a field, the modeler says so above the editor and the deploy dialog warns, both naming the field; it still deploys.

A custom error message for a validation pattern is also newer than that renderer: the Legacy Tasklist shows the standard message.

> [!WARNING]
>
> A form's validation runs in the browser. The engine does not check submitted values against the form, so a client of the REST API can complete the task with values the form would refuse. Check what matters in the process.


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