public interface TaskAdminRuntime
| Modifier and Type | Method and Description |
|---|---|
Task |
claim(ClaimTaskPayload claimTaskPayload)
Claim a task with the currently authenticated user
- If there is no authenticated user throw an IllegalStateException
- If the currently authenticated user is not a candidate throw an IllegalStateException
- The current approach doesn't support impersonation, it will always take the currently authenticated user
- after the claim the task should be in assigned status
|
Task |
complete(CompleteTaskPayload completeTaskPayload)
Completes the selected task with the variables set in the payload
- This method checks that the task is visible by the authenticated user
- This method also check that the task is assigned to the currently authenticated user before complete
- This method return a shallow Task object with the basic information needed to validate that the task was completed
|
Task |
delete(DeleteTaskPayload deleteTaskPayload)
Deletes a task
- no matter the assignee or if the admin user can see the task
|
Task |
release(ReleaseTaskPayload releaseTaskPayload)
Release a previously claimed task
- The authenticated user needs to be the assignee in order to release it
|
void |
setVariables(SetTaskVariablesPayload setTaskVariablesPayload) |
Task |
task(String taskId)
Get Task By Id
|
Page<Task> |
tasks(Pageable pageable)
Get all tasks
|
Page<Task> |
tasks(Pageable pageable,
GetTasksPayload getTasksPayload)
Get all tasks with payload filters
|
Task delete(DeleteTaskPayload deleteTaskPayload)
Page<Task> tasks(Pageable pageable, GetTasksPayload getTasksPayload)
Task claim(ClaimTaskPayload claimTaskPayload)
Task release(ReleaseTaskPayload releaseTaskPayload)
Task complete(CompleteTaskPayload completeTaskPayload)
void setVariables(SetTaskVariablesPayload setTaskVariablesPayload)
Copyright © 2010–2018 Alfresco. All rights reserved.