Manage Process Filters, which are pre-configured Process Instance queries.
FilterProcessRepresentationModel): Observable<FilterProcessRepresentationModel>FilterProcessRepresentationModel - The filter to addObservable<FilterProcessRepresentationModel> - The filter just addednumber): Promise<ResultListDataRepresentationUserProcessInstanceFilterRepresentation>getUserProcessInstanceFilters from the Alfresco JS API.number - (Optional) ID of the target appPromise<ResultListDataRepresentationUserProcessInstanceFilterRepresentation> - List of filter detailsnumber): Observable<FilterProcessRepresentationModel[]>number - ID of the target appObservable<FilterProcessRepresentationModel[]> - Default filters just creatednumber, appId?: number): Observable<FilterProcessRepresentationModel>number - ID of the filternumber - (Optional) ID of the target appObservable<FilterProcessRepresentationModel> - Details of the filterstring, appId?: number): Observable<FilterProcessRepresentationModel>string - Name of the filternumber - (Optional) ID of the target appObservable<FilterProcessRepresentationModel> - Details of the filternumber): Observable<FilterProcessRepresentationModel[]>number - ID of the target appObservable<FilterProcessRepresentationModel[]> - Array of filter detailsnumber, index?: number): FilterProcessRepresentationModelnumber - ID of the target appnumber - (Optional) of the filter (optional)FilterProcessRepresentationModel - Filter just createdThe 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.
© 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.