> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/model-danych-w-procesie.md).

# Data model in the process

To be able to use **the data model** in the process, you need to perform the following steps:

1. **Create a data model.**
2. **Link the data model keys bidirectionally to the request**\
   (details described in the section [*Data model on the interface*](/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/model-danych-na-interfejsie.md)).
3. **Run the application with the assigned data model.**

After completing the above steps, the data model is available in the process.

***

### Where can the data model be used?

The data model can be used in:

* **script tasks**,
* **user tasks**,
* **subprocesses**.

***

### Limitations — where do model keys not work?

Data model keys **do not work** in:

* BPMN gateways,
* script **BPMN Script Tasks**.([BPMS script task (scriptTask)](/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/zadania-automatyczne/zadanie-skryptowe-bpms-scripttask.md))

If we want to use model data in these BPMN elements, we need to **map it to process variables**.\
More information in the section [*Passing data to the process*](/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/przekazywanie-danych-do-procesu.md).

***

### modelInstanceId – access to the model instance

A process that uses the data model automatically receives the variable:

**`modelInstanceId`**

This is the identifier of the data model instance in which the model values are stored.\
All operations on the data model during the process use this variable.

***

### Script tasks

A detailed description of using the data model in script tasks can be found here:\
[script task API](/documentation/documentation-en/budowanie-aplikacji/logika-biznesowa/scriptcode/zadanie-skryptowe-scripttask/api-zadan-skryptowych.md#model-danych) and [Data model API](/documentation/documentation-en/budowanie-aplikacji/model-danych/wykorzystanie-modelu-danych/api-modelu-danych.md).

***

### User Tasks

In User Tasks, using the data model consists of using model keys in the same way as in the section [Data model on the interface](/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/model-danych-na-interfejsie.md).

***

### Subprocesses

To use the data model in a subprocess:

1. Pass the variable **`modelInstanceId`**.
2. Variable name **must be identical** as in the calling process.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/model-danych-w-procesie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
