* fix after rebase * new release strategy for ng next Signed-off-by: eromano <eugenioromano16@gmail.com> * peer dep Signed-off-by: eromano <eugenioromano16@gmail.com> * Angular 14 fix unit test and storybook Signed-off-by: eromano <eugenioromano16@gmail.com> fix after rebase Signed-off-by: eromano <eugenioromano16@gmail.com> update pkg.json Signed-off-by: eromano <eugenioromano16@gmail.com> missing dep Signed-off-by: eromano <eugenioromano16@gmail.com> Fix mistake and missing code Dream....build only affected libs Add utility run commands * Use nx command to run affected tests * Fix nx test core fix content tests Run unit with watch false core test fixes reduce test warnings Fix process cloud unit Fix adf unit test Fix lint process cloud Disable lint next line Use right core path Fix insights unit fix linting insights Fix process-services unit fix the extensions test report fix test warnings Fix content unit Fix bunch of content unit * Produce an adf alpha of 14 * hopefully fixing the content * Push back the npm publish * Remove flaky unit * Fix linting * Make the branch as root * Get rid of angualar13 * Remove the travis depth * Fixing version for npm * Enabling cache for unit and build * Fix scss for core and paths Copy i18 and asset by using ng-packager Export the theming alias and fix path Use ng-package to copy assets process-services-cloud Use ng-package to copy assets process-services Use ng-package to copy assets content-services Use ng-package to copy assets insights * feat: fix api secondary entry point * fix storybook rebase * Move dist under dist/libs from lib/dist * Fix the webstyle * Use only necessary nrwl deps and improve lint * Fix unit for libs * Convert lint.sh to targets - improve performance * Use latest of angular * Align alfresco-js-api Signed-off-by: eromano <eugenioromano16@gmail.com> Co-authored-by: eromano <eugenioromano16@gmail.com> Co-authored-by: Mikolaj Serwicki <mikolaj.serwicki@hyland.com> Co-authored-by: Tomasz <tomasz.gnyp@hyland.com>
9.7 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Task Cloud Service | v3.1.0 | Experimental | 2019-03-29 |
Task Cloud Service
Manages task cloud.
Class members
Methods
-
assign(appName:
string
, taskId:string
, assignee:string
):Observable
<
TaskDetailsCloudModel
>
Updates the task assignee.- appName:
string
- Name of the app - taskId:
string
- ID of the task to update assignee - assignee:
string
- assignee to update current user task assignee - Returns
Observable
<
TaskDetailsCloudModel
>
- Updated task details with new assignee
- appName:
-
canClaimTask(taskDetails:
TaskDetailsCloudModel
):boolean
Validate if a task can be claimed.- taskDetails:
TaskDetailsCloudModel
- task details object - Returns
boolean
- Boolean value if the task can be completed
- taskDetails:
-
canCompleteTask(taskDetails:
TaskDetailsCloudModel
):boolean
Validate if a task can be completed.- taskDetails:
TaskDetailsCloudModel
- task details object - Returns
boolean
- Boolean value if the task can be completed
- taskDetails:
-
canUnclaimTask(taskDetails:
TaskDetailsCloudModel
):boolean
Validate if a task can be unclaimed.- taskDetails:
TaskDetailsCloudModel
- task details object - Returns
boolean
- Boolean value if the task can be completed
- taskDetails:
-
claimTask(appName:
string
, taskId:string
, assignee:string
):Observable
<
TaskDetailsCloudModel
>
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
Observable
<
TaskDetailsCloudModel
>
- Details of the claimed task
- appName:
-
completeTask(appName:
string
, taskId:string
):Observable
<
TaskDetailsCloudModel
>
Complete a task.- appName:
string
- Name of the app - taskId:
string
- ID of the task to complete - Returns
Observable
<
TaskDetailsCloudModel
>
- Details of the task that was completed
- appName:
-
createNewTask(startTaskRequest:
StartTaskCloudRequestModel
, appName:string
):Observable
<
TaskDetailsCloudModel
>
Creates a new standalone task.- startTaskRequest:
StartTaskCloudRequestModel
- - appName:
string
- - Returns
Observable
<
TaskDetailsCloudModel
>
- Details of the newly created task
- startTaskRequest:
-
getBasePath(appName:
string
):string
- appName:
string
- - Returns
string
-
- appName:
-
getCandidateGroups(appName:
string
, taskId:string
):Observable
<string[]>
Gets candidate groups of the task.- appName:
string
- Name of the app - taskId:
string
- ID of the task - Returns
Observable
<string[]>
- Candidate groups
- appName:
-
getCandidateUsers(appName:
string
, taskId:string
):Observable
<string[]>
Gets candidate users of the task.- appName:
string
- Name of the app - taskId:
string
- ID of the task - Returns
Observable
<string[]>
- Candidate users
- appName:
-
getPriorityLabel(priority:
number
):string
- priority:
number
- - Returns
string
-
- priority:
-
getProcessDefinitions(appName:
string
):Observable
<
ProcessDefinitionCloud
[]>
Gets the process definitions associated with an app.- appName:
string
- Name of the target app - Returns
Observable
<
ProcessDefinitionCloud
[]>
- Array of process definitions
- 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:
-
isAssigneePropertyClickable(taskDetails:
TaskDetailsCloudModel
, candidateUsers:CardViewArrayItem
[]
, candidateGroups:CardViewArrayItem
[]
):boolean
- taskDetails:
TaskDetailsCloudModel
- - candidateUsers:
CardViewArrayItem
[]
- - candidateGroups:
CardViewArrayItem
[]
- - Returns
boolean
-
- taskDetails:
-
isTaskEditable(taskDetails:
TaskDetailsCloudModel
):boolean
Validate if a task is editable.- taskDetails:
TaskDetailsCloudModel
- task details object - Returns
boolean
- Boolean value if the task is editable
- taskDetails:
-
unclaimTask(appName:
string
, taskId:string
):Observable
<
TaskDetailsCloudModel
>
Un-claims a task.- appName:
string
- Name of the app - taskId:
string
- ID of the task to unclaim - Returns
Observable
<
TaskDetailsCloudModel
>
- Details of the task that was unclaimed
- appName:
-
updateTask(appName:
string
, taskId:string
, payload:any
):Observable
<
TaskDetailsCloudModel
>
Updates the details (name, description, due date) for a task.- appName:
string
- Name of the app - taskId:
string
- ID of the task to update - payload:
any
- Data to update the task - Returns
Observable
<
TaskDetailsCloudModel
>
- 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.