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:
Robert Duda
2024-12-06 11:55:59 +01:00
committed by GitHub
parent 52e045800e
commit bdba328dbc
4 changed files with 28 additions and 0 deletions

View File

@@ -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;

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,