Policy Workflow Step 16

As with the sensors page, we add a document source by clicking on the โ€œDocumentโ€ button in the top navigation bar.

We configure the โ€œmrv_gridโ€ UI page in the same way as we did the โ€œsensors_gridโ€ document source for the sensors. Just a different schema and naming.

Note that in contrast to the download functionality for Field 2 for the โ€œsensors_gridโ€ we are now using the link functionality to view the document.

Below are screenshots of the field inputs

Programmatically this workflow step looks like this:

          "children": [
            // MRV grid.
            {
              "tag": "mrv_grid",
              "defaultActive": true,
              "permissions": [
                "INSTALLER"
              ],
              "blockType": "InterfaceDocumentsSourceBlock",
              "onlyOwnDocuments": true,
              "dataType": "vc-documents",
              "filters": {
                "schema": "c4623dbd-2453-4c12-941f-032792a00727",
                "type": "MRV"
              },
              "uiMetaData": {
                "fields": [
                  {
                    "name": "document.id",
                    "title": "ID",
                    "type": "button"
                  },
                  {
                    "name": "document.issuer",
                    "title": "Sensor DID",
                    "type": "text"
                  },
                  {
                    "name": "document",
                    "title": "Document",
                    "tooltip": "",
                    "type": "button",
                    "action": "dialog",
                    "content": "View Document",
                    "uiClass": "link",
                    "dialogContent": "VC",
                    "dialogClass": "",
                    "dialogType": "json"
                  }
                ]
              }
            }
          ]
        }
      ]
    },

This completes this sequence of sub-steps for the MRV data. We have completed the installation set-up, and we can first hide the โ€œInstaller_headerโ€ policy action steps, and then return to the top level, the โ€œinit_installer_stepsโ€

Last updated