public interface DocumentDownloadService
DocumentDownloadService is only functional on
execute() and will otherwise throw
Document downloadDocument(InputStream content, Long folderId, String filename) throws DocumentDownloadException
DocumentDownloadException thrown by this method does not need to be caught. By default,
these exceptions will be converted to
content - The content of the document. If possible, pass your network stream directly into this method.
folderId - The documents
parentFolderId, retrieved from the designer through a
filename - The downloaded document's name and extension.
Include the returned
Document in your
IntegrationResponse result map. If it is not included in the
result map, it will be deleted.
Copyright © 2018-present Appian Corporation. All Rights Reserved.