* [ADF-4128] ProcessCloud - add complete task directive * [ADF-4128] ProcessCloud - fix completion functionality and add documentation * [ADF-4128] ProcessCloud - PR changes * [ADF-4128] ProcessCloud - lint * [ADF-4148] ProcessServicesCloud - change layout * [ADF-4128] fix PR changes * [ADF-4128] - refractor complete task directive * [ADF-4128] - fix lint * [ADF-4128] - PR changes * [ADF-4128] - replace isCompleted method from service with model method * [ADF-4128] fix unit tests * [ADF-4128] - change travis yml * [ADF-4128] - fix travis.yml * [ADF-4128] - travis lint
2.8 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Task Cloud Service | v3.1.0 | Experimental | 2019-02-28 |
Task Cloud Service
Manage task cloud.
Class members
Methods
-
completeTask(appName:
string
, taskId:string
)
Complete a task- appName:
string
- Name of the app - taskId:
string
- ID of the task to complete
- appName:
-
canCompleteTask(taskDetails:
TaskDetailsCloudModel
)
Validate if a task can be completed.- taskDetails:
TaskDetailsCloudModel
- Task details object
- taskDetails:
-
claimTask(appName:
string
, taskId:string
, assignee:string
):any
Claims a task for an assignee.- appName:
string
- Name of the app - taskId:
string
- ID of the task to claim - assignee:
string
- User to assign the task to - Returns
any
- Details of the claimed task
- appName:
-
getTaskById(appName:
string
, taskId:string
):Observable
<
TaskDetailsCloudModel
>
Gets details of a task.- appName:
string
- Name of the app - taskId:
string
- ID of the task whose details you want - Returns
Observable
<
TaskDetailsCloudModel
>
- Task details
- appName:
-
unclaimTask(appName:
string
, taskId:string
):any
Un-claims a task.- appName:
string
- Name of the app - taskId:
string
- ID of the task to unclaim - Returns
any
- Details of the task that was unclaimed
- appName:
-
updateTask(appName:
string
, taskId:string
, updatePayload:any
):any
Updates the details (name, description, due date) for a task.- appName:
string
- Name of the app - taskId:
string
- ID of the task to update - updatePayload:
any
- Data to update the task - Returns
any
- Updated task details
- appName:
Details
The methods work in much the same way as the equivalent methods in the Tasklist service but they use the cloud variants of the classes for return values. See the Tasklist service page for usage examples.