From d882a73c51ae502399585f5d5229cb0f417fdbee Mon Sep 17 00:00:00 2001 From: Robert Duda Date: Tue, 17 Dec 2024 13:21:23 +0100 Subject: [PATCH] AAE-29345 Add date filtering to service tasks page --- .../src/lib/task/task-filters/models/filter-cloud.model.ts | 6 ++++++ .../components/service-task-list-cloud.component.ts | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts b/lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts index 817e0207f5e..c32d4abf0ff 100644 --- a/lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts +++ b/lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts @@ -229,6 +229,9 @@ export interface ServiceTaskFilterCloudModel { activityName?: string; activityType?: string; completedDate?: Date; + completedDateType?: DateCloudFilterType; + completedFrom?: string; + completedTo?: string; elementId?: string; executionId?: string; processDefinitionId?: string; @@ -240,6 +243,9 @@ export interface ServiceTaskFilterCloudModel { serviceName?: string; serviceVersion?: string; startedDate?: Date; + startedDateType?: DateCloudFilterType; + startedFrom?: string; + startedTo?: string; } export interface FilterParamsModel { diff --git a/lib/process-services-cloud/src/lib/task/task-list/components/service-task-list-cloud.component.ts b/lib/process-services-cloud/src/lib/task/task-list/components/service-task-list-cloud.component.ts index 1317a74d3b0..f16d759f0f5 100644 --- a/lib/process-services-cloud/src/lib/task/task-list/components/service-task-list-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/task/task-list/components/service-task-list-cloud.component.ts @@ -84,11 +84,13 @@ export class ServiceTaskListCloudComponent extends BaseTaskListCloudComponent { maxItems: this.size, skipCount: this.skipCount, sorting: this.sorting, - id: this.queryParams?.serviceTaskId, + serviceTaskId: this.queryParams?.serviceTaskId, environmentId: this.queryParams?.environmentId, activityName: this.queryParams?.activityName, activityType: this.queryParams?.activityType, completedDate: this.queryParams?.completedDate, + completedFrom: this.queryParams?.completedFrom, + completedTo: this.queryParams?.completedTo, elementId: this.queryParams?.elementId, executionId: this.queryParams?.executionId, processDefinitionId: this.queryParams?.processDefinitionId, @@ -99,6 +101,8 @@ export class ServiceTaskListCloudComponent extends BaseTaskListCloudComponent { serviceName: this.queryParams?.serviceName, serviceVersion: this.queryParams?.serviceVersion, startedDate: this.queryParams?.startedDate, + startedFrom: this.queryParams?.startedFrom, + startedTo: this.queryParams?.startedTo, status: this.queryParams?.status } as ServiceTaskQueryCloudRequestModel; return requestNode;