Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

AEMaaCS Assets

Avatar

Level 5

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/develo...

 

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

11 Replies

Avatar

Community Advisor

Hello @rsl_lucky 

 

Please refer to post-processing workflows.

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/manage/asset...

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

Avatar

Level 5

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..!!

Avatar

Community Advisor

Yes @rsl_lucky 

 

We cannot  create Custom replication Agents, but the default ones can be used by Replication API.

The documentation that I have shared earlier is of CLoud Service. Look for section "Replication with Specific Agents"


Aanchal Sikka

Avatar

Level 5

Thank you @aanchal-sikka for the information shared.

How session object of which user is used while replication in AEMaaCS.

Avatar

Level 5

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.

 

Avatar

Community Advisor

Hello @rsl_lucky 

 

The custom metadata process can be added before " DAM Update Asset Workflow Completed Process"  in Post processing

 

For Replication, you can create a Workflow Launcher, that listens to the metadata update, related to " DAM Update Asset Workflow Completed Process". It must be updating a metadata like dam:status (not sure of the exact property)

The workflow can seek approvals before replication, or bypass approvals and directly replicate the asset.

 

Does it make sense? 

 

 


Aanchal Sikka

Avatar

Level 5

Hi @aanchal-sikka 

how can we link below 3 for complete flow execution.

1. Event Handler class i.e. event capture logic of asset creation.

2. Custom metadata thru post processing workflow model.

3. Replication of assets thru launcher as mentioned above.

 

Really helpful for your inputs here.

Avatar

Level 5

Can anyone suggest any option for the above use case how shall it can be taken forward ?

Avatar

Community Advisor

Hello @rsl_lucky 

 

The Adobe documentation shares the details on customizing Post-processing Workflow Configure and use asset microservices | Adobe Experience Manager

- Please refer the same to add any custom metadata 

 

For Replication, you can set up a Workflow Launcher/Listener, which can check for Modification event on Assets. When relevant property like (dam:status=processed) is updated via "DAM Update Asset Workflow Completed Process" of Post-processing workflow:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/listeners-and-handlers-are...


Aanchal Sikka

Avatar

Level 5

Hi @aanchal-sikka,

As mentioned for above use case ,can you share thoughts around this.

1. Initial, 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 AEM will quick start and have to process custom metadata (comes as request attributes while upload request is made from front end) & replication of the assets.

 

Really appreciate inputs from anyone.