# Policy execution record and replay using UI

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

## 1. Record

The recording starts on the press of the ‘Record’ button.

{% hint style="info" %}
Note: It is strongly recommended to initiate recording at the very beginning of the policy execution, otherwise issues may be encountered at the ‘Replay’ stage.
{% endhint %}

![image1.png](/files/SXChTLFGasrwarEaPPqu)

### 1.1 Menu

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

1. “Stop” - ends the recording and downloads the capture file.

![image3.png](/files/fHKsuSCFFZwBYhHB6rg7)

2. Actions - shows/hides the list of recorded steps/events.

![image4.png](/files/jpwOsF3jiz7keYbVZEFi)

## 2. Replay

Pressing the ‘Run’ button will initiate replay of the previously recorded file.

![image5.png](/files/Q0ze3eDbitRO8A8dBwzL)

![image6.png](/files/tCHVmhgaXH4huAHGq8X6)

### 2.1 Menu

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

1. Fast Forward - quick transition to the next step (skipping the replay of the recorded pause).

![image8.png](/files/Pe2WdDdCWVR2FJ4YuGM8)

2. Stop - ends the replay

![image9.png](/files/dQ3gH2CgeyCVEVjoxBi6)

3. Actions - shows/hides the list of replayed steps/events

![image10.png](/files/3pcTR6wYlWfmNSR92hhI)

### 2.2 Error

![image11.png](/files/UH7D4hx0zDCtyqzzCAbY)

In the case of an error the following actions are possible

1. Retry - attempts to repeat the errored step/event

![image12.png](/files/vyDgbjO4a8lF3tjVR9ib)

2. Skip - skips the errored step/event and execute the next one

![image13.png](/files/oFxFCj1wKYi8mx0X5cKK)

### 2.3 Results

A summary dialogue is shown at the end of the replay. This dialogue contains the information about the tokens and document created during the policy execution, and the extend to which these artifacts are similar to those produced during the original execution (when the ‘records’ file was created).

![image14.png](/files/qrad9zCjsLwC783cAM5P)

The ‘details’ page shows detailed breakdown of differences between the corresponding documents or tokens.

![image15.png](/files/AzpQA8lhL8TFGQKbcHbf)

## 2. Demo Video

[Youtube](https://youtu.be/WU_ntIM5SJA?si=MtY9JUD5mmVd4Gpp\&t=108)


---

# 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/record-replay/policy-execution-record-and-replay-using-ui.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.
