Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Event filter Not working

Avatar

Level 5

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:

@component(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

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 1

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

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

Thanks,

Disha 

Avatar

Administrator
@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

Avatar

Level 5

@dishi_k, Indeed the query is an year ago & got it resolved long back as stated in above url. Anyway thanks for it.