Title | Added | Status | Last reviewed |
---|---|---|---|
Process Filter Cloud Service |
v3.0.0 |
Experimental |
2019-01-09 |
Manage Process Filters, which are pre-configured Process Instance queries.
-
addFilter(newFilter:
ProcessFilterCloudModel
):Observable
<
ProcessFilterCloudModel
[]>
Adds a new process instance filter- newFilter:
ProcessFilterCloudModel
- - Returns
Observable
<
ProcessFilterCloudModel
[]>
- Observable of process instance filters with newly added filter
- newFilter:
-
deleteFilter(deletedFilter:
ProcessFilterCloudModel
):Observable
<
ProcessFilterCloudModel
[]>
Delete process instance filter- deletedFilter:
ProcessFilterCloudModel
- - Returns
Observable
<
ProcessFilterCloudModel
[]>
- Observable of process instance filters without deleted filter
- deletedFilter:
-
getFilterById(appName:
string
, id:string
):Observable
<
ProcessFilterCloudModel
>
Get process instance filter for given filter id- appName:
string
- Name of the target app - id:
string
- Id of the target process instance filter - Returns
Observable
<
ProcessFilterCloudModel
>
- Observable of process instance filter details
- appName:
-
getProcessFilters(appName:
string
):Observable
<
ProcessFilterCloudModel
[]>
Gets all process instance filters for a process app.- appName:
string
- Name of the target app - Returns
Observable
<
ProcessFilterCloudModel
[]>
- Observable of process filters details
- appName:
-
isDefaultFilter(filterName:
string
):boolean
Checks if given filter is a default filter- filterName:
string
- Name of the target process filter - Returns
boolean
- Boolean value for whether the filter is a default filter
- filterName:
-
readQueryParams(obj:
Object
):ProcessFilterCloudModel
- obj:
Object
- - Returns
ProcessFilterCloudModel
-
- obj:
-
updateFilter(updatedFilter:
ProcessFilterCloudModel
):Observable
<
ProcessFilterCloudModel
[]>
Update process instance filter- updatedFilter:
ProcessFilterCloudModel
- - Returns
Observable
<
ProcessFilterCloudModel
[]>
- Observable of process instance filters with updated filter
- updatedFilter:
-
writeQueryParams(value:
Object
, filterProperties:string[]
, appName?:string
, id?:string
):Object
- value:
Object
- - filterProperties:
string[]
- - appName:
string
- (Optional) (Optional) - id:
string
- (Optional) (Optional) - Returns
Object
-
- value:
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 }
]
})
export 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 }
]
})
export class ExampleModule {}