AEM Event filter Not working

Avatar

Avatar
Validate 1
Level 2
rsl_lucky
Level 2

Likes

15 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 1
Level 2
rsl_lucky
Level 2

Likes

15 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 5
Boost 3
Boost 10
View profile
rsl_lucky
Level 2

10-08-2020

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

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

586 likes

Total Posts

734 posts

Correct reply

246 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

586 likes

Total Posts

734 posts

Correct reply

246 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

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

Answers (1)

Answers (1)

Avatar

Avatar
Boost 1
Level 1
dishi_k
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
dishi_k
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
dishi_k
Level 1

28-07-2021

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

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

Thanks,

Disha