AEM Event filter Not working

rsl_lucky

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

 

 

Answers (0)