Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Migrating CQ5.4 to AEM 6.1 - how to deal with EventPropertiesMap


Level 1

Hi Community,

i'm currenty migrating a CQ 5.4 application to AEM 6.1 and there's some confusion
regarding handling the (now deprecated class EventPropertiesMap.
new EventPropertiesMap(new PageEvent(next).toEvent()))
Adobes list of deprecated APIs ( says "EventAdmin supports creating events with maps now as well"
What i understand is EventAdminPropertiesMap puts the events properties in a dictionary.

Can you please give me a hint how to substitute EventPropertiesMap?
Are there some kind of "migration patterns" or best practices available for the task of
migrating CQ 5.4 to AEM 6.1?

Kind regards,
(i'm just a humble AEM padawan)

2 Replies


Level 10

Are you referring to

You are correct - that is depreciated. But i am not seeing the other class in the Javadocs for AEM 6.1.

I would log a support ticket for this. Looks like they marked something as  depreciated - but did not update the Javadocs to help you move from the old Java to the new class.

Also - see if your code works - the depreciated message may be a mistake.  

I am in the process of upgrading to 6.2 and looks like EventPropertiesMap is totally removed in sling event 4.0.0. Please let me know if you have found an alternate way.