AEM Event filter Not working | Community
Skip to main content
rsl_lucky
Level 4
Aug 10, 2020 8:17 AM UTC
Solved

AEM Event filter Not working

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.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Aug 11, 2020 4:05 PM UTC

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

4 replies

New Participant
Jul 28, 2021 10:14 PM UTC

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

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

Thanks,

Disha 

Translate
kautuk_sahni
Employee
Aug 4, 2021 7:10 AM UTC
@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.
Translate
Kautuk Sahni
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Aug 11, 2020 4:05 PM UTC

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

Translate