@RestController @EnableHypermediaSupport(type=HAL) public class TaskController extends AbstractPagingController
Task related endpoints.| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<TaskResource> |
claimTask(String taskId,
String userName) |
org.springframework.http.ResponseEntity<TaskResource> |
completeTask(String taskId) |
org.springframework.http.ResponseEntity<TaskResource> |
createTask(TaskResource taskResource) |
org.springframework.http.ResponseEntity<TaskResource> |
deleteTask(String taskId) |
org.springframework.http.ResponseEntity<TaskResource> |
getTask(String taskId) |
org.springframework.http.ResponseEntity<TaskSummaryListResource> |
getTasks(org.springframework.util.MultiValueMap<String,String> params) |
org.springframework.http.ResponseEntity<TaskResource> |
transferTask(String taskId,
String workbasketId) |
org.springframework.http.ResponseEntity<TaskResource> |
updateTask(String taskId,
TaskResource taskResource) |
extractCommaSeparatedFields, getPageMetadata, getQueryList, initPageMetadata, initPageMetadata, validateNoInvalidParameterIsLeft@GetMapping(path="/api/v1/tasks")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskSummaryListResource> getTasks(@RequestParam
org.springframework.util.MultiValueMap<String,String> params)
throws pro.taskana.exceptions.InvalidArgumentException
@GetMapping(path="/api/v1/tasks/{taskId}")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskResource> getTask(@PathVariable
String taskId)
throws pro.taskana.exceptions.TaskNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
@PostMapping(path="/api/v1/tasks/{taskId}/claim")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskResource> claimTask(@PathVariable
String taskId,
@RequestBody
String userName)
throws pro.taskana.exceptions.TaskNotFoundException,
pro.taskana.exceptions.InvalidStateException,
pro.taskana.exceptions.InvalidOwnerException,
pro.taskana.exceptions.NotAuthorizedException
@PostMapping(path="/api/v1/tasks/{taskId}/complete")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskResource> completeTask(@PathVariable
String taskId)
throws pro.taskana.exceptions.TaskNotFoundException,
pro.taskana.exceptions.InvalidOwnerException,
pro.taskana.exceptions.InvalidStateException,
pro.taskana.exceptions.NotAuthorizedException
@DeleteMapping(path="/api/v1/tasks/{taskId}")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskResource> deleteTask(@PathVariable
String taskId)
throws pro.taskana.exceptions.TaskNotFoundException,
pro.taskana.exceptions.InvalidStateException,
pro.taskana.exceptions.NotAuthorizedException
@PostMapping(path="/api/v1/tasks") @Transactional(rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<TaskResource> createTask(@RequestBody TaskResource taskResource) throws pro.taskana.exceptions.WorkbasketNotFoundException, pro.taskana.exceptions.ClassificationNotFoundException, pro.taskana.exceptions.NotAuthorizedException, pro.taskana.exceptions.TaskAlreadyExistException, pro.taskana.exceptions.InvalidArgumentException
@RequestMapping(path="/api/v1/tasks/{taskId}/transfer/{workbasketId}")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskResource> transferTask(@PathVariable
String taskId,
@PathVariable
String workbasketId)
throws pro.taskana.exceptions.TaskNotFoundException,
pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.InvalidStateException
@PutMapping(path="/api/v1/tasks/{taskId}")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskResource> updateTask(@PathVariable(value="taskId")
String taskId,
@RequestBody
TaskResource taskResource)
throws pro.taskana.exceptions.TaskNotFoundException,
pro.taskana.exceptions.ClassificationNotFoundException,
pro.taskana.exceptions.InvalidArgumentException,
pro.taskana.exceptions.ConcurrencyException,
pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.AttachmentPersistenceException
Copyright © 2020. All rights reserved.