> 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/aplikacja-biznesowa/wersjonowanie/wersja-robocza-elementu.md).

# Draft version of an element

The draft version mechanism allows safe editing of an application element (such as a form, process, or script) without affecting published versions.

### **Creating a draft version**

Entering edit mode for an element automatically causes:

* blocking editing for other users within the given **major version** (e.g. `1.*`),
* creation **of a draft version** based on the selected version (e.g. `1.8`).

{% hint style="info" %}
For each major version, there can be only **one active draft copy**. If one already exists, access to editing will be blocked until it is saved or discarded.
{% endhint %}

***

### **Working with a draft copy**

During editing, changes are saved automatically:

* **every 30 seconds**,
* and **when leaving the editor** (e.g. closing the tab, switching to another view).

The editor's top bar displays **the time since the last save** on the server. When the editor is reopened, the draft version is restored from the last saved state.

<figure><img src="/files/5a923fe2e8733528d2735bcbacdaae8a5058126e" alt=""><figcaption><p align="center"><em><strong>Figure 1.</strong> Draft copy information</em></p></figcaption></figure>

Confirming changes is done by clicking the button **Save as new version**, which causes:

* saving all changes to the repository,
* creation of a new major or minor version,
* releasing the edit lock.

***

### **Discarding a draft version**

The author of the draft version can at any time abandon the saved changes by choosing the option from the left sidebar menu **Discard draft copy**.

This operation:

* deletes the current draft version,
* restores editing access to the given major version for other users.

<figure><img src="/files/abe3b8dc1634d790cc8b9da5347eaf1920462231" alt=""><figcaption><p align="center"><em><strong>Figure 2.</strong> Menu with the "Discard draft copy" option</em></p></figcaption></figure>

***

### **Unlocking element editing**

If the draft version was created by another user and editing is locked, it is possible to **force unlocking of editing** via the option **Unlock element editing** (also in the left menu).

<figure><img src="/files/a6bb806bbb3fa9ed7d3ff8238085ddbb978d3c77" alt=""><figcaption><p align="center"><em><strong>Figure 3.</strong> Menu with the "Unlock artifact editing" option</em></p></figcaption></figure>

{% hint style="warning" %}
*Note: this operation is irreversible – all unsaved changes in the draft version will be permanently deleted.*
{% endhint %}

<figure><img src="/files/7d323c649293073d7628bdf0604c943027ecc7ef" alt=""><figcaption><p align="center"><em><strong>Figure 4.</strong> Popup confirming artifact unlocking</em></p></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/wersjonowanie/wersja-robocza-elementu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
