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;
|
processDefinitionNames: string[] | null;
|
||||||
processNames: string[] | null;
|
processNames: string[] | null;
|
||||||
|
processInstanceIds: string[] | null;
|
||||||
|
parentIds: string[] | null;
|
||||||
initiators: string[] | null;
|
initiators: string[] | null;
|
||||||
appVersions: string[] | null;
|
appVersions: string[] | null;
|
||||||
statuses: string[] | null;
|
statuses: string[] | null;
|
||||||
@@ -108,6 +110,8 @@ export class ProcessFilterCloudModel {
|
|||||||
|
|
||||||
this.processDefinitionNames = obj.processDefinitionNames || null;
|
this.processDefinitionNames = obj.processDefinitionNames || null;
|
||||||
this.processNames = obj.processNames || null;
|
this.processNames = obj.processNames || null;
|
||||||
|
this.processInstanceIds = obj.processInstanceIds || null;
|
||||||
|
this.parentIds = obj.parentIds || 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;
|
||||||
|
@@ -223,6 +223,20 @@ export class ProcessListCloudComponent
|
|||||||
@Input()
|
@Input()
|
||||||
processNames: string[] = [];
|
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.
|
* 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.
|
* 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(),
|
sorting: this.getProcessListRequestSorting(),
|
||||||
processName: this.processNames,
|
processName: this.processNames,
|
||||||
|
processInstanceId: this.processInstanceIds,
|
||||||
|
parentId: this.parentIds,
|
||||||
processDefinitionName: this.processDefinitionNames,
|
processDefinitionName: this.processDefinitionNames,
|
||||||
initiator: this.initiators,
|
initiator: this.initiators,
|
||||||
appVersion: this.appVersions,
|
appVersion: this.appVersions,
|
||||||
|
@@ -88,6 +88,8 @@ export class ProcessListRequestModel {
|
|||||||
sorting?: ProcessListRequestSortingModel;
|
sorting?: ProcessListRequestSortingModel;
|
||||||
|
|
||||||
processName?: string[];
|
processName?: string[];
|
||||||
|
processInstanceId?: string[];
|
||||||
|
parentId?: string[];
|
||||||
processDefinitionName?: string[];
|
processDefinitionName?: string[];
|
||||||
initiator?: string[];
|
initiator?: string[];
|
||||||
appVersion?: string[];
|
appVersion?: string[];
|
||||||
@@ -114,6 +116,8 @@ export class ProcessListRequestModel {
|
|||||||
this.sorting = obj.sorting;
|
this.sorting = obj.sorting;
|
||||||
|
|
||||||
this.processName = obj.processName;
|
this.processName = obj.processName;
|
||||||
|
this.processInstanceId = obj.processInstanceId;
|
||||||
|
this.parentId = obj.parentId;
|
||||||
this.processDefinitionName = obj.processDefinitionName;
|
this.processDefinitionName = obj.processDefinitionName;
|
||||||
this.initiator = obj.initiator;
|
this.initiator = obj.initiator;
|
||||||
this.appVersion = obj.appVersion;
|
this.appVersion = obj.appVersion;
|
||||||
@@ -144,6 +148,8 @@ export class ProcessFilterCloudAdapter extends ProcessListRequestModel {
|
|||||||
|
|
||||||
processDefinitionName: filter.processDefinitionNames,
|
processDefinitionName: filter.processDefinitionNames,
|
||||||
processName: filter.processNames,
|
processName: filter.processNames,
|
||||||
|
processInstanceId: filter.processInstanceIds,
|
||||||
|
parentId: filter.parentIds,
|
||||||
initiator: filter.initiators,
|
initiator: filter.initiators,
|
||||||
appVersion: filter.appVersions,
|
appVersion: filter.appVersions,
|
||||||
status: filter.statuses,
|
status: filter.statuses,
|
||||||
|
@@ -103,6 +103,8 @@ export class ProcessListCloudService extends BaseCloudService {
|
|||||||
protected buildQueryData(requestNode: ProcessListRequestModel) {
|
protected buildQueryData(requestNode: ProcessListRequestModel) {
|
||||||
const queryData: any = {
|
const queryData: any = {
|
||||||
name: requestNode.processName,
|
name: requestNode.processName,
|
||||||
|
processInstanceId: requestNode.processInstanceId,
|
||||||
|
parentId: requestNode.parentId,
|
||||||
processDefinitionName: requestNode.processDefinitionName,
|
processDefinitionName: requestNode.processDefinitionName,
|
||||||
initiator: requestNode.initiator,
|
initiator: requestNode.initiator,
|
||||||
appVersion: requestNode.appVersion,
|
appVersion: requestNode.appVersion,
|
||||||
|
Reference in New Issue
Block a user