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

SOLVED

AEM Event filter Not working

Avatar

Level 4

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.

Avatar

Level 4

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