Class TaskAttachmentCollectionResource
java.lang.Object
org.flowable.rest.service.api.runtime.task.TaskBaseResource
org.flowable.rest.service.api.runtime.task.TaskAttachmentCollectionResource
- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class org.flowable.rest.service.api.runtime.task.TaskBaseResource
historyService, restApiInterceptor, restResponseFactory, taskService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAttachment
(String taskId, jakarta.servlet.http.HttpServletRequest request) protected AttachmentResponse
createBinaryAttachment
(MultipartHttpServletRequest request, Task task) protected AttachmentResponse
createSimpleAttachment
(AttachmentRequest attachmentRequest, Task task) getAttachments
(String taskId) Methods inherited from class org.flowable.rest.service.api.runtime.task.TaskBaseResource
addProcessvariables, addTaskvariables, getDelegationState, getHistoricTaskFromRequest, getHistoricTaskFromRequestWithoutAccessCheck, getTaskFromRequest, getTaskFromRequestWithoutAccessCheck, getTasksFromIdList, getTasksFromQueryRequest, populateTaskFromRequest, populateTasksFromRequest
-
Field Details
-
objectMapper
-
-
Constructor Details
-
TaskAttachmentCollectionResource
public TaskAttachmentCollectionResource()
-
-
Method Details
-
getAttachments
@GetMapping(value="/runtime/tasks/{taskId}/attachments", produces="application/json") public List<AttachmentResponse> getAttachments(@PathVariable String taskId) -
createAttachment
@PostMapping(value="/runtime/tasks/{taskId}/attachments", produces="application/json", consumes={"application/json","multipart/form-data"}) @ResponseStatus(CREATED) public AttachmentResponse createAttachment(@PathVariable String taskId, jakarta.servlet.http.HttpServletRequest request) -
createSimpleAttachment
-
createBinaryAttachment
-