AEMaaCS Assets | Community
Skip to main content
rsl_lucky
Level 4
October 13, 2023

AEMaaCS Assets

  • October 13, 2023
  • 1 reply
  • 2236 views

Hi all,

Plan to upload assets to AEM as a CS by following 3 step as mentioned in below link.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/developer-reference-material-apis.html?lang=en#asset-upload

 

After completion of asset upload need to "replicate" and process few "custom metadata" for assets. How can we proceed for incorporating both features in existing code. Regarding Sling content distribution concept around replicate is unclear how to proceed.

 

Note: We are hitting 3step process from UI/front-end. 

 

Any suggestions or inputs around would be really helpful.

 

Thanks.

__PRESENT

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

aanchal-sikka
Community Advisor
Community Advisor
October 13, 2023

Hello @rsl_lucky 

 

Please refer to post-processing workflows.

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/manage/asset-microservices-configure-and-use.html?lang=en#post-processing-workflows

These can help you append custom metadata.

 

Once metadata is all set, you can use Replication API to replicate the content 

 

AEM also provides OOTB workflow to replicate an entire tree

 

I hope it helps !

Aanchal Sikka
rsl_lucky
rsl_luckyAuthor
Level 4
October 13, 2023

Hi @aanchal-sikka 

Thanks for quick turn around on it.

Have referred somewhere that in AEMaaCS stop usage of replication agents and it's replaced with Sling Content Distribution to a pipeline service that is not part of AEM. Still do we have support for Replication API to replicate the content like we usually do it on-prem with api i.e., replicator.replicate().

 

Thank you..!!

rsl_lucky
rsl_luckyAuthor
Level 4
October 13, 2023

Hello @rsl_lucky 

 

Please refer to https://experience-aem.blogspot.com/2021/06/aem-cloud-service-asset-processing-profile-post-processing-workflow-generate-jpeg-assets.html

 

Its like a Workflow Step. So, you can get Session from it.


Thanks a lot, @aanchal-sikka for the details.

Let me explain the flow.

1. Initial, it starts with third party app invoke 3-step process (initiate upload, uploadURI, completeUpload) to upload assets onto AEMaaCS.

2. Once upload of asset complete on cloud service plan to capture event of asset creation (Event Handler) and proceed to process custom metadata & replication accordingly for it.

Now, post processing workflow model can be created but where shall it be linked in my case which requires event capturing when asset creates on AEM, custom metadata update and also replication.

 

Really appreciate your inputs here.