org.camunda.bpm.engine.rest.sub.task.impl
Class TaskResourceImpl
java.lang.Object
org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl
- All Implemented Interfaces:
- TaskResource
public class TaskResourceImpl
- extends Object
- implements TaskResource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VARIANTS
public static final List<javax.ws.rs.core.Variant> VARIANTS
engine
protected ProcessEngine engine
taskId
protected String taskId
rootResourcePath
protected String rootResourcePath
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
TaskResourceImpl
public TaskResourceImpl(ProcessEngine engine,
String taskId,
String rootResourcePath,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
claim
public void claim(UserIdDto dto)
- Specified by:
claim in interface TaskResource
unclaim
public void unclaim()
- Specified by:
unclaim in interface TaskResource
complete
public void complete(CompleteTaskDto dto)
- Specified by:
complete in interface TaskResource
submit
public void submit(CompleteTaskDto dto)
- Specified by:
submit in interface TaskResource
delegate
public void delegate(UserIdDto delegatedUser)
- Specified by:
delegate in interface TaskResource
getTask
public Object getTask(javax.ws.rs.core.Request request)
- Specified by:
getTask in interface TaskResource
getJsonTask
public TaskDto getJsonTask()
getHalTask
public HalTask getHalTask()
getForm
public FormDto getForm()
- Specified by:
getForm in interface TaskResource
getRenderedForm
public javax.ws.rs.core.Response getRenderedForm()
- Specified by:
getRenderedForm in interface TaskResource
resolve
public void resolve(CompleteTaskDto dto)
- Specified by:
resolve in interface TaskResource
getTaskById
protected Task getTaskById(String id)
- Returns the task with the given id
- Parameters:
id -
- Returns:
setAssignee
public void setAssignee(UserIdDto dto)
- Specified by:
setAssignee in interface TaskResource
getIdentityLinks
public List<IdentityLinkDto> getIdentityLinks(String type)
- Specified by:
getIdentityLinks in interface TaskResource
addIdentityLink
public void addIdentityLink(IdentityLinkDto identityLink)
- Specified by:
addIdentityLink in interface TaskResource
deleteIdentityLink
public void deleteIdentityLink(IdentityLinkDto identityLink)
- Specified by:
deleteIdentityLink in interface TaskResource
getTaskCommentResource
public TaskCommentResource getTaskCommentResource()
- Specified by:
getTaskCommentResource in interface TaskResource
getAttachmentResource
public TaskAttachmentResource getAttachmentResource()
- Specified by:
getAttachmentResource in interface TaskResource
getLocalVariables
public VariableResource getLocalVariables()
- Specified by:
getLocalVariables in interface TaskResource
getVariables
public VariableResource getVariables()
- Specified by:
getVariables in interface TaskResource
getFormVariables
public Map<String,VariableValueDto> getFormVariables(String variableNames,
boolean deserializeValues)
- Specified by:
getFormVariables in interface TaskResource
updateTask
public void updateTask(TaskDto taskDto)
- Specified by:
updateTask in interface TaskResource
deleteTask
public void deleteTask(String id)
- Specified by:
deleteTask in interface TaskResource
Copyright © 2016 camunda services GmbH. All rights reserved.