# 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](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-c74e88dd5decace74526729a4954ae84206d157b%2F0%20\(10\).png?alt=media)

### 1.1 Menu

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-b10edffb7f3cb74b1c7f6b9ddc1ce7171759715a%2F1%20(11).png?alt=media" alt=""><figcaption></figcaption></figure>

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

![image3.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-6827a25d6d167a980e038e9c795cae651409fe63%2F2%20\(14\).png?alt=media)

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

![image4.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-1a11f8a4ae3f22f305cd636534270e12db500542%2F3%20\(10\).png?alt=media)

## 2. Replay

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

![image5.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-e4fbc61f76a6831233086ff078159c6fe789b909%2F4%20\(9\).png?alt=media)

![image6.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-dcae2c7da6d4846a77b914ffbc81978f753022a9%2F5%20\(12\).png?alt=media)

### 2.1 Menu

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-95288d46d4a6e1980cb98f3560191854855259f7%2F6%20(11).png?alt=media" alt=""><figcaption></figcaption></figure>

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

![image8.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-4b8268b6118a974eaff3c5bc479a4e4da89a17f2%2F7%20\(11\).png?alt=media)

2. Stop - ends the replay

![image9.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-7d195ba077764d3fa676614aa6dd6205d3ca1c4d%2F8%20\(12\).png?alt=media)

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

![image10.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-7f94b5691d8748c17ffe5f4a9f9d0afe7c77de51%2F9%20\(10\).png?alt=media)

### 2.2 Error

![image11.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-6d025951ea1c17457c3cbae628a031827bb3eee3%2F10%20\(11\).png?alt=media)

In the case of an error the following actions are possible

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

![image12.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-79065e4f32d854358183a9be60b2caa3dd6f438f%2F11%20\(9\).png?alt=media)

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

![image13.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-0a4e239b7c6ced8e1cb055522411e919756d24a7%2F12%20\(10\).png?alt=media)

### 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](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-92b9aa21b8381779554c1db06f38925609adb971%2F13%20\(10\).png?alt=media\&token=8d473cae-8dd9-41fd-bd61-9dac2d976a40)

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

![image15.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-bf2e86face13bb4461ef2b691b85a12aa7ee826c%2F14%20\(8\).png?alt=media)

## 2. Demo Video

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