HTTP - Management
Workflow definition event
Created by c.neale, last modified by j.moore on 17 Dec 2020
An event that can occur to an entry while it is in the current workflow state. This may cause the entry to transition to a different workflow state or stay in the same state.
Properties
Name | Data type | Data format | Description |
---|---|---|---|
id | string | An identifier for the event, which must be unique within the workflow state. | |
name | object | localized value | The friendly name given to the event. |
transitionTo | string | The identifier for the state that the event causes the entry to transition to. If this is not specified or set to *null* then the entry will remain in the same state when this event is triggered. | |
exitActions | object[...] | action | Actions to be performed on the entry when the event triggers and the entry leaves the current state. |
groupId | string | The identifier of the workflow [event group](event-group) which the event belongs to. | |
color | string | The color to be displayed in the Contensis UI for the event. | |
uiAction | string | The event to be performed by the Contensis UI when an entry exits the workflow state. Currently on the value *"navigateToEntryListing"* is supported. The default is for no action to occur. |
Example
This example shows an event.
{
"id": "submit",
"name": {
"en-GB": "Send for approval"
},
"description": {
"en-GB": "Send the entry for approval"
},
"transitionTo": "awaitingApproval",
"exitActions": [
{
"invokeAction": "validateEntry"
}
],
"color": "blue",
"groupId": "submitRevoke",
"uiAction": "navigateToEntryListing",
"parameters": [
{
"id": "message",
"name": {
"en-GB": "Add an optional message for the approver"
},
"dataType": "string",
"dataFormat": null,
"description": {
"en-GB": "The message included with the entry submission"
},
"default": null,
"validations": {},
"editor": {
"id": "multiline",
"instructions": {
"en-GB": "Optionally include a message to let an approver understand your changes"
},
"properties": null
}
}
]
}