# Multiple Draft

### Overview

In the AMS-III.AR policy workflow, users frequently enter complex data across multiple sections — such as monitoring parameters, emission reductions, and baseline calculations.\
The Draft Feature in Guardian allows users to save their progress without submitting for validation, ensuring that incomplete entries are preserved safely for later editing.

This feature supports incremental data entry, auto-saving, and role-based draft management for Project Developers (PDs), Validators (VVBs), and Reviewers.

### Workflow Summary

| **User Role**          | **Action**                                              | **Outcome**                                            |
| ---------------------- | ------------------------------------------------------- | ------------------------------------------------------ |
| Project Developer (PD) | Fills monitoring or baseline data and clicks Save Draft | Draft version created; stored without validation       |
| PD or VVB              | Reopens the draft using Edit Draft                      | Data restored for continued editing                    |
| Guardian System        | Auto-saves progress every 2 minutes                     | Prevents accidental data loss                          |
| Policy Configurator    | Configures Draft Event logic                            | Differentiates new document creation vs. draft updates |

### 1. Save Draft

While entering data in the AMS-III.AR form, users can click Save Draft at any stage.\
This action creates a *VC document* in the Guardian database that:

* Bypasses validation
* Is stored as-is
* Appears in the policy grid under “Draft Documents”

**Example Scenario**

A Project Developer begins filling the *Project Data* section but lacks some measurements.\
They can select Save Draft to store progress safely, then return later to complete and validate the form.

<figure><img src="/files/2m3pagKWFhXCWPEob40C" alt=""><figcaption></figcaption></figure>

Saved drafts can be edited, an additional option ‘EditType’ has been added to the request block for this purpose

<figure><img src="/files/8tfmUryLlyl7tvHTeuaR" alt=""><figcaption></figcaption></figure>

### 2. Draft Event Logic in Configurator

Guardian’s Draft Event allows configurators to define workflow rules specific to drafts.\
This enables policies to handle separate logic for:

* New document creation
* Existing draft updates

Example Implementation

* Block 1 → Handles new AMS-III.AR document creation
* Block 2 → Handles updates to saved drafts

This structure ensures consistent validation flow and prevents overwriting finalized records.

<figure><img src="/files/Ygsa6lotj67k6EpJDNim" alt=""><figcaption></figcaption></figure>

### 3. UI Enhancements — Auto-Save

Guardian includes an auto-save mechanism to prevent data loss during form entry.

#### How It Works

* Auto-save runs every 2 minutes if any changes are detected.
* Data is stored in IndexedDB (local browser storage).
* After each save, a label shows the message:

  > “Last auto-saved at \[timestamp].”

<figure><img src="/files/s4TdKVQVOFiWs7lOLP8D" alt=""><figcaption></figcaption></figure>

#### Data Restoration

When reopening an AMS-III.AR form, Guardian prompts:

> “An autosave was found. Do you want to restore it?”

This ensures the user can always recover recent unsaved progress.

<figure><img src="/files/seUEGJzxYpNuAQPEuU0u" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://guardian.hedera.com/guardian-dev/guardian/standard-registry/policies/multiple-draft.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.
