|
54 | 54 | }, |
55 | 55 | "title": "DummyAction", |
56 | 56 | "type": "object" |
| 57 | + }, |
| 58 | + "StartWorkflowAction": { |
| 59 | + "properties": { |
| 60 | + "name": { |
| 61 | + "const": "start_workflow", |
| 62 | + "default": "start_workflow", |
| 63 | + "title": "Name", |
| 64 | + "type": "string" |
| 65 | + }, |
| 66 | + "id": { |
| 67 | + "anyOf": [ |
| 68 | + { |
| 69 | + "type": "string" |
| 70 | + }, |
| 71 | + { |
| 72 | + "type": "null" |
| 73 | + } |
| 74 | + ], |
| 75 | + "default": null, |
| 76 | + "title": "Id" |
| 77 | + }, |
| 78 | + "template_id": { |
| 79 | + "description": "ID of the workflow template to start", |
| 80 | + "title": "Template Id", |
| 81 | + "type": "string" |
| 82 | + }, |
| 83 | + "cdb_project_id": { |
| 84 | + "anyOf": [ |
| 85 | + { |
| 86 | + "type": "string" |
| 87 | + }, |
| 88 | + { |
| 89 | + "type": "null" |
| 90 | + } |
| 91 | + ], |
| 92 | + "default": null, |
| 93 | + "description": "ID of the project in which the workflow should be started", |
| 94 | + "title": "Cdb Project Id" |
| 95 | + }, |
| 96 | + "title": { |
| 97 | + "description": "Title of the workflow (max. 255 characters)", |
| 98 | + "maxLength": 255, |
| 99 | + "title": "Title", |
| 100 | + "type": "string" |
| 101 | + }, |
| 102 | + "attachment_ids": { |
| 103 | + "description": "List of cdb_object_ids to attach to the workflow", |
| 104 | + "items": { |
| 105 | + "type": "string" |
| 106 | + }, |
| 107 | + "title": "Attachment Ids", |
| 108 | + "type": "array" |
| 109 | + }, |
| 110 | + "global_briefcase_object_ids": { |
| 111 | + "description": "List of cdb_object_ids to attach to the global briefcase", |
| 112 | + "items": { |
| 113 | + "type": "string" |
| 114 | + }, |
| 115 | + "title": "Global Briefcase Object Ids", |
| 116 | + "type": "array" |
| 117 | + }, |
| 118 | + "task_configurations": { |
| 119 | + "description": "List of task configurations", |
| 120 | + "items": { |
| 121 | + "$ref": "#/$defs/TaskConfiguration" |
| 122 | + }, |
| 123 | + "title": "Task Configurations", |
| 124 | + "type": "array" |
| 125 | + } |
| 126 | + }, |
| 127 | + "required": [ |
| 128 | + "template_id", |
| 129 | + "title" |
| 130 | + ], |
| 131 | + "title": "StartWorkflowAction", |
| 132 | + "type": "object" |
| 133 | + }, |
| 134 | + "Subject": { |
| 135 | + "properties": { |
| 136 | + "subject_id": { |
| 137 | + "description": "ID of the subject, eg. a role name or personalnummer", |
| 138 | + "title": "Subject Id", |
| 139 | + "type": "string" |
| 140 | + }, |
| 141 | + "subject_type": { |
| 142 | + "description": "Type of the subject: Person, PCS Role or Common Role", |
| 143 | + "enum": [ |
| 144 | + "Person", |
| 145 | + "PCS Role", |
| 146 | + "Common Role" |
| 147 | + ], |
| 148 | + "title": "Subject Type", |
| 149 | + "type": "string" |
| 150 | + } |
| 151 | + }, |
| 152 | + "required": [ |
| 153 | + "subject_id", |
| 154 | + "subject_type" |
| 155 | + ], |
| 156 | + "title": "Subject", |
| 157 | + "type": "object" |
| 158 | + }, |
| 159 | + "TaskConfiguration": { |
| 160 | + "properties": { |
| 161 | + "task_id": { |
| 162 | + "description": "Identifier for the task", |
| 163 | + "title": "Task Id", |
| 164 | + "type": "string" |
| 165 | + }, |
| 166 | + "responsible": { |
| 167 | + "anyOf": [ |
| 168 | + { |
| 169 | + "$ref": "#/$defs/Subject" |
| 170 | + }, |
| 171 | + { |
| 172 | + "type": "null" |
| 173 | + } |
| 174 | + ], |
| 175 | + "default": null, |
| 176 | + "description": "Responsible subject for the task" |
| 177 | + }, |
| 178 | + "recipients": { |
| 179 | + "description": "List of recipients for the task (only used by information tasks)", |
| 180 | + "items": { |
| 181 | + "$ref": "#/$defs/Subject" |
| 182 | + }, |
| 183 | + "title": "Recipients", |
| 184 | + "type": "array" |
| 185 | + }, |
| 186 | + "description": { |
| 187 | + "anyOf": [ |
| 188 | + { |
| 189 | + "maxLength": 1024, |
| 190 | + "type": "string" |
| 191 | + }, |
| 192 | + { |
| 193 | + "type": "null" |
| 194 | + } |
| 195 | + ], |
| 196 | + "default": null, |
| 197 | + "description": "Description of the task. If not set, the existing description will be kept. (max. 1024 characters)", |
| 198 | + "title": "Description" |
| 199 | + }, |
| 200 | + "title": { |
| 201 | + "anyOf": [ |
| 202 | + { |
| 203 | + "maxLength": 60, |
| 204 | + "type": "string" |
| 205 | + }, |
| 206 | + { |
| 207 | + "type": "null" |
| 208 | + } |
| 209 | + ], |
| 210 | + "default": null, |
| 211 | + "description": "Title of the task. If not set, the existing title will be kept. (max. 60 characters)", |
| 212 | + "title": "Title" |
| 213 | + } |
| 214 | + }, |
| 215 | + "required": [ |
| 216 | + "task_id" |
| 217 | + ], |
| 218 | + "title": "TaskConfiguration", |
| 219 | + "type": "object" |
57 | 220 | } |
58 | 221 | }, |
59 | 222 | "properties": { |
|
73 | 236 | "discriminator": { |
74 | 237 | "mapping": { |
75 | 238 | "abort_and_show_error": "#/$defs/AbortAndShowErrorAction", |
76 | | - "dummy": "#/$defs/DummyAction" |
| 239 | + "dummy": "#/$defs/DummyAction", |
| 240 | + "start_workflow": "#/$defs/StartWorkflowAction" |
77 | 241 | }, |
78 | 242 | "propertyName": "name" |
79 | 243 | }, |
|
83 | 247 | }, |
84 | 248 | { |
85 | 249 | "$ref": "#/$defs/DummyAction" |
| 250 | + }, |
| 251 | + { |
| 252 | + "$ref": "#/$defs/StartWorkflowAction" |
86 | 253 | } |
87 | 254 | ] |
88 | 255 | }, |
|
0 commit comments