mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-4241]Added tests for process header cloud component (#4463)
* Added tests for process header cloud component * Move the process-header-cloud-component page to testing folder * Changed the test rail ids * Fix lint issues.
This commit is contained in:
committed by
Eugenio Romano
parent
f9e39aaebd
commit
e415bd8cd5
@@ -28,13 +28,14 @@ export class ProcessInstances {
|
||||
await this.api.login(username, password);
|
||||
}
|
||||
|
||||
async createProcessInstance(processDefKey, appName) {
|
||||
async createProcessInstance(processDefKey, appName, options?) {
|
||||
const path = '/' + appName + '-rb/v1/process-instances';
|
||||
const method = 'POST';
|
||||
|
||||
const queryParams = {}, postBody = {
|
||||
'processDefinitionKey': processDefKey,
|
||||
'payloadType': 'StartProcessPayload'
|
||||
'payloadType': 'StartProcessPayload',
|
||||
...options
|
||||
};
|
||||
|
||||
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
|
||||
@@ -38,4 +38,14 @@ export class Query {
|
||||
return data;
|
||||
}
|
||||
|
||||
async getProcessInstanceSubProcesses(processInstanceId, appName) {
|
||||
const path = '/' + appName + '-query/v1/process-instances/' + processInstanceId + '/subprocesses';
|
||||
const method = 'GET';
|
||||
|
||||
const queryParams = {};
|
||||
|
||||
const data = await this.api.performBpmOperation(path, method, queryParams, {});
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user