# Policy execution record and replay using UI

## 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 %}

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FcDrGO6nVRsVz0oS0lYeG%2Fimage.png?alt=media&#x26;token=662b20a5-694c-4e16-aca9-61242e1dd009" alt=""><figcaption></figcaption></figure>

### 1.1 Menu

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FVxvDkjb7nk1wIaHI0ZF5%2Fimage.png?alt=media&#x26;token=ab2e3ce0-d626-4f3a-b630-b4b175bb0f91" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FFD4TlqnI6GPy67P0g88j%2Fimage.png?alt=media&#x26;token=736b741a-2b92-4a66-ba91-81a67dac2f3b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FR1op4dO0odQHsMIfRALA%2Fimage.png?alt=media&#x26;token=8d6ed08d-77b3-4616-935f-253ccfc95748" alt=""><figcaption></figcaption></figure>

## 2. Replay

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FODYgVO7HWoWEuMeoPfUm%2Fimage.png?alt=media&#x26;token=ab8babb1-4163-46e9-a368-ac625885b475" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FfWli27yxQZVso126EIth%2Fimage.png?alt=media&#x26;token=f43415b9-2b99-41c9-8381-02f132dd075d" alt=""><figcaption></figcaption></figure>

### 2.1 Menu

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FGqLPkOzYPLDytVbWlb5U%2Fimage.png?alt=media&#x26;token=6250dab8-7e18-4701-8ab6-60b02389df34" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FpRHjlSPgj64xFuIfzGHE%2Fimage.png?alt=media&#x26;token=9b62f396-2b7b-4f73-9145-017c0e28bec6" alt=""><figcaption></figcaption></figure>

2. Stop - ends the replay

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2Fe5eUjeQhV9HUVdq1ZLsv%2Fimage.png?alt=media&#x26;token=58dc63da-7134-4aa5-b96b-15c7c0d095a7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FWf98PfgLubXX9vmY8Xrn%2Fimage.png?alt=media&#x26;token=e308d488-0f37-4450-9425-0bc518905bfc" alt=""><figcaption></figcaption></figure>

### 2.2 Error

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FN8rmKA18cDoCLthYh0J0%2Fimage.png?alt=media&#x26;token=909fcc7c-7073-4932-b83d-88d5cdf52cf2" alt=""><figcaption></figcaption></figure>

In the case of an error the following actions are possible

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2F6oKnGZ4i5qtdJ7gqz4vp%2Fimage.png?alt=media&#x26;token=f9765788-a8a0-43ce-a469-7460e4f2d551" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FOEoG72RQCU7h9IWc89AT%2Fimage.png?alt=media&#x26;token=cd94d57b-77f1-4f50-8272-d8477a95429e" alt=""><figcaption></figcaption></figure>

### 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).

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FRMJ5phsXzJfaxOUnOGbB%2Fimage.png?alt=media&#x26;token=e53f81d3-fb7c-4d2e-b7b9-941b292d0306" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2Fl7eijigyYGZAb4knyPi5%2Fimage.png?alt=media&#x26;token=ca9bb1d3-85e9-4a4d-b08f-389630f9b4fd" alt=""><figcaption></figcaption></figure>
