mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3430] E2E for using fields to filter Process List (#4040)
This commit is contained in:
@@ -24,6 +24,32 @@ import { browser } from 'protractor';
|
||||
|
||||
export class AppsActions {
|
||||
|
||||
async getProcessTaskId(alfrescoJsApi, processId) {
|
||||
let taskList = await alfrescoJsApi.activiti.taskApi.listTasks();
|
||||
let taskId = -1;
|
||||
|
||||
taskList.data.forEach((task) => {
|
||||
if (task.processInstanceId === processId) {
|
||||
taskId = task.id;
|
||||
}
|
||||
});
|
||||
|
||||
return taskId;
|
||||
}
|
||||
|
||||
async getAppDefinitionId(alfrescoJsApi, appModelId) {
|
||||
let appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
let appDefinitionId = -1;
|
||||
|
||||
appDefinitions.data.forEach((appDefinition) => {
|
||||
if (appDefinition.modelId === appModelId) {
|
||||
appDefinitionId = appDefinition.id;
|
||||
}
|
||||
});
|
||||
|
||||
return appDefinitionId;
|
||||
}
|
||||
|
||||
async importPublishDeployApp(alfrescoJsApi, appFileLocation) {
|
||||
let appCreated = await this.importApp(alfrescoJsApi, appFileLocation);
|
||||
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import AppPublish = require('../../models/APS/AppPublish');
|
||||
|
||||
export class AppsRuntimeActions {
|
||||
|
||||
async getRuntimeAppByName(alfrescoJsApi, appName) {
|
||||
|
||||
Reference in New Issue
Block a user