Manage Process Filters, which are pre-configured Process Instance queries.
addFilter(newFilter: ProcessFilterCloudModel
): Observable
<
ProcessFilterCloudModel
[]>
Adds a new process instance filter
ProcessFilterCloudModel
- Observable
<
ProcessFilterCloudModel
[]>
- Observable of process instance filters with newly added filterdeleteFilter(deletedFilter: ProcessFilterCloudModel
): Observable
<
ProcessFilterCloudModel
[]>
Delete process instance filter
ProcessFilterCloudModel
- Observable
<
ProcessFilterCloudModel
[]>
- Observable of process instance filters without deleted filtergetFilterById(appName: string
, id: string
): Observable
<
ProcessFilterCloudModel
>
Get process instance filter for given filter id
string
- Name of the target appstring
- Id of the target process instance filterObservable
<
ProcessFilterCloudModel
>
- Observable of process instance filter detailsgetProcessFilters(appName: string
): Observable
<
ProcessFilterCloudModel
[]>
Gets all process instance filters for a process app.
string
- Name of the target appObservable
<
ProcessFilterCloudModel
[]>
- Observable of process filters detailsisDefaultFilter(filterName: string
): boolean
Checks if given filter is a default filter
string
- Name of the target process filterboolean
- Boolean value for whether the filter is a default filterreadQueryParams(obj: any
): ProcessFilterCloudModel
any
- ProcessFilterCloudModel
- resetProcessFilterToDefaults(appName: string
, filter: ProcessFilterCloudModel
): Observable
<
ProcessFilterCloudModel
[]>
Reset the process filters to the default configuration if it exists and stores it. If there is no default configuration for the process cloud filter with the provided filter name, then it changes nothing but stores the current values of the filter
string
- Name of the target appProcessFilterCloudModel
- The process filter to be restored to defaultsObservable
<
ProcessFilterCloudModel
[]>
- Observable of process filters detailsupdateFilter(updatedFilter: ProcessFilterCloudModel
): Observable
<
ProcessFilterCloudModel
[]>
Update process instance filter
ProcessFilterCloudModel
- Observable
<
ProcessFilterCloudModel
[]>
- Observable of process instance filters with updated filterwriteQueryParams(value: any
, filterProperties: string[]
, appName?: string
, id?: string
): any
any
- string[]
- string
- (Optional)string
- (Optional)any
-Token: PROCESS_FILTERS_SERVICE_TOKEN
A DI token that maps to the dependency to be injected.
Process Filter Cloud Service is by default injected with the Local Preference Cloud Service
import { NgModule } from '@angular/core'; import { LocalPreferenceCloudService, PROCESS_FILTERS_SERVICE_TOKEN } from '@alfresco/adf-process-services-cloud'; @NgModule({ imports: [ ...Import Required Modules ], providers: [ { provide: PROCESS_FILTERS_SERVICE_TOKEN, useClass: LocalPreferenceCloudService } ] }) class ExampleModule {}
If you would like to inject the User Preference Cloud Service, you can inject the service like below shown
import { NgModule } from '@angular/core'; import { UserPreferenceCloudService, PROCESS_FILTERS_SERVICE_TOKEN } from '@alfresco/adf-process-services-cloud'; @NgModule({ imports: [ ...Import Required Modules ], providers: [ { provide: PROCESS_FILTERS_SERVICE_TOKEN, useClass: UserPreferenceCloudService } ] }) class ExampleModule {}
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.