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
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessEngineengineprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected StringrootResourcePathprotected StringtaskIdstatic List<javax.ws.rs.core.Variant>VARIANTS
-
Constructor Summary
Constructors Constructor Description TaskResourceImpl(ProcessEngine engine, String taskId, String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
TaskResourceImpl
public TaskResourceImpl(ProcessEngine engine, String taskId, String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
claim
public void claim(UserIdDto dto)
- Specified by:
claimin interfaceTaskResource
-
unclaim
public void unclaim()
- Specified by:
unclaimin interfaceTaskResource
-
complete
public javax.ws.rs.core.Response complete(CompleteTaskDto dto)
- Specified by:
completein interfaceTaskResource
-
submit
public javax.ws.rs.core.Response submit(CompleteTaskDto dto)
- Specified by:
submitin interfaceTaskResource
-
delegate
public void delegate(UserIdDto delegatedUser)
- Specified by:
delegatein interfaceTaskResource
-
getTask
public Object getTask(javax.ws.rs.core.Request request)
- Specified by:
getTaskin interfaceTaskResource
-
getJsonTask
public TaskDto getJsonTask()
-
getHalTask
public HalTask getHalTask()
-
getForm
public FormDto getForm()
- Specified by:
getFormin interfaceTaskResource
-
getRenderedForm
public javax.ws.rs.core.Response getRenderedForm()
- Specified by:
getRenderedFormin interfaceTaskResource
-
resolve
public void resolve(CompleteTaskDto dto)
- Specified by:
resolvein interfaceTaskResource
-
setAssignee
public void setAssignee(UserIdDto dto)
- Specified by:
setAssigneein interfaceTaskResource
-
getIdentityLinks
public List<IdentityLinkDto> getIdentityLinks(String type)
- Specified by:
getIdentityLinksin interfaceTaskResource
-
addIdentityLink
public void addIdentityLink(IdentityLinkDto identityLink)
- Specified by:
addIdentityLinkin interfaceTaskResource
-
deleteIdentityLink
public void deleteIdentityLink(IdentityLinkDto identityLink)
- Specified by:
deleteIdentityLinkin interfaceTaskResource
-
getTaskCommentResource
public TaskCommentResource getTaskCommentResource()
- Specified by:
getTaskCommentResourcein interfaceTaskResource
-
getAttachmentResource
public TaskAttachmentResource getAttachmentResource()
- Specified by:
getAttachmentResourcein interfaceTaskResource
-
getLocalVariables
public VariableResource getLocalVariables()
- Specified by:
getLocalVariablesin interfaceTaskResource
-
getVariables
public VariableResource getVariables()
- Specified by:
getVariablesin interfaceTaskResource
-
getFormVariables
public Map<String,VariableValueDto> getFormVariables(String variableNames, boolean deserializeValues)
- Specified by:
getFormVariablesin interfaceTaskResource
-
updateTask
public void updateTask(TaskDto taskDto)
- Specified by:
updateTaskin interfaceTaskResource
-
deleteTask
public void deleteTask(String id)
- Specified by:
deleteTaskin interfaceTaskResource
-
getDeployedForm
public javax.ws.rs.core.Response getDeployedForm()
- Specified by:
getDeployedFormin interfaceTaskResource
-
handleBpmnError
public void handleBpmnError(TaskBpmnErrorDto dto)
- Specified by:
handleBpmnErrorin interfaceTaskResource
-
handleEscalation
public void handleEscalation(TaskEscalationDto dto)
- Specified by:
handleEscalationin interfaceTaskResource
-
runWithoutAuthorization
protected <V> V runWithoutAuthorization(Supplier<V> action)
-
-