mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Add processInstanceId and parentId to new API request body (#10465)
* Add process instance id to new API request body * add parentId
This commit is contained in:
@@ -52,6 +52,8 @@ export class ProcessFilterCloudModel {
|
||||
|
||||
processDefinitionNames: string[] | null;
|
||||
processNames: string[] | null;
|
||||
processInstanceIds: string[] | null;
|
||||
parentIds: string[] | null;
|
||||
initiators: string[] | null;
|
||||
appVersions: string[] | null;
|
||||
statuses: string[] | null;
|
||||
@@ -108,6 +110,8 @@ export class ProcessFilterCloudModel {
|
||||
|
||||
this.processDefinitionNames = obj.processDefinitionNames || null;
|
||||
this.processNames = obj.processNames || null;
|
||||
this.processInstanceIds = obj.processInstanceIds || null;
|
||||
this.parentIds = obj.parentIds || null;
|
||||
this.initiators = obj.initiators || null;
|
||||
this.appVersions = obj.appVersions || null;
|
||||
this.statuses = obj.statuses || null;
|
||||
|
@@ -223,6 +223,20 @@ export class ProcessListCloudComponent
|
||||
@Input()
|
||||
processNames: string[] = [];
|
||||
|
||||
/**
|
||||
* Filter the processes. Display only processes with instance Ids matching any of the supplied strings.
|
||||
* This input will be used only if PROCESS_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||
*/
|
||||
@Input()
|
||||
processInstanceIds: string[] = [];
|
||||
|
||||
/**
|
||||
* Filter the processes. Display only processes with parent Ids matching any of the supplied strings.
|
||||
* This input will be used only if PROCESS_SEARCH_API_METHOD_TOKEN is provided with 'POST' value.
|
||||
*/
|
||||
@Input()
|
||||
parentIds: 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.
|
||||
@@ -552,6 +566,8 @@ export class ProcessListCloudComponent
|
||||
},
|
||||
sorting: this.getProcessListRequestSorting(),
|
||||
processName: this.processNames,
|
||||
processInstanceId: this.processInstanceIds,
|
||||
parentId: this.parentIds,
|
||||
processDefinitionName: this.processDefinitionNames,
|
||||
initiator: this.initiators,
|
||||
appVersion: this.appVersions,
|
||||
|
@@ -88,6 +88,8 @@ export class ProcessListRequestModel {
|
||||
sorting?: ProcessListRequestSortingModel;
|
||||
|
||||
processName?: string[];
|
||||
processInstanceId?: string[];
|
||||
parentId?: string[];
|
||||
processDefinitionName?: string[];
|
||||
initiator?: string[];
|
||||
appVersion?: string[];
|
||||
@@ -114,6 +116,8 @@ export class ProcessListRequestModel {
|
||||
this.sorting = obj.sorting;
|
||||
|
||||
this.processName = obj.processName;
|
||||
this.processInstanceId = obj.processInstanceId;
|
||||
this.parentId = obj.parentId;
|
||||
this.processDefinitionName = obj.processDefinitionName;
|
||||
this.initiator = obj.initiator;
|
||||
this.appVersion = obj.appVersion;
|
||||
@@ -144,6 +148,8 @@ export class ProcessFilterCloudAdapter extends ProcessListRequestModel {
|
||||
|
||||
processDefinitionName: filter.processDefinitionNames,
|
||||
processName: filter.processNames,
|
||||
processInstanceId: filter.processInstanceIds,
|
||||
parentId: filter.parentIds,
|
||||
initiator: filter.initiators,
|
||||
appVersion: filter.appVersions,
|
||||
status: filter.statuses,
|
||||
|
@@ -103,6 +103,8 @@ export class ProcessListCloudService extends BaseCloudService {
|
||||
protected buildQueryData(requestNode: ProcessListRequestModel) {
|
||||
const queryData: any = {
|
||||
name: requestNode.processName,
|
||||
processInstanceId: requestNode.processInstanceId,
|
||||
parentId: requestNode.parentId,
|
||||
processDefinitionName: requestNode.processDefinitionName,
|
||||
initiator: requestNode.initiator,
|
||||
appVersion: requestNode.appVersion,
|
||||
|
Reference in New Issue
Block a user