Interface TaskAdminRuntime


  • public interface TaskAdminRuntime
    All the methods require an authenticated Admin user
    • Method Detail

      • delete

        Task delete​(DeleteTaskPayload deleteTaskPayload)
        Deletes a task - no matter the assignee or if the admin user can see the task
      • task

        Task task​(String taskId)
        Get Task By Id
      • claim

        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
      • release

        Task release​(ReleaseTaskPayload releaseTaskPayload)
        Release a previously claimed task - The authenticated user needs to be the assignee in order to release it
      • complete

        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
      • assign

        Task assign​(AssignTaskPayload assignTaskPayload)
        Assign a task with a new user - If there is a user assigned, reassign it to the new user - after the assign the task should be in assigned status