Skip to main content

Workflow event parameters

Log in to add to favourites

Properties

NameTypeFormatDescription
idstring-The identifier for the parameter.
nameobjectlocalized value The friendly name given to the parameter.
descriptionobjectlocalized value The description given to the parameter.
dataTypestring-This should be set to "string".
defaultobject-This should be set to null.
validationsobject[...]validation The validation to be used.
editorobjecteditor The editor to be used.

Example

This example shows a parameter as used in a workflow definition.

JSON
{
  "id": "decline",
  "name": {
    "en-GB": "Decline"
  },
  "auditText": {
    "en-GB": "Declined"
  },
  "description": {
    "en-GB": "Decline the entry for approval"
  },
  "transitionTo": "declined",
  "color": "red",
  "groupId": "approveDecline",
  "uiAction": "navigateToEntryListing",
  "validate": false,
  "parameters": [
    {
      "id": "message",
      "name": {
        "en-GB": "Add a message to explain to the author why this content is being declined"
      },
      "dataType": "string",
      "dataFormat": null,
      "description": {
        "en-GB": "The decline reason"
      },
      "default": null,
      "validations": {
        "required": {
          "message": {
            "en-GB": "The decline reason is required"
          }
        }
      },
      "editor": {
        "id": "multiline",
        "instructions": {
          "en-GB": "Include a message to let an approver know your changes"
        },
        "properties": null
      }
    }
  ]
}

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request