FlowService for download file from Amazon S3 and upload to AEP in webMethods.io New Flow Editor

Summary:

This article describes the step-by-step process of creating a FlowService for downloading a small file from Amazon Simple Storage Service (S3) and uploading it to Adobe Experience Platform (AEP) in webMethods.io.

Prerequisites:

  • User needs to have a working Amazon S3 server and API access key details
  • User needs to have a working Adobe Experience Platform account to log into the Adobe console and configure account in wM.io
  • Please follow below link for AEP account configuration,  

http://techcommunity.softwareag.com/pwiki/-/wiki/Main/Adobe%20Experience%20Platform%20%28AEP%29%20OAuth%202.0%20Connection%20in%20webMethods.io

  • Working webMethods.io tenant

Contents:

How to create a FlowService for downloading a small file from Amazon S3 and uploading it to Adobe Experience Platform in webMethods.io.

Steps to create flowervice for download file from Amazon S3 and upload to AEP in webMethods.io:

    1. Login to webmethods.io integration

    2. Click on Project and navigate to FlowServices

            

    3. Create a flowservice for downloading small file as stream from Amazon Simple Storage Service (S3)

    4. Add Try-Catch control with getLastError and Exit flow with reason in case of failure

               

    5. Select "Amazon Simple Storage Service (S3)" connector

                

    6. Select "getObject" operation and the account configured using the server url and access keys

                   

    7. Map inputs and outputs

           

    8. Execute the flowservice to test with the required inputs and see if it gives the output fileStream

                      

                      

    9. Create a flowservice for uploading small file to Adobe Experience Platform

        Add Try-Catch control with getLastError and Exit flow with reason in case of failure

                   

    10. Define input fields

                     

    11. Select "downloadSmallFileFromS3" flowservice created for downloading small file from Amazon S3

                    

    12. Select "Adobe Experience Platform" connector

                       

    13. Select "createBatch" pre-defined operation to create the batch using which file can be uploaded

                        

    14. Add "delimitedDataStreamToDocument" to parse the file stream into a document

                  

                          

    15. Add Repeat control step to loop over the file records and map the document list for AEP upload file

                       

                         

    16. Select "Adobe Experience Platform" connector and add "uploadSmallFile" custom operation

                      

                       

                       

                    

                       

                       

    17. Run the flowservice with the required inputs to upload the smal file to AEP