AEM Event filter Not working | Community
Skip to main content
rsl_lucky
Level 4
August 10, 2020
Solved

AEM Event filter Not working

  • August 10, 2020
  • 2 replies
  • 3091 views

Hi All,

Have defined EVENT_FILTER in my code so that my replication event gets trigger only in that respective path mentioned as event filter. But here event gets trigger at every location path.

Below is the sample snippet have defined for filter:

@8220494(service = EventHandler.class, immediate = true, property = {
Constants.SERVICE_DESCRIPTION + "= DAM Asset Events",
EventConstants.EVENT_TOPIC + "=" + ReplicationAction.EVENT_TOPIC,
EventConstants.EVENT_FILTER + "path=/content/dam/projectA"})

If replication events are triggered under "/content/dam/projectB" then those are also executing the logic. This is not expected so needs to restrict it. Could anyone let me know how to resolve it.

Thanks

RSL

 

 

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

Hi @rsl_lucky,

Looks like similar query as in below post. (Latest update is available in the below thread)

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/event-filter-is-not-working/qaq-p/374009

2 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
August 11, 2020

Hi @rsl_lucky,

Looks like similar query as in below post. (Latest update is available in the below thread)

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/event-filter-is-not-working/qaq-p/374009

July 28, 2021

@rsl_lucky You have missed "=" in filter, please try something like this --> 

EventConstants.EVENT_FILTER + "=(paths=/var/...somepath/*)"

Thanks,

Disha 

kautuk_sahni
Community Manager
Community Manager
August 4, 2021
@dishi_k, great reply and very good start. We need AEM SMEs like you in the community. Keep the great work going. Looking forward to see you more.
Kautuk Sahni