@RestController public class TaskAttachmentCollectionResource extends TaskBaseResource
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
historyService, restResponseFactory, taskService| Constructor and Description |
|---|
TaskAttachmentCollectionResource() |
| Modifier and Type | Method and Description |
|---|---|
AttachmentResponse |
createAttachment(String taskId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected AttachmentResponse |
createBinaryAttachment(org.springframework.web.multipart.MultipartHttpServletRequest request,
org.flowable.task.api.Task task,
javax.servlet.http.HttpServletResponse response) |
protected AttachmentResponse |
createSimpleAttachment(AttachmentRequest attachmentRequest,
org.flowable.task.api.Task task) |
List<AttachmentResponse> |
getAttachments(String taskId,
javax.servlet.http.HttpServletRequest request) |
addProcessvariables, addTaskvariables, getDelegationState, getHistoricTaskFromRequest, getTaskFromRequest, getTasksFromQueryRequest, populateTaskFromRequest@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
@GetMapping(value="/runtime/tasks/{taskId}/attachments",
produces="application/json")
public List<AttachmentResponse> getAttachments(@PathVariable
String taskId,
javax.servlet.http.HttpServletRequest request)
@PostMapping(value="/runtime/tasks/{taskId}/attachments",
produces="application/json",
consumes={"application/json","multipart/form-data"})
public AttachmentResponse createAttachment(@PathVariable
String taskId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected AttachmentResponse createSimpleAttachment(AttachmentRequest attachmentRequest, org.flowable.task.api.Task task)
protected AttachmentResponse createBinaryAttachment(org.springframework.web.multipart.MultipartHttpServletRequest request, org.flowable.task.api.Task task, javax.servlet.http.HttpServletResponse response)
Copyright © 2018 Flowable. All rights reserved.