Register/Map Custom AEM I/O Events | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
August 9, 2021

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

  • August 9, 2021
  • 0 replies
  • 375 views

BlogImage.jpg

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

Abstract

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

Q&A

Please use this thread to ask the related questions.

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