buttonBlock

Properties

Block PropertyDefinitionExample InputStatus

tag

Unique name for the logic block.

buttonBlock

permissions

Which entity has rights to interact at this part of the workflow.

VVB

defaultActive

Shows whether this block is active at this time and whether it needs to be shown.

Checked or unchecked.

On errors

Called if the system error has occurs in the Block

  • No action

  • Retry

  • Go to step

  • Go to tag

stop Propagation

End processing here, don't pass control to the next block.

Checked or unchecked.

Button

Block PropertyDefinitionExample InputStatus

Type

Type of the Button

Two types of buttons: 1. Selector : Simply button. 2. Selector - dialog : button with dialog

Button Tag

Tag of the button will be chosen in events tab

Button_0

Dialog Title

pop - up dialog title. this field gets enabled when button type is Selector-dialog

Reject

Dialog Description

It is the text inside dialog pop up. This field is enabled when button type is Selector - dialog

Enter reject reason

Button Name

Label of the button

Validate

Field

Field of document to change

option.status

Value

Value to set

Validated

UI Class

UI class of the button

btn-approve

Filters

array of addition visible filters

Field (field) โ€“ field of document.

Value (value) โ€“ field to compare.

Type (type)โ€“ type of comparison.

dialogResultFieldPath

This will allow to define destination field where value from dialog will be stored. Also it will not override value of this field, it will only be replaced to array or value will be just pushed to existing array.

Field Path

Enable Individual Filters

As per button visibility filters instead of hiding all buttons

Checked or Unchecked

API Parameters

GET /policies/{policyId}/blocks/{uuid}

Path Parameters

NameTypeDescription

policyId*

String

Policy ID

uuid*

String

Block UUID

{
  "id": "fa4c1642-700a-44f6-a8eb-1089e77c4d64",
  "blockType": "buttonBlock",
  "type": "selector",
  "uiMetaData": {
    "options": [
      {
        "title": "",
        "name": "Add",
        "tooltip": "",
        "type": "text",
        "value": "Waiting for Validation",
        "uiClass": "btn-approve",
        "bindBlock": "save_added",
        "tag": "Option_0"
      }
    ],
    "content": "VVB",
    "buttons": [
      {
        "tag": "Option_0",
        "name": "Add",
        "type": "selector",
        "filters": [],
        "field": "option.status",
        "value": "Waiting for Validation",
        "uiClass": "btn-approve"
      }
    ]
  }
}

POST /policies/{policyId}/blocks/{uuid}

Path Parameters

NameTypeDescription

policyId*

String

Policy ID

uuid*

String

Block UUID

Request Body

NameTypeDescription

document*

Object

VC Document

Last updated