Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
I have a scenario where i trigger job in AEM Publish instance using ReplicationAction in on-prem, so now in AEMaaCS how to get replication object??
final ReplicationAction replicationAction = ReplicationEvent.fromEvent(event).getReplicationAction();
final ReplicationActionType actionType = replicationAction.getType();
final String FilePath = replicationAction.getPath();
i'm using the filePath to trigger job for removing the file/asset here.
could anyone guide me here that how to get path or file name while unpublishing/remove or publishing??
Vistas
Respuestas
Total de me gusta
Hi @KarthickVe ,
You can publish/unpublish content using the Replication API in AEMaaCS - API Documentation
Reference Link - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/repli...
So the same way should actually work as under the hood, AEMaaCS maps the replication actions (such as activate, deactivate) to corresponding Sling Content Distribution mechanisms.
Did you encounter any error when running the same program on AEMaaCS?
Vistas
Respuestas
Total de me gusta
Hello@Rohan_Garg ,
you mean below code is valid is AEMaaCS as well??
final ReplicationAction replicationAction = ReplicationEvent.fromEvent(event).getReplicationAction();
final ReplicationActionType actionType = replicationAction.getType();
final String FilePath = replicationAction.getPath();
i thought its deprecated now or later as we have sling content distribution in place for AEMaaCS.
is it okay to use same code in cloud as well??
Vistas
Respuestas
Total de me gusta
Yes, by maintaining the Replication API as a facade, AEMaaCS allows a smooth transition in moving from traditional AEM deployments to the cloud service, ensuring that custom replication logic and integrations continue to function correctly.
Vistas
Respuestas
Total de me gusta
@Rohan_Garg , Thanks for clarifying this topic.
Vistas
Respuestas
Total de me gusta
i'm trying to trigger this listener on the event of replication but its not triggering.
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
@KarthickVe You can use ReplicationAction.fromEvent(event).getPath() to get the resource path.
Vistas
Respuestas
Total de me gusta
Hello @Harwinder-singh, is it okay to use ReplicationAction.fromEvent(event).getPath() api code in cloud as well??
since AEMaaCs uses sling content distribution api so i'm having doubt here.
Vistas
Respuestas
Total de me gusta
@KarthickVe Yes please.
Vistas
Respuestas
Total de me gusta
i'm trying to trigger this listener on the event of replication in publish environment but its not triggering.
Vistas
Respuestas
Total de me gusta
@KarthickVe Can you please use com/day/cq/replication as event topic?
Vistas
Respuestas
Total de me gusta
@Harwinder-singh This com/day/cq/replication event will be used in author not works in publish. all the event handler not working in cloud. only event listener is working in cloud.
Vistas
Respuestas
Total de me gusta
Hello @Harwinder-singh ,
i'm trying to trigger this listener on the event of replication but its not triggering.
Vistas
Respuestas
Total de me gusta
@KarthickVe Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas