Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Register/Map Custom AEM I/O Events | AEM Community Blog Seeding




Register/Map Custom AEM I/O Events by Kelvin Xu


After setting up AEM I/O events following this, you will get the following AEM events mapped to I/O events OOTB and you can immediately hook them up with your I/O actions or webhooks.

What if you want to map more AEM event types into I/O events such as asset_published or asset_metadata_updated? Here are the high-level steps. In general, what it takes is just to find the underlying OSGi event and map to a new I/O event code through a custom com.day.cq.dam.eventproxy.service.mapping.OsgiXdmEventMappingConfigurationImpl factory config. Let's take asset_published and asset_metadata_updated events as examples.
Publish an asset and go to /system/console/events to find the event that can be uniquely identified by the event topic, path, and type. something like below,

Use event topic, path, and type to define a custom OSGi config com.day.cq.dam.eventproxy.service.mapping.OsgiXdmEventMappingConfigurationImpl-asset_published with below properties

Read Full Blog

Register/Map Custom AEM I/O Events


Please use this thread to ask the related questions.

Kautuk Sahni
0 Replies