Hello,
I've tried to programmatically find and read file that was attached to business process. The process contains a form attached to star event including file attachment form field. When the process is started, the user will upload a file using the form.
I'd like to read and manipulate that file in a script task later in the process but cannot find a suitable method for reading the file.
I've tried so far:
- relatedContentService.getRelatedContentForProcessInstance(execution.getProcessInstanceId(), pageSize, pageNumber)
- taskService.getAttachment('filename')
- execution.getAttachment('filename')
All of the above return null values. Is there some other method for reading/listing attached files?
Thanks in advance!