mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3933]Implement automated tests for task header component (#4191)
* Adding taskDetailsCloudComponent page * Implement task header automated tests * Removed the comments * Fix lint errors.
This commit is contained in:
committed by
Eugenio Romano
parent
aa852e7b48
commit
618929cefb
@@ -79,4 +79,24 @@ export class Tasks {
|
||||
return task;
|
||||
}
|
||||
|
||||
async getTask(taskId, appName) {
|
||||
const path = '/' + appName + '-query/v1/tasks/' + taskId;
|
||||
const method = 'GET';
|
||||
|
||||
const queryParams = {}, postBody = {};
|
||||
|
||||
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
return data;
|
||||
}
|
||||
|
||||
async createStandaloneSubtask(taskId, appName, name) {
|
||||
const path = '/' + appName + '-rb/v1/tasks/' + taskId + '/subtask';
|
||||
const method = 'POST';
|
||||
|
||||
const queryParams = {}, postBody = {'name': name, 'payloadType': 'CreateTaskPayload'};
|
||||
|
||||
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user