Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (32 sloc) 2.25 KB

Here we will

  • define a new Adobe I/O Events OSGI to XDM event mapping configuration
  • register it
  • fire the newly mapped custom osgi event
  • see it flowing through Adobe I/O

Add a new OSGI event to Adobe I/O event mapping configuration

  • Got to the osgi configuration console: Select Tools in AEM and then select Operations and Web Console,
    in the OSGI menu, select Configuration or just browse http://localhost:4502/system/console/configMgr
  • Look for Adobe I/O Events' OSGI to XDM Event Mapping Configuration
  • Click on the button +

An edit (at least):

  • The OSGI Topic you want to observe :adaptTo
  • The Adobe I/O Event Code (unique to your event provider; in other words, unique to your AEM instance/cluster): adaptTo
  • The Adobe I/O Event Label as it will appear on the Adobe I/O Console: adaptTo lab

Register your webhook with the Adobe I/O Console

Go back to the event registrations we created in the previous step

  1. the Event tab of an existing integration like ours https://console.adobe.io/integrations/43611/47460/events
  2. click on View on your registration
  3. tick the new adaptTo Lab
  4. click Save.

Fire the adaptTo Custom event

  • Got to the osgi configuration console: Select Tools in AEM and then select Operations and Web Console,
    in the OSGI menu, select Events or just browse http://localhost:4502/system/console/events
  • Click on Send/Post Event
    • use adaptTo as Event Topic
    • add some Event Properties such foo=bar with type String
    • click Send or Post (AFAIK post initiate asynchronous delivery of an event and send is the synchronous one, but for us here the outcome is the same)

See it flowing

Once you fire the events described above, you should see it appearing