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 ProcessEngine
engine
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected String
rootResourcePath
protected String
taskId
static 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:
claim
in interfaceTaskResource
-
unclaim
public void unclaim()
- Specified by:
unclaim
in interfaceTaskResource
-
complete
public javax.ws.rs.core.Response complete(CompleteTaskDto dto)
- Specified by:
complete
in interfaceTaskResource
-
submit
public javax.ws.rs.core.Response submit(CompleteTaskDto dto)
- Specified by:
submit
in interfaceTaskResource
-
delegate
public void delegate(UserIdDto delegatedUser)
- Specified by:
delegate
in interfaceTaskResource
-
getTask
public Object getTask(javax.ws.rs.core.Request request)
- Specified by:
getTask
in interfaceTaskResource
-
getJsonTask
public TaskDto getJsonTask()
-
getHalTask
public HalTask getHalTask()
-
getForm
public FormDto getForm()
- Specified by:
getForm
in interfaceTaskResource
-
getRenderedForm
public javax.ws.rs.core.Response getRenderedForm()
- Specified by:
getRenderedForm
in interfaceTaskResource
-
resolve
public void resolve(CompleteTaskDto dto)
- Specified by:
resolve
in interfaceTaskResource
-
setAssignee
public void setAssignee(UserIdDto dto)
- Specified by:
setAssignee
in interfaceTaskResource
-
getIdentityLinks
public List<IdentityLinkDto> getIdentityLinks(String type)
- Specified by:
getIdentityLinks
in interfaceTaskResource
-
addIdentityLink
public void addIdentityLink(IdentityLinkDto identityLink)
- Specified by:
addIdentityLink
in interfaceTaskResource
-
deleteIdentityLink
public void deleteIdentityLink(IdentityLinkDto identityLink)
- Specified by:
deleteIdentityLink
in interfaceTaskResource
-
getTaskCommentResource
public TaskCommentResource getTaskCommentResource()
- Specified by:
getTaskCommentResource
in interfaceTaskResource
-
getAttachmentResource
public TaskAttachmentResource getAttachmentResource()
- Specified by:
getAttachmentResource
in interfaceTaskResource
-
getLocalVariables
public VariableResource getLocalVariables()
- Specified by:
getLocalVariables
in interfaceTaskResource
-
getVariables
public VariableResource getVariables()
- Specified by:
getVariables
in interfaceTaskResource
-
getFormVariables
public Map<String,VariableValueDto> getFormVariables(String variableNames, boolean deserializeValues)
- Specified by:
getFormVariables
in interfaceTaskResource
-
updateTask
public void updateTask(TaskDto taskDto)
- Specified by:
updateTask
in interfaceTaskResource
-
deleteTask
public void deleteTask(String id)
- Specified by:
deleteTask
in interfaceTaskResource
-
getDeployedForm
public javax.ws.rs.core.Response getDeployedForm()
- Specified by:
getDeployedForm
in interfaceTaskResource
-
handleBpmnError
public void handleBpmnError(TaskBpmnErrorDto dto)
- Specified by:
handleBpmnError
in interfaceTaskResource
-
handleEscalation
public void handleEscalation(TaskEscalationDto dto)
- Specified by:
handleEscalation
in interfaceTaskResource
-
runWithoutAuthorization
protected <V> V runWithoutAuthorization(Supplier<V> action)
-
-