alfresco-ng2-components/docs/process-services/process-filter.service.md
Andy Stark e03f3a1a6b [ADF-3323] Fixed broken links in doc files (#3662)
* [ADF-3323] Fixed URL path to Typescript source files

* [ADF-3323] Fixed and checked broken links caused by previous bug
2018-08-14 15:42:45 +01:00

5.6 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.0.0 Active 2018-03-21

Process Filter Service

Manage Process Filters, which are pre-configured Process Instance queries.

Class members

Methods

Details

The methods of this service generally return an instance of FilterProcessRepresentationModel or an array of instances. For example, you could use getProcessFilters as follows:

const processAppId = 2;
this.processFilterService.getProcessFilters(processAppId)
  .subscribe( (filters: FilterProcessRepresentationModel[]) => {
  console.log('filters: ', filters);
}, error => {
  console.log('Error: ', error);
});

The response is an array of FilterProcessRepresentationModel objects:

    filters:  
        0: {id: 15, appId: 2, name: "Running", recent: true, icon: "glyphicon-random", …}
        1: {id: 14, appId: 2, name: "Completed", recent: false, icon: "glyphicon-ok-sign", …}
        2: {id: 13, appId: 2, name: "All", recent: false, icon: "glyphicon-th", …}
        3: {id: 3003, appId: 2, name: "Running", recent: false, icon: "glyphicon-random", …}
        4: {id: 3004, appId: 2, name: "Completed", recent: false, icon: "glyphicon-ok-sign", …}
        5: {id: 3005, appId: 2, name: "All", recent: false, icon: "glyphicon-th", …}

You can use the returned filters to get matching process instances for the process app with ID 2, such as 'Running', 'Completed', 'All', etc.

See also