Welcome to the Alfresco Builder Network

Collection of criteria used to filter process instances, which may be customized by users.

Contents

Basic Usage

<adf-process-instance-filters
    appId="1001">
</adf-process-instance-filters>

Class members

Properties

NameTypeDefault valueDescription
appIdnumberDisplay filters available to the current user for the application with the specified ID.
appNamestringDisplay filters available to the current user for the application with the specified name.
filterParamFilterProcessRepresentationModelThe parameters to filter the task filter. If there is no match then the default one (ie, the first filter in the list) is selected.
showIconbooleantrueToggle to show or hide the filter's icon.

Events

NameTypeDescription
errorEventEmitter<any>Emitted when an error occurs.
filterClickEventEmitter<UserProcessInstanceFilterRepresentation>Emitted when the user selects a filter from the list.
filterSelectedEventEmitter<ProcessInstanceFilterRepresentation>Emitted when a process filter is selected.
successEventEmitter<ProcessInstanceFilterRepresentation[]>Emitted when the list of filters has been successfully loaded from the server.

Details

This component displays a list of available filters and allows the user to select any given filter as the active filter.

The most common usage is in driving a process instance list to allow the user to choose which process instances are displayed in the list.

If both appId and appName are specified then appName will take precedence and appId will be ignored.

How filter the activiti process filters

<adf-process-instance-filters 
   [filterParam]="{index: 0}">
</adf-process-instance-filters>

You can use inside the filterParam one of the properties defined by FilterParamsModel (see below).

FilterParamsModel

{
    "id": "number",
    "name": "string",
    "index": "number"
}
NameTypeDescription
idstringThe id of the task filter.
namestringThe name of the task filter, lowercase is checked.
indexnumberZero-based position of the filter in the array.

See also

Interested in trying Alfresco?

Try Now