Olá Francis,
você teria que utilizar o método getAttachments().add() do ProcessAttachmentDto:
var filePath = '/home/usuario/arquivo.docx'; var byteArray = java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(filePath));
attachment.setFileName('arquivo.docx');
attachment.setFilecontent(byteArray);processAttachmentDto.getAttachments().add(attachment);
processAttachmentDto.setDescription('arquivo.docx');
processAttachmentDto.setNewAttach(true);
processAttachmentDtoArray.getItem().add(processAttachmentDto);
Podes dar uma olhada aqui Anexar documento no WS simpleStartProcess, acho que é uma situação semelhante a sua