[AAE-3469] New Service Task List in Task List Cloud Component (#6131)

* [AAE-3469] New Service Task Lisst Component

* Fix unit tests

* Add documentation

* Add public methods to Data Table Schema
This commit is contained in:
davidcanonieto
2020-09-22 21:41:53 +02:00
committed by GitHub
parent 7bead426ce
commit 472e112b71
24 changed files with 869 additions and 137 deletions

View File

@@ -52,13 +52,14 @@ Edits task filter details.
| showTaskFilterName | `boolean` | true | Toggles display of task filter name |
| showTitle | `boolean` | true | Toggles the title. |
| sortProperties | `string[]` | | List of sort properties to display. |
| TaskType | `string` | userTask | The type of tasks to be listed. `userTask | serviceTask` |
### Events
| Name | Type | Description |
| ---- | ---- | ----------- |
| action | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`TaskFilterAction`](../../../lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts)`>` | Emitted when a filter action occurs (i.e Save, Save As, Delete). |
| filterChange | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`TaskFilterCloudModel`](../../../lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts)`>` | Emitted when a task filter property changes. |
| filterChange | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`TaskFilterCloudModel`](../../../lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts)` | `[`ServiceTaskFilterCloudModel`](../../../lib/process-services-cloud/src/lib/task/task-filters/models/filter-cloud.model.ts)`>` | Emitted when a task filter property changes. |
## Details
@@ -211,6 +212,18 @@ Users can save a filter if they make any changes to it in an application using t
- An Activiti Enterprise version uses the preference service to store saved filters. This allows for user's custom filters to be available between sessions and between devices.
### Filtering Service Tasks
Use the `taskType` to choose which task type to edit:
```html
<adf-cloud-edit-task-filter
[id]="taskFilterId"
[appName]="appName"
[taskType]="'serviceTask'">
</adf-cloud-edit-task-filter>
```
## See also
- [Edit process filter cloud component](edit-process-filter-cloud.component.md)

View File

@@ -76,6 +76,8 @@ when the task list is empty:
| standalone | `boolean` | false | Filter the tasks. Display only the tasks that belong to a process in case is false or tasks that doesn't belong to a process in case of true. |
| status | `string` | "" | Filter the tasks. Display only tasks with status equal to the supplied value. |
| stickyHeader | `boolean` | false | Toggles the sticky header mode. |
| TaskType | `string` | userTask | The type of tasks to be listed. `userTask | serviceTask` |
| queryFilter | `Object` | {} | An object containing a key/value for each of the properties that a service task will be filtered by. |
### Events
@@ -334,6 +336,31 @@ When an action is selected in the dropdown menu, the [`TaskListCloudComponent`](
Use this to handle the response, inspect the action payload (and all custom properties defined
earlier), and perform the corresponding actions.
#### Listing service tasks
Emitted when the user executes a row action.
This usually accompanies a `showRowActionsMenu` event.
The [`TaskListCloudComponent`](../../process-services-cloud/components/task-list-cloud.component.md) itself does not execute actions but provides support for external
integration. If actions are provided using the `showRowActionsMenu` event
then `executeRowAction` will be automatically executed when the user clicks a
corresponding menu item.
```ts
const queryParams = {
activityName: "serviceTask1",
maxItems: 10,
skipCount: 0
}
```
```html
<adf-cloud-task-list
[taskType]="'serviceTask'"
[queryParams]="queryParams">
</adf-cloud-task-list>
```
## See also
- [Data column component](../../core/components/data-column.component.md)