Expand my Community achievements bar.

SOLVED

Workflow for data upload on drive.

Avatar

Level 3

Hi all,

 

Please can someone provide me solution on how to create a workflow for an asset to be uploaded on google drive. I am new to workflow so, the solutions explained were not that clear.

 

Thanks in advance. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

To create a new workflow with the editor:

  1. Open the Workflow Models console; via Tools, Workflow, Models or, for example: https://localhost:4502/aem/workflow
  2. Select Create, then Create Model.
  3. The Add Workflow Model dialog appears. Enter the Title and Name (optional) before selecting Done.
  4. The new model is listed in the Workflow Models console.
  5. Select your new workflow, then use Edit to open it for configuration:shaileshbassi_1-1657101587751.png

     

  6. Add the process step in the step 5. Reference for creating the process step:                                 https://aem.redquark.org/2019/09/workflows-in-aem-02-process-step.htmlshaileshbassi_2-1657101744715.png

     

  7. Within the process step call the asset api to get the input stream of the asset and then the drive api to post the inputstream to the drive. Reference for api for drive api - https://developers.google.com/drive/api/guides/manage-uploads

Hope this helps!

Thanks

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

To create a new workflow with the editor:

  1. Open the Workflow Models console; via Tools, Workflow, Models or, for example: https://localhost:4502/aem/workflow
  2. Select Create, then Create Model.
  3. The Add Workflow Model dialog appears. Enter the Title and Name (optional) before selecting Done.
  4. The new model is listed in the Workflow Models console.
  5. Select your new workflow, then use Edit to open it for configuration:shaileshbassi_1-1657101587751.png

     

  6. Add the process step in the step 5. Reference for creating the process step:                                 https://aem.redquark.org/2019/09/workflows-in-aem-02-process-step.htmlshaileshbassi_2-1657101744715.png

     

  7. Within the process step call the asset api to get the input stream of the asset and then the drive api to post the inputstream to the drive. Reference for api for drive api - https://developers.google.com/drive/api/guides/manage-uploads

Hope this helps!

Thanks