Skip to content

Latest commit

 

History

History
102 lines (84 loc) · 7.92 KB

process-filter-cloud.service.md

File metadata and controls

102 lines (84 loc) · 7.92 KB
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.

Class members

Methods

Inject Preference service

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 {}

See also