You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates (runs) a workflow instance agianst an event.
86
-
*
44
+
*
87
45
* @param string $eventIdentifier The event identifier this workflow should run against
88
46
* @param string $definitionIdentifier The identifier of the workflow definition to use
89
47
* @param string|array $configuration (optional) The optional configuration for this workflow
90
48
* @param boolean $withoperations (optional) Whether the workflow operations should be included in the response (Default value=false)
91
49
* @param boolean $withconfiguration (optional) Whether the workflow configuration should be included in the response (Default value=false)
92
-
*
50
+
*
93
51
* @return array the response result ['code' => 201, 'body' => '{A new workflow is created and its identifier as Object is returned}', 'location' => 'The url']
@@ -157,9 +115,9 @@ public function update($workflowInstanceId, $state = '', $configuration = [], $w
157
115
158
116
/**
159
117
* Deletes a workflow instance.
160
-
*
161
-
* @param string $workflowInstanceId The workflow instance id
162
-
*
118
+
*
119
+
* @param string $workflowInstanceId The workflow instance id
120
+
*
163
121
* @return array the response result ['code' => 204, 'reason' => 'No Content'] (deleted)
164
122
*/
165
123
publicfunctiondelete($workflowInstanceId)
@@ -170,22 +128,23 @@ public function delete($workflowInstanceId)
170
128
171
129
## End of [Section 1]: General API endpoints.
172
130
173
-
## [Section 2]: Workflow definitions.
131
+
## [Section 2]: Workflow definitions API endpoints.
174
132
175
133
/**
176
134
* Returns a list of workflow definitions.
177
-
*
135
+
*
178
136
* @param array $params (optional) The list of query params to pass which can contain the followings:
179
137
* [
180
138
* 'withoperations' => '{(boolean) Whether the workflow operations should be included in the response}',
181
139
* 'withconfigurationpanel' => '{(boolean) Whether the workflow configuration panel should be included in the response}',
140
+
* 'withconfigurationpaneljson' => '{(boolean) Whether the workflow configuration panel in JSON should be included in the response [this is a must for Opencast 17]
182
141
* 'sort' => '{an assiciative array for sorting e.g. ['title' => 'DESC']}',
183
142
* 'limit' => '{the maximum number of results to return}',
184
143
* 'offset' => '{the index of the first result to return}',
185
144
* 'filter' => '{an assiciative array for filtering e.g. ['tag' => '{Workflow definitions where the tag is included}']}',
186
-
* ]
187
-
*
188
-
* @return array the response result ['code' => 200, 'body' => '{A (potentially empty) list of workflow definitions}']
145
+
* ]
146
+
*
147
+
* @return array the response result ['code' => 200, 'body' => '{A (potentially empty) list of workflow definitions}']
189
148
*/
190
149
publicfunctiongetAllDefinitions($params = [])
191
150
{
@@ -200,7 +159,7 @@ public function getAllDefinitions($params = [])
@@ -215,14 +174,15 @@ public function getAllDefinitions($params = [])
215
174
216
175
/**
217
176
* Returns a single workflow definition.
218
-
*
177
+
*
219
178
* @param string $workflowDefinitionId the identifier of the workflow definition.
220
179
* @param boolean $withoperations (optional) Whether the workflow operations should be included in the response (Default value=false)
221
180
* @param boolean $withconfigurationpanel (optional) Whether the workflow configuration should be included in the response (Default value=false)
222
-
*
181
+
* @param boolean $withconfigurationpaneljson (optional) Whether the workflow configuration panel in JSON should be included in the response (Default value=false)
182
+
*
223
183
* @return array the response result ['code' => 200, 'body' => '{ The workflow definition is returned as JSON object}']
0 commit comments