mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* [ADF-4127] ProcessServicesCloud - add claim/unclaim directive (#4464) * [ADF-4127] ProessServicesCloud - claim task directive * [ADF-4127] - fix doc * [ADF-4127] - revert docs changes * [ADF-4127] - revert doc changes * [ADF-4127] - fix doc and reset sourceLinker.js * [ADF-4127] - refractor task-cloud.service. add validation for claim/unclaim and fix unit tests * [ADF-4127] - fix docs files * [ADF-4127[ - add aditional complete task validation * [ADF-4127] - PR changes * [ADF-4127] - complete docs file * [ADF-4127] - more PR changes * [ADF-4127] - change Unclaim task name and wait for task to be claimed and unclaimed before emit the success event * [ADF-4127] - fix unit tests * [ADF-4095] ProcessCloud - change api response format * Revert "[ADF-4095] ProcessCloud - change api response format" This reverts commit 8ddd3477ad3de047911f0538941c65d2bf7e60e2. * [ADF-4096] DatatableComponent - revert changes and remove filename attribute * [ADF-4096] - change filename attribute and fix unit tests * [ADF-4096] - fix core e2e test
26 lines
818 B
Markdown
26 lines
818 B
Markdown
---
|
|
Title: Claim Task Directive
|
|
Added: v3.1.0
|
|
Status: Experimental
|
|
Last reviewed: 2019-03-05
|
|
---
|
|
|
|
# [Claim task directive](../../lib/process-services-cloud/src/lib/task/directives/claim-task.directive.ts "Defined in claim-task.directive.ts")
|
|
|
|
Claim a task
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<button adf-claim-task [appName]="appName" [taskId]="taskId" (success)="onTaskClaimed()">Complete</button>
|
|
```
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| taskId | `string` | empty |(Required) The id of the task. |
|
|
| appName | `string` | empty | (Required) The name of the application. |
|
|
| success | `EventEmitter<any>` | empty | Emitted when the task is completed. |
|
|
| error | `EventEmitter<any>` | empty | Emitted when the task cannot be completed. | |