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) |
Modifier and Type | Method and Description |
---|---|
void |
addIdentityLink(IdentityLinkDto identityLink) |
void |
claim(UserIdDto dto) |
void |
complete(CompleteTaskDto dto) |
void |
delegate(UserIdDto delegatedUser) |
void |
deleteIdentityLink(IdentityLinkDto identityLink) |
void |
deleteTask(String id) |
TaskAttachmentResource |
getAttachmentResource() |
FormDto |
getForm() |
Map<String,VariableValueDto> |
getFormVariables(String variableNames,
boolean deserializeValues) |
HalTask |
getHalTask() |
List<IdentityLinkDto> |
getIdentityLinks(String type) |
TaskDto |
getJsonTask() |
VariableResource |
getLocalVariables() |
javax.ws.rs.core.Response |
getRenderedForm() |
Object |
getTask(javax.ws.rs.core.Request request) |
protected Task |
getTaskById(String id)
Returns the task with the given id
|
TaskCommentResource |
getTaskCommentResource() |
VariableResource |
getVariables() |
void |
resolve(CompleteTaskDto dto) |
void |
setAssignee(UserIdDto dto) |
void |
submit(CompleteTaskDto dto) |
void |
unclaim() |
void |
updateTask(TaskDto taskDto) |
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 void complete(CompleteTaskDto dto)
complete
in interface TaskResource
public void 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
Copyright © 2018. All rights reserved.