@RestController public class TaskControllerImpl extends Object implements TaskController
| Constructor and Description |
|---|
TaskControllerImpl(ProcessEngineWrapper processEngine,
TaskResourceAssembler taskResourceAssembler) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.Resource<org.activiti.services.core.model.Task> |
claimTask(String taskId) |
org.springframework.http.ResponseEntity<Void> |
completeTask(String taskId,
org.activiti.services.core.model.commands.CompleteTaskCmd completeTaskCmd) |
AuthenticationWrapper |
getAuthenticationWrapper() |
org.springframework.hateoas.Resource<org.activiti.services.core.model.Task> |
getTaskById(String taskId) |
org.springframework.hateoas.PagedResources<TaskResource> |
getTasks(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<org.activiti.services.core.model.Task> pagedResourcesAssembler) |
org.springframework.hateoas.Resource<org.activiti.services.core.model.Task> |
releaseTask(String taskId) |
void |
setAuthenticationWrapper(AuthenticationWrapper authenticationWrapper) |
@Autowired public TaskControllerImpl(ProcessEngineWrapper processEngine, TaskResourceAssembler taskResourceAssembler)
public org.springframework.hateoas.PagedResources<TaskResource> getTasks(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<org.activiti.services.core.model.Task> pagedResourcesAssembler)
getTasks in interface TaskControllerpublic org.springframework.hateoas.Resource<org.activiti.services.core.model.Task> getTaskById(@PathVariable String taskId)
getTaskById in interface TaskControllerpublic org.springframework.hateoas.Resource<org.activiti.services.core.model.Task> claimTask(@PathVariable String taskId)
claimTask in interface TaskControllerpublic org.springframework.hateoas.Resource<org.activiti.services.core.model.Task> releaseTask(@PathVariable String taskId)
releaseTask in interface TaskControllerpublic org.springframework.http.ResponseEntity<Void> completeTask(@PathVariable String taskId, @RequestBody(required=false) org.activiti.services.core.model.commands.CompleteTaskCmd completeTaskCmd)
completeTask in interface TaskControllerpublic AuthenticationWrapper getAuthenticationWrapper()
public void setAuthenticationWrapper(AuthenticationWrapper authenticationWrapper)
Copyright © 2010–2017 Alfresco. All rights reserved.