public class TaskResourceImpl extends Object implements TaskResource
Modifier and Type | Field and Description |
---|---|
protected ProcessEngine |
engine |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected String |
rootResourcePath |
protected String |
taskId |
static List<javax.ws.rs.core.Variant> |
VARIANTS |
Constructor and Description |
---|
TaskResourceImpl(ProcessEngine engine,
String taskId,
String rootResourcePath,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
public static final List<javax.ws.rs.core.Variant> VARIANTS
protected ProcessEngine engine
protected String taskId
protected String rootResourcePath
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public TaskResourceImpl(ProcessEngine engine, String taskId, String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void claim(UserIdDto dto)
claim
in interface TaskResource
public void unclaim()
unclaim
in interface TaskResource
public javax.ws.rs.core.Response complete(CompleteTaskDto dto)
complete
in interface TaskResource
public javax.ws.rs.core.Response submit(CompleteTaskDto dto)
submit
in interface TaskResource
public void delegate(UserIdDto delegatedUser)
delegate
in interface TaskResource
public Object getTask(javax.ws.rs.core.Request request)
getTask
in interface TaskResource
public TaskDto getJsonTask()
public HalTask getHalTask()
public FormDto getForm()
getForm
in interface TaskResource
public javax.ws.rs.core.Response getRenderedForm()
getRenderedForm
in interface TaskResource
public void resolve(CompleteTaskDto dto)
resolve
in interface TaskResource
protected Task getTaskById(String id)
id
- public void setAssignee(UserIdDto dto)
setAssignee
in interface TaskResource
public List<IdentityLinkDto> getIdentityLinks(String type)
getIdentityLinks
in interface TaskResource
public void addIdentityLink(IdentityLinkDto identityLink)
addIdentityLink
in interface TaskResource
public void deleteIdentityLink(IdentityLinkDto identityLink)
deleteIdentityLink
in interface TaskResource
public TaskCommentResource getTaskCommentResource()
getTaskCommentResource
in interface TaskResource
public TaskAttachmentResource getAttachmentResource()
getAttachmentResource
in interface TaskResource
public VariableResource getLocalVariables()
getLocalVariables
in interface TaskResource
public VariableResource getVariables()
getVariables
in interface TaskResource
public Map<String,VariableValueDto> getFormVariables(String variableNames, boolean deserializeValues)
getFormVariables
in interface TaskResource
public void updateTask(TaskDto taskDto)
updateTask
in interface TaskResource
public void deleteTask(String id)
deleteTask
in interface TaskResource
public javax.ws.rs.core.Response getDeployedForm()
getDeployedForm
in interface TaskResource
public void handleBpmnError(TaskBpmnErrorDto dto)
handleBpmnError
in interface TaskResource
public void handleEscalation(TaskEscalationDto dto)
handleEscalation
in interface TaskResource
Copyright © 2022. All rights reserved.