# How is the BPMN model analyzed?

**URL:** <https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995>\
**Category:** Camunda 8 Topics\
**Created:** [November 18, 2024, 9:51am UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995 "2024-11-18T09:51:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassan\_Mohseni](https://forum.camunda.io/user_avatar/forum.camunda.io/hassan_mohseni/32/31294_2.png) [@Hassan\_Mohseni](https://forum.camunda.io/u/Hassan_Mohseni)\
**Post date:** [November 18, 2024, 9:51am UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995/1 "2024-11-18T09:51:01Z")

</div>

I want to know how the BPMN XML file, which includes nodes and edges, is mapped in Camunda 8 (for example, the precedence and order of tasks in a process). Where is this information stored?

I have searched the Elasticsearch index, but apart from the “operate-process” index, which includes the XML file and nodes, I couldn’t find anything else.

Currently, my requirement is to be able to retrieve the list of tasks for a process with a specific version, including all types such as user tasks and service tasks, along with their order.

please help me.

---

<div class="post-metadata">

**Author:** ![cpbpm](https://forum.camunda.io/letter_avatar_proxy/v4/letter/c/919ad9/32.png) [@cpbpm](https://forum.camunda.io/u/cpbpm)\
**Post date:** [November 18, 2024, 3:08pm UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995/2 "2024-11-18T15:08:50Z")

</div>

You can use the API to find out the flow of process instance:

> **[Get sequence flows of process instance by key | Camunda 8 Docs](https://docs.camunda.io/docs/apis-tools/operate-api/specifications/sequence-flows-by-key/)**
>
> Get sequence flows of process instance by key

---

<div class="post-metadata">

**Author:** ![GotnOGuts](https://forum.camunda.io/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@GotnOGuts](https://forum.camunda.io/u/GotnOGuts)\
**Post date:** [November 18, 2024, 5:16pm UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995/3 "2024-11-18T17:16:58Z")

</div>

Hi, and welcome the to user forums!

> [@Hassan\_Mohseni](#):
>
> Currently, my requirement is to be able to retrieve the list of tasks for a process with a specific version, including all types such as user tasks and service tasks, along with their order.

That’s not really possible, because not all tasks will be created for a defined flow if you have any gateways. This means that you are only considering the “happy-path” of a process. BPMN is about modeling the entire process, including the exceptional passes.

---

<div class="post-metadata">

**Author:** ![Hassan\_Mohseni](https://forum.camunda.io/user_avatar/forum.camunda.io/hassan_mohseni/32/31294_2.png) [@Hassan\_Mohseni](https://forum.camunda.io/u/Hassan_Mohseni)\
**Post date:** [November 21, 2024, 3:15pm UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995/4 "2024-11-21T15:15:52Z")

</div>

Thank you for your welcome

I think that when a version of a process is sent to the Zeebe engine, it analyzes the XML file and stores it somewhere, but I cannot find it, and it might be created in-memory.

I suspect there is an overall analysis of each version of the XML process file, and the engine determines the movement between different paths based on it.

Could you please guide me on how the Zeebe engine analyzes the XML process file and whether it stores it in a database or keeps it in-memory?

---

<div class="post-metadata">

**Author:** ![GotnOGuts](https://forum.camunda.io/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@GotnOGuts](https://forum.camunda.io/u/GotnOGuts)\
**Post date:** [November 21, 2024, 7:36pm UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995/5 "2024-11-21T19:36:04Z")

</div>

I can’t really speak to how Zeebe stores the process definition internally.

The process definitions are stored (somehow) in a RocksDB that is not accessible outside of Zeebe.

When an activity is completed, all outgoing flows are evaluated, and any gateways are evaluated. If this creates additional activities then those will be slated for execution.

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [February 19, 2025, 7:36pm UTC](https://forum.camunda.io/t/how-is-the-bpmn-model-analyzed/56995/6 "2025-02-19T19:36:43Z")

</div>

Closed on February 19, 2025, 7:36pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
