Class TaskAttachmentCollectionResource


  • @RestController
    public class TaskAttachmentCollectionResource
    extends TaskBaseResource
    Author:
    Frederik Heremans
    • Field Detail

      • objectMapper

        @Autowired
        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • TaskAttachmentCollectionResource

        public TaskAttachmentCollectionResource()
    • Method Detail

      • getAttachments

        @GetMapping(value="/runtime/tasks/{taskId}/attachments",
                    produces="application/json")
        public List<AttachmentResponse> getAttachments​(@PathVariable
                                                       String taskId,
                                                       javax.servlet.http.HttpServletRequest request)
      • createAttachment

        @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)
      • createBinaryAttachment

        protected AttachmentResponse createBinaryAttachment​(org.springframework.web.multipart.MultipartHttpServletRequest request,
                                                            org.flowable.task.api.Task task,
                                                            javax.servlet.http.HttpServletResponse response)