Policy Workflow Step 4

Next, we want to add another step to our policy action. To do this we again go back to the Policy Action itself by clicking on the โ€œinit_installer_stepsโ€ Policy Action icon on the left.

This time we need to deal with the new approval document that was sent, so we add an โ€œinformationโ€ step as a block by clicking on the โ€œInformationโ€ icon in the top navigation bar.

Again we are naming the โ€œTagโ€ to better identify this policy action step. In this case, we want to inform the user of the status of the approval in the previous workflow step.

Next, we are setting the Permission to โ€œInstallerโ€.

Since approval is mandatory, the step must be active by default.

Also, the next step cannot occur before approval is given. Therefore we set โ€œStop Propagationโ€.

For the approval UI, we then specify what Type it is from the drop-down. In our case, a simple TEXT UI is enough to display the approval status.

We then finish by giving the UI a Title and Description.

Programmatically this workflow step looks like this:

   // Notify the user after submitting the request for approval.
    {
      //"InformationBlock" - block type which can display a notification or a progress bar.
      "blockType": "InformationBlock",
      "tag": "wait_fo_approve",
      "children": [],
      "uiMetaData": {
        //"type" - notification type, possible values:
        //  "text" - textual message.
        //  "loader" - progress bar.
        "type": "text",
        // Set title and description for the page, only if the "type" is "text".
        "title": "Waiting for approval",
        "description": "Waiting for approval"
      },
      "permissions": [
        "INSTALLER"
      ],
      // Do not pass control to the next block after displaying the message as need to wait for Standard Registry approval.
      "stopPropagation": true,
      "defaultActive": true
    },

Last updated