The attached project is a proof of concept that is designed to export all documents and save them to the local filesystem on the ServiceDesk or Workflow Server. This would be useful if you wish to backup the files you have associated to tickets in ServiceDesk for example.
The project is hardcoded to save the documents to c:\ExportedDocuments\<DocumentCategory>\<Documentname>. For example, a file attached to ServiceDesk Incident Ticket IM-000001 named MyDoc.doc would be saved to C:\of modification to be used reliably on a production system with a large number of documents. There are no forms or user interaction with this project. It ExportedDocuments\IM-000001\MyDoc.doc.
The project contains no custom libraries and does not require that it be published to use. You can open the project in Workflow Manager and debug it to see how it works.
Please note that this is a proof of concept project that will likely require some level of modification to work for your particular environment. The project contains only the components required to get the documents and save them to the file system.