@RestController public class TaskResource extends AbstractTaskResource
Modifier and Type | Field and Description |
---|---|
protected PermissionService |
permissionService |
protected RepositoryService |
repositoryService |
protected TaskService |
taskService |
historyService, userCache
Constructor and Description |
---|
TaskResource() |
Modifier and Type | Method and Description |
---|---|
com.activiti.model.runtime.TaskRepresentation |
getTask(String taskId,
javax.servlet.http.HttpServletResponse response) |
com.activiti.model.runtime.TaskRepresentation |
updateTask(String taskId,
com.activiti.model.runtime.TaskUpdateRepresentation updated) |
getInvolvedUsers, populateAssignee
@Inject protected TaskService taskService
@Inject protected PermissionService permissionService
@Inject protected RepositoryService repositoryService
@RequestMapping(value="/rest/tasks/{taskId}", method=GET, produces="application/json") public com.activiti.model.runtime.TaskRepresentation getTask(@PathVariable String taskId, javax.servlet.http.HttpServletResponse response)
getTask
in class AbstractTaskResource
@RequestMapping(value="/rest/tasks/{taskId}", method=PUT, produces="application/json") public com.activiti.model.runtime.TaskRepresentation updateTask(@PathVariable(value="taskId") String taskId, @RequestBody com.activiti.model.runtime.TaskUpdateRepresentation updated)
updateTask
in class AbstractTaskResource
Copyright © 2014–2015 Alfresco. All rights reserved.