--- Added: v2.0.0 Status: Active Last reviewed: 2018-05-24 --- # Process Instance List Renders a list containing all the process instances matched by the parameters specified. ## Basic Usage **app.component.html** ```html ``` ## Class members ### Properties | Name | Type | Default value | Description | | -- | -- | -- | -- | | appId | `number` | | The id of the app. | | data | [`DataTableAdapter`](../../lib/core/datatable/data/datatable-adapter.ts) | | Data source to define the datatable. | | multiselect | `boolean` | false | Toggles multiple row selection, which renders checkboxes at the beginning of each row | | name | `string` | | The name of the list. | | page | `number` | 0 | The page number of the processes to fetch. | | presetColumn | `string` | | Name of a custom schema to fetch from `app.config.json`. | | processDefinitionKey | `string` | | The processDefinitionKey of the process. | | selectFirstRow | `boolean` | true | Toggles default selection of the first row | | selectionMode | `string` | "single" | Row selection mode. Can be none, `single` or `multiple`. For `multiple` mode, you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for multiple rows. | | size | `number` | [`PaginationComponent`](../core/pagination.component.md).DEFAULT_PAGINATION.maxItems | The number of processes to fetch in each page. | | sort | `string` | | Defines the sort ordering of the list. Possible values are `created-desc`, `created-asc`, `ended-desc`, `ended-asc`. | | state | `string` | | Defines the state of the processes. Possible values are `running`, `completed` and `all` | ### Events | Name | Type | Description | | -- | -- | -- | | error | `EventEmitter` | Emitted when an error occurs while loading the list of process instances from the server. | | rowClick | `EventEmitter` | Emitted when a row in the process list is clicked. | | success | [`EventEmitter`](../../lib/process-services/process-list/models/process-list.model.ts) | Emitted when the list of process instances has been loaded successfully from the server. | ## Details You can define a custom schema for the list in the `app.config.json` file and access it with the `presetColumn` property as shown below: ```json "adf-process-list": { "presets": { "customSchema": [ { "key": "name", "type": "text", "title": "name", "sortable": true }], "default": [ { "key": "name", "type": "text", "title": "name", "sortable": true }], } } ``` ```html ``` You can also define the schema in the HTML using the [Data column component](../core/data-column.component.md). You can combine this with schema information defined in `app.config.json` as in the example below: ```json "adf-process-list": { "presets": { "customSchema": [ { "key": "id", "type": "text", "title": "Id", "sortable": true }], "default": [ { "key": "name", "type": "text", "title": "name", "sortable": true }], } } ``` ```html
{{getFullName(entry.row.obj.assignee)}}
``` ### Pagination strategy The Process Instance List also supports pagination: ```html ``` ## See also - [Data column component](../core/data-column.component.md) - [Data Table Adapter interface](../core/datatable-adapter.interface.md) - [Pagination component](../core/pagination.component.md)