Manages task filters.
addFilter(newFilter: TaskFilterCloudModel): Observable<TaskFilterCloudModel[]>
Adds a new task filter.
TaskFilterCloudModel - Observable<TaskFilterCloudModel[]> - Observable of task instance filters with newly added filterdeleteFilter(deletedFilter: TaskFilterCloudModel): Observable<TaskFilterCloudModel[]>
Deletes a task filter
TaskFilterCloudModel - Observable<TaskFilterCloudModel[]> - Observable of task instance filters without deleted filtergetBasePath(appName: string): string
string - string - getTaskFilterById(appName: string, id: string): Observable<TaskFilterCloudModel>
Gets a task filter.
string - Name of the target appstring - ID of the taskObservable<TaskFilterCloudModel> - Details of the task filtergetTaskFilterCounter(taskFilter: TaskFilterCloudModel): Observable<any>
Finds a task using an object with optional query properties.
TaskFilterCloudModel - Observable<any> - Task informationgetTaskListFilters(appName?: string): Observable<TaskFilterCloudModel[]>
Gets all task filters for a task app.
string - (Optional) Name of the target appObservable<TaskFilterCloudModel[]> - Observable of task filter detailsgetTaskNotificationSubscription(appName: string): Observable<TaskCloudEngineEvent[]>
string - Observable<TaskCloudEngineEvent[]> - isDefaultFilter(filterName: string): boolean
Checks if given filter is a default filter
string - Name of the target task filterboolean - Boolean value for whether the filter is a default filterupdateFilter(updatedFilter: TaskFilterCloudModel): Observable<TaskFilterCloudModel[]>
Updates a task filter.
TaskFilterCloudModel - Observable<TaskFilterCloudModel[]> - Observable of task instance filters with updated filterThe methods of this service generally return an instance of TaskFilterCloudModel or
an array of instances. For example, you could use getTaskListFilters as follows:
this.taskFilterService.getTaskListFilters(appName).subscribe( (filters: TaskFilterCloudModel[]) => {
console.log('Task filters: ', filters);
}, error => {
console.log('Error: ', error);
});
These filters can now be used to get matching task instances for the process app.
Token: TASK_FILTERS_SERVICE_TOKEN
A DI token that maps to the dependency to be injected.
Task Filter Cloud Service is by default injected with the Local Preference Cloud Service
import { NgModule } from '@angular/core'; import { LocalPreferenceCloudService, TASK_FILTERS_SERVICE_TOKEN } from '@alfresco/adf-process-services-cloud'; @NgModule({ imports: [ ...Import Required Modules ], providers: [ { provide: TASK_FILTERS_SERVICE_TOKEN, useClass: LocalPreferenceCloudService } ] }) class ExampleModule {}
If you would like to inject the UserPreferenceCloudService, you can inject the service like below shown
import { NgModule } from '@angular/core'; import { UserPreferenceCloudService, TASK_FILTERS_SERVICE_TOKEN } from '@alfresco/adf-process-services-cloud'; @NgModule({ imports: [ ...Import Required Modules ], providers: [ { provide: TASK_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.