diff --git a/lib/blueprints/localfilestorage-blueprint/state-machines/download-from-local-file-storage.json b/lib/blueprints/localfilestorage-blueprint/state-machines/download-from-local-file-storage.json index d86ff0e..64d5129 100644 --- a/lib/blueprints/localfilestorage-blueprint/state-machines/download-from-local-file-storage.json +++ b/lib/blueprints/localfilestorage-blueprint/state-machines/download-from-local-file-storage.json @@ -6,7 +6,31 @@ "StartAt": "CopyLocally", "States": { "CopyLocally": { - "Type": "Succeed" + "Type": "Task", + "Resource": "module:copyFileToLocalFolder", + "Parameters": { + "localFolderPath.$": "$.localFolderPath", + "remoteFilePath.$": "$.remoteFilePath" + }, + "ResultPath": "$.localFilePath", + "Next": "DownloadFile" + }, + "DownloadFile": { + "Type": "Task", + "Resource": "module:fileDownloading", + "Parameters": { + "filePath.$": "$.localFilePath", + "deleteAfterDownload": true + }, + "ResultPath": "$.downloadUrl", + "Next": "Immediate" + }, + "Immediate": { + "Type": "Pass", + "Result": { + "immediateDownload": true + }, + "End": true } }, "restrictions": [