diff --git a/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.spec.ts b/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.spec.ts index cb78d97664..c873caebcd 100644 --- a/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.spec.ts @@ -65,14 +65,4 @@ describe('ProcessFilterCloudModel', () => { expect(model.startFrom).toEqual(startOfDay(date).toISOString()); expect(model.startTo).toEqual(endOfDay(date).toISOString()); }); - - it('should assign value to the excludeByProcessCategoryName if provided', () => { - const model = new ProcessFilterCloudModel({ excludeByProcessCategoryName: 'test' }); - expect(model.excludeByProcessCategoryName).toBe('test'); - }); - - it('should assign null to the excludeByProcessCategoryName if value not provided', () => { - const model = new ProcessFilterCloudModel({}); - expect(model.excludeByProcessCategoryName).toBeNull(); - }); }); diff --git a/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.ts b/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.ts index ad08d8683a..ab64bcbb2a 100644 --- a/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.ts +++ b/lib/process-services-cloud/src/lib/process/process-filters/models/process-filter-cloud.model.ts @@ -58,7 +58,6 @@ export class ProcessFilterCloudModel { initiators: string[] | null; appVersions: string[] | null; statuses: string[] | null; - excludeByProcessCategoryName: string | null; processVariableFilters?: ProcessVariableFilterModel[]; @@ -111,7 +110,6 @@ export class ProcessFilterCloudModel { this.completedFrom = obj._completedFrom || null; this.completedTo = obj._completedTo || null; this.completedDate = obj.completedDate || null; - this.excludeByProcessCategoryName = obj.excludeByProcessCategoryName || null; this._suspendedFrom = obj._suspendedFrom || null; this._suspendedTo = obj._suspendedTo || null; diff --git a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts index 35b8a8ebec..c55b4e8157 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts @@ -846,28 +846,6 @@ describe('ProcessListCloudComponent', () => { expect(fetchProcessListSpy).toHaveBeenCalled(); }); - it('should reload process list when excludeByProcessCategoryName changes', () => { - const fetchProcessListSpy = spyOn(processListCloudService, 'fetchProcessList').and.returnValue(of(fakeProcessCloudList)); - - fixture.componentRef.setInput('excludeByProcessCategoryName', 'mock-category'); - fixture.detectChanges(); - - fixture.componentRef.setInput('excludeByProcessCategoryName', 'mock-category-2'); - fixture.detectChanges(); - - expect(fetchProcessListSpy).toHaveBeenCalledTimes(2); - expect(fetchProcessListSpy).toHaveBeenCalledWith( - jasmine.objectContaining({ - excludeByProcessCategoryName: 'mock-category' - }) - ); - expect(fetchProcessListSpy).toHaveBeenCalledWith( - jasmine.objectContaining({ - excludeByProcessCategoryName: 'mock-category-2' - }) - ); - }); - it('should reload process list when sorting on a column changes', () => { const fetchProcessListSpy = spyOn(processListCloudService, 'fetchProcessList').and.returnValue(of(fakeProcessCloudList)); component.onSortingChanged( diff --git a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts index ae630c5f78..f941eafa49 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts @@ -290,8 +290,6 @@ export class ProcessListCloudComponent @Input() processVariables: ProcessVariableFilterModel[]; - @Input() excludeByProcessCategoryName: string = ''; - /** Emitted when a row in the process list is clicked. */ @Output() rowClick: EventEmitter = new EventEmitter(); @@ -609,8 +607,7 @@ export class ProcessListCloudComponent suspendedFrom: this.suspendedFrom, suspendedTo: this.suspendedTo, processVariableKeys: this.getVariableDefinitionsRequestModel(), - processVariableFilters: this.processVariables, - excludeByProcessCategoryName: this.excludeByProcessCategoryName + processVariableFilters: this.processVariables }; return new ProcessListRequestModel(requestNode); diff --git a/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-query-request.model.ts b/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-query-request.model.ts index 80dc52b418..8f506dc050 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-query-request.model.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-query-request.model.ts @@ -102,7 +102,6 @@ export class ProcessListRequestModel { completedTo?: string; suspendedFrom?: string; suspendedTo?: string; - excludeByProcessCategoryName?: string; processVariableFilters?: ProcessVariableFilterModel[]; processVariableKeys?: string[]; @@ -133,7 +132,6 @@ export class ProcessListRequestModel { this.suspendedTo = obj.suspendedTo; this.processVariableKeys = obj.processVariableKeys; this.processVariableFilters = obj.processVariableFilters; - this.excludeByProcessCategoryName = obj.excludeByProcessCategoryName; } } diff --git a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts index e669c12d7a..599ad3a4ae 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts @@ -119,8 +119,7 @@ describe('ProcessListCloudService', () => { const processRequest = { appName: 'fakeName', pagination: { skipCount: 0, maxItems: 20 }, - parentId: ['fakeParentId'], - excludeByProcessCategoryName: 'fakeCategory' + parentId: ['fakeParentId'] } as ProcessListRequestModel; requestSpy.and.callFake(returnCallQueryParameters); @@ -133,14 +132,13 @@ describe('ProcessListCloudService', () => { const processRequest = { appName: 'fakeName', pagination: { skipCount: 0, maxItems: 20 }, - parentId: ['fakeParentId'], - excludeByProcessCategoryName: 'fakeCategory' + parentId: ['fakeParentId'] } as ProcessListRequestModel; requestSpy.and.callFake(returnCallBody); const requestBodyParams = await firstValueFrom(service.fetchProcessList(processRequest)); - expect(requestBodyParams).toEqual({ excludeByProcessCategoryName: 'fakeCategory', parentId: ['fakeParentId'] }); + expect(requestBodyParams).toEqual({ parentId: ['fakeParentId'] }); }); it('should concat the app name to the request url', async () => { diff --git a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts index 1c552bcd8a..318ca76cd5 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts @@ -118,8 +118,7 @@ export class ProcessListCloudService extends BaseCloudService { suspendedFrom: requestNode.suspendedFrom, suspendedTo: requestNode.suspendedTo, processVariableKeys: requestNode.processVariableKeys, - processVariableFilters: requestNode.processVariableFilters, - excludeByProcessCategoryName: requestNode.excludeByProcessCategoryName + processVariableFilters: requestNode.processVariableFilters }; if (requestNode.sorting) { diff --git a/lib/process-services-cloud/src/lib/process/start-process/services/start-process-cloud.service.ts b/lib/process-services-cloud/src/lib/process/start-process/services/start-process-cloud.service.ts index bc8142fcee..820c40d070 100755 --- a/lib/process-services-cloud/src/lib/process/start-process/services/start-process-cloud.service.ts +++ b/lib/process-services-cloud/src/lib/process/start-process/services/start-process-cloud.service.ts @@ -26,7 +26,6 @@ import { TaskVariableCloud } from '../../../form/models/task-variable-cloud.mode export interface QueryParams { include: string; - excludedCategory?: string; } @Injectable({