# Demo on Policy Wizard 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

There are two ways to open Policy Wizard:

1. Click on Policy Wizard button from Policies Tab as shown below:

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

2. Open from the Policy Configurator page:

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-38956ac5c9a58a4f8dea6bb969bfc1a3c6cfb066%2Fimage%20(49).png?alt=media&#x26;token=ab9417ee-63a3-454e-b9c2-71a6f46fc1cc" alt=""><figcaption></figcaption></figure>

## 4 step process to complete Policy Wizard:

### Policy Description:

This step allows users to setup policy information such as name, description, policy tag and topic description.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-ee48e7a3a9a510cdb52d4b8477553a4722208bfc%2Fimage%20(5)%20(2).png?alt=media&#x26;token=31e84d0d-2e72-4617-9ae5-d680b66f8154" alt=""><figcaption></figcaption></figure>

### Policy Roles:

This step provides facilities to manage policy roles. Created Roles can be deleted by clicking on them.

{% hint style="info" %}
**Note:** Owner is the default policy role (Policy Owner) and cannot be deleted.
{% endhint %}

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

### 3. Policy Schemas

This step allows facilities to manage schemas in the policy by selecting schemas in the dropdown.

#### 3.1 {schema} configuration

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

At this stage users set roles which are able to view the document grid. Additionally they can set the *produced schema* to configure *produced schema* creation based on the current schema.

**Relationship schema** defines documents which will be placed in the relationships in the current schema (after creation).

**Initial for roles** field defines which roles will see this schema (instead of displaying grid immediately) after role choosing.

If **Approve and Reject** and **Minting tokens** are set to *enable* the corresponding functions by this schema would be enabled. This additionally required to specify the token and the field in schema to be used in the minting rule.

{% hint style="info" %}
Note: We can select multiple schemas by entering the schemas names separated by a delimiter: ",".
{% endhint %}

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

#### 3.1.1 {role} configuration

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-eb9d0405fb0bd1610d7e9a34e673cd88d98adb99%2Fimage%20(14)%20(2).png?alt=media&#x26;token=15c4c95c-88cb-4f9c-9b05-a4e929d88fdd" alt=""><figcaption></figcaption></figure>

This step allows:

1. To set *approver* (only if *Approve and Reject functionality* is enabled)
2. *creator* flags for the selected role.
3. Also allows to select *grid columns* (ordering is supported).

### 4. TrustChain

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

This step allows to set up users which are able to view grids with VPs and the grid with the trust chain.

#### 4.1. {role} configuration

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

In this step, Users can choose a minting schema which will be displayed on the trust chain. Additionally, visibility for VPs can be configured to ‘only own ‘ (recommended for the roles other than OWNER) or to ‘all’.

## Save/Recovery Process

After the policy in the wizard is configured, users can click on ‘Create’ and thereby save the progress of the wizard configuration to be able to restore it later.

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

{% hint style="info" %}
**Note:**

1. If ‘Cancel' is clicked, then the wizard progress will be removed.
2. Progress will be automatically removed when policy is published.
   {% endhint %}

Next time, when the wizard is opened a dialog with the selector of wizard states would be displayed, where we can select respective policy and restore progress.

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

## 2. Demo Video

[Youtube](https://youtu.be/sJFfkQ49JnI?si=yPEwfZBA2eWwIkwu\&t=130)
