mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4274] Should be able to reassign the removed user when starting a new task. (#4591)
* C305050 automated * added the api call to delete the tasks created in afterAll() method and also creating a new user and using that in the Tests and deleting the user in the end rather than using 'Super Admin' and reduce the dependency on env configuration. * linting fixes
This commit is contained in:
committed by
Eugenio Romano
parent
f258c79f7a
commit
0fe0ee9db7
@@ -86,6 +86,16 @@ export class TasksService {
|
||||
return data;
|
||||
}
|
||||
|
||||
async getTaskId(taskName, appName) {
|
||||
const path = '/' + appName + '/query/v1/tasks';
|
||||
const method = 'GET';
|
||||
|
||||
const queryParams = {name: taskName}, postBody = {};
|
||||
|
||||
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
return data.list.entries[0].entry.id;
|
||||
}
|
||||
|
||||
async createStandaloneSubtask(parentTaskId, appName, name) {
|
||||
const path = '/' + appName + '/rb/v1/tasks';
|
||||
const method = 'POST';
|
||||
|
Reference in New Issue
Block a user