Skip to main content

Properties

NameTypeFormatDescription
idstringAn identifier for the state, which must be unique within the workflow.
nameobjectlocalized valueThe friendly name given to the state.
eventsobject[...]eventA collection of events that can occur to an entry in this state.
colorstringcolorThe color to be displayed in the Contensis UI for the state.
uiEditorViewstringui editor viewThe view used by the Contensis UI to display the entry when it is in this state.
allowUpdatesbooleanIndicates if updates are allowed in the current state. Defaults to true, set this to false to prevent authors from saving entries in the current state.

Example

This example shows an awaiting approval workflow state and its associated events.

JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{ "id": "awaitingApproval", "name": { "en-GB": "Awaiting approval" }, "events": [ { "id": "revoke", "name": { "en-GB": "Revoke and edit" }, "auditText": { "en-GB": "Revoked" }, "description": { "en-GB": "Revoke the entry submission" }, "transitionTo": "draft", "color": "white", "groupId": "submitRevoke", "uiAction": "none", "validate": false, "parameters": [] }, { "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 } } ] }, { "id": "approve", "name": { "en-GB": "Approve" }, "auditText": { "en-GB": "Approved" }, "description": { "en-GB": "Approve the entry changes for publishing" }, "transitionTo": "sysWorkflow", "color": "green", "groupId": "approveDecline", "uiAction": "navigateToEntryListing", "validate": false, "parameters": [] } ], "color": "yellow", "uiEditorView": "previousPublishedVersionCompare", "allowUpdates": false }

Still need help?

New support request