mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Add process name to new API request body (#10452)
This commit is contained in:
@@ -104,6 +104,7 @@ export class TaskListRequestModel {
|
|||||||
name?: string[];
|
name?: string[];
|
||||||
description?: string[];
|
description?: string[];
|
||||||
processDefinitionName?: string[];
|
processDefinitionName?: string[];
|
||||||
|
processName?: string[];
|
||||||
priority?: string[];
|
priority?: string[];
|
||||||
status?: string[];
|
status?: string[];
|
||||||
completedBy?: string[];
|
completedBy?: string[];
|
||||||
@@ -139,6 +140,7 @@ export class TaskListRequestModel {
|
|||||||
this.name = obj.name;
|
this.name = obj.name;
|
||||||
this.description = obj.description;
|
this.description = obj.description;
|
||||||
this.processDefinitionName = obj.processDefinitionName;
|
this.processDefinitionName = obj.processDefinitionName;
|
||||||
|
this.processName = obj.processName;
|
||||||
this.priority = obj.priority;
|
this.priority = obj.priority;
|
||||||
this.status = obj.status;
|
this.status = obj.status;
|
||||||
this.completedBy = obj.completedBy;
|
this.completedBy = obj.completedBy;
|
||||||
@@ -175,6 +177,7 @@ export class TaskFilterCloudAdapter extends TaskListRequestModel {
|
|||||||
onlyStandalone: filter.standalone,
|
onlyStandalone: filter.standalone,
|
||||||
name: filter.taskNames,
|
name: filter.taskNames,
|
||||||
processDefinitionName: filter.processDefinitionNames,
|
processDefinitionName: filter.processDefinitionNames,
|
||||||
|
processName: filter.processNames,
|
||||||
priority: filter.priorities?.map((priority) => priority.toString()),
|
priority: filter.priorities?.map((priority) => priority.toString()),
|
||||||
status: filter.statuses,
|
status: filter.statuses,
|
||||||
completedBy: filter.completedByUsers,
|
completedBy: filter.completedByUsers,
|
||||||
|
@@ -50,6 +50,7 @@ export class ProcessFilterCloudModel {
|
|||||||
environmentId?: string;
|
environmentId?: string;
|
||||||
|
|
||||||
processDefinitionNames: string[] | null;
|
processDefinitionNames: string[] | null;
|
||||||
|
processNames: string[] | null;
|
||||||
initiators: string[] | null;
|
initiators: string[] | null;
|
||||||
appVersions: string[] | null;
|
appVersions: string[] | null;
|
||||||
statuses: string[] | null;
|
statuses: string[] | null;
|
||||||
@@ -104,6 +105,7 @@ export class ProcessFilterCloudModel {
|
|||||||
this._suspendedTo = obj._suspendedTo || null;
|
this._suspendedTo = obj._suspendedTo || null;
|
||||||
|
|
||||||
this.processDefinitionNames = obj.processDefinitionNames || null;
|
this.processDefinitionNames = obj.processDefinitionNames || null;
|
||||||
|
this.processNames = obj.processNames || null;
|
||||||
this.initiators = obj.initiators || null;
|
this.initiators = obj.initiators || null;
|
||||||
this.appVersions = obj.appVersions || null;
|
this.appVersions = obj.appVersions || null;
|
||||||
this.statuses = obj.statuses || null;
|
this.statuses = obj.statuses || null;
|
||||||
|
@@ -213,7 +213,14 @@ export class ProcessListCloudComponent
|
|||||||
* This input will be used only if PROCESS_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
* This input will be used only if PROCESS_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
names: string[] = [];
|
processNames: string[] = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the processes. Display only processes with definition names matching any of the supplied strings.
|
||||||
|
* This input will be used only if PROCESS_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||||
|
*/
|
||||||
|
@Input()
|
||||||
|
processDefinitionNames: string[] = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the processes. Display only processes started by any of the users whose usernames are present in the array.
|
* Filter the processes. Display only processes started by any of the users whose usernames are present in the array.
|
||||||
@@ -536,7 +543,8 @@ export class ProcessListCloudComponent
|
|||||||
skipCount: this.skipCount
|
skipCount: this.skipCount
|
||||||
},
|
},
|
||||||
sorting: this.getProcessListRequestSorting(),
|
sorting: this.getProcessListRequestSorting(),
|
||||||
name: this.names,
|
processName: this.processNames,
|
||||||
|
processDefinitionName: this.processDefinitionNames,
|
||||||
initiator: this.initiators,
|
initiator: this.initiators,
|
||||||
appVersion: this.appVersions,
|
appVersion: this.appVersions,
|
||||||
status: this.statuses,
|
status: this.statuses,
|
||||||
|
@@ -85,7 +85,8 @@ export class ProcessListRequestModel {
|
|||||||
pagination?: Pagination;
|
pagination?: Pagination;
|
||||||
sorting?: ProcessListRequestSortingModel;
|
sorting?: ProcessListRequestSortingModel;
|
||||||
|
|
||||||
name?: string[];
|
processName?: string[];
|
||||||
|
processDefinitionName?: string[];
|
||||||
initiator?: string[];
|
initiator?: string[];
|
||||||
appVersion?: string[];
|
appVersion?: string[];
|
||||||
status?: string[];
|
status?: string[];
|
||||||
@@ -110,7 +111,8 @@ export class ProcessListRequestModel {
|
|||||||
this.pagination = obj.pagination;
|
this.pagination = obj.pagination;
|
||||||
this.sorting = obj.sorting;
|
this.sorting = obj.sorting;
|
||||||
|
|
||||||
this.name = obj.name;
|
this.processName = obj.processName;
|
||||||
|
this.processDefinitionName = obj.processDefinitionName;
|
||||||
this.initiator = obj.initiator;
|
this.initiator = obj.initiator;
|
||||||
this.appVersion = obj.appVersion;
|
this.appVersion = obj.appVersion;
|
||||||
this.status = obj.status;
|
this.status = obj.status;
|
||||||
@@ -138,7 +140,8 @@ export class ProcessFilterCloudAdapter extends ProcessListRequestModel {
|
|||||||
isFieldProcessVariable: false
|
isFieldProcessVariable: false
|
||||||
}),
|
}),
|
||||||
|
|
||||||
name: filter.processDefinitionNames,
|
processDefinitionName: filter.processDefinitionNames,
|
||||||
|
processName: filter.processNames,
|
||||||
initiator: filter.initiators,
|
initiator: filter.initiators,
|
||||||
appVersion: filter.appVersions,
|
appVersion: filter.appVersions,
|
||||||
status: filter.statuses,
|
status: filter.statuses,
|
||||||
|
@@ -102,7 +102,8 @@ export class ProcessListCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
protected buildQueryData(requestNode: ProcessListRequestModel) {
|
protected buildQueryData(requestNode: ProcessListRequestModel) {
|
||||||
const queryData: any = {
|
const queryData: any = {
|
||||||
name: requestNode.name,
|
name: requestNode.processName,
|
||||||
|
processDefinitionName: requestNode.processDefinitionName,
|
||||||
initiator: requestNode.initiator,
|
initiator: requestNode.initiator,
|
||||||
appVersion: requestNode.appVersion,
|
appVersion: requestNode.appVersion,
|
||||||
status: requestNode.status,
|
status: requestNode.status,
|
||||||
|
@@ -64,6 +64,7 @@ export class TaskFilterCloudModel {
|
|||||||
taskNames: string[] | null;
|
taskNames: string[] | null;
|
||||||
statuses: TaskStatusFilter[] | null;
|
statuses: TaskStatusFilter[] | null;
|
||||||
assignees: string[] | null;
|
assignees: string[] | null;
|
||||||
|
processNames: string[] | null;
|
||||||
processDefinitionNames: string[] | null;
|
processDefinitionNames: string[] | null;
|
||||||
priorities: string[] | null;
|
priorities: string[] | null;
|
||||||
completedByUsers: string[] | null;
|
completedByUsers: string[] | null;
|
||||||
@@ -121,6 +122,7 @@ export class TaskFilterCloudModel {
|
|||||||
this.taskNames = obj.taskNames || null;
|
this.taskNames = obj.taskNames || null;
|
||||||
this.statuses = obj.statuses || null;
|
this.statuses = obj.statuses || null;
|
||||||
this.assignees = obj.assignees || null;
|
this.assignees = obj.assignees || null;
|
||||||
|
this.processNames = obj.processNames || null;
|
||||||
this.processDefinitionNames = obj.processDefinitionNames || null;
|
this.processDefinitionNames = obj.processDefinitionNames || null;
|
||||||
this.priorities = obj.priorities || null;
|
this.priorities = obj.priorities || null;
|
||||||
this.completedByUsers = obj.completedByUsers || null;
|
this.completedByUsers = obj.completedByUsers || null;
|
||||||
|
@@ -170,12 +170,19 @@ export class TaskListCloudComponent extends BaseTaskListCloudComponent<ProcessLi
|
|||||||
statuses: string[] = [];
|
statuses: string[] = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the tasks. Display only tasks under provided processes.
|
* Filter the tasks. Display only tasks under processes with provided definition names.
|
||||||
* This input will be used only if TASK_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
* This input will be used only if TASK_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
processDefinitionNames: string[] = [];
|
processDefinitionNames: string[] = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the tasks. Display only tasks under processes with provided names.
|
||||||
|
* This input will be used only if TASK_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||||
|
*/
|
||||||
|
@Input()
|
||||||
|
processNames: string[] = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the tasks. Display only tasks with provided priorities.
|
* Filter the tasks. Display only tasks with provided priorities.
|
||||||
* This input will be used only if TASK_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
* This input will be used only if TASK_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||||
@@ -273,6 +280,7 @@ export class TaskListCloudComponent extends BaseTaskListCloudComponent<ProcessLi
|
|||||||
onlyStandalone: this.standalone,
|
onlyStandalone: this.standalone,
|
||||||
name: this.names,
|
name: this.names,
|
||||||
processDefinitionName: this.processDefinitionNames,
|
processDefinitionName: this.processDefinitionNames,
|
||||||
|
processName: this.processNames,
|
||||||
processInstanceId: this.processInstanceId,
|
processInstanceId: this.processInstanceId,
|
||||||
priority: this.priorities,
|
priority: this.priorities,
|
||||||
status: this.statuses,
|
status: this.statuses,
|
||||||
|
@@ -101,6 +101,7 @@ export class TaskListCloudService extends BaseCloudService implements TaskListCl
|
|||||||
const queryData: any = {
|
const queryData: any = {
|
||||||
status: requestNode.status,
|
status: requestNode.status,
|
||||||
processDefinitionName: requestNode.processDefinitionName,
|
processDefinitionName: requestNode.processDefinitionName,
|
||||||
|
processName: requestNode.processName,
|
||||||
assignee: requestNode.assignee,
|
assignee: requestNode.assignee,
|
||||||
priority: requestNode.priority,
|
priority: requestNode.priority,
|
||||||
name: requestNode.name,
|
name: requestNode.name,
|
||||||
|
Reference in New Issue
Block a user