Resource change listener with multiple paths | Adobe Higher Education
Skip to main content
Level 2
April 1, 2024
Beantwoord

Resource change listener with multiple paths

  • April 1, 2024
  • 2 reacties
  • 1168 Bekeken

I am using resourcechange listener to identify the changes in multiple paths. Once the listener identify change from the given path I am triggering an e-mail. Till here it is fine.

 

Resource change listener paths: I have configured locale paths in config manager like ex: /content/en_usd/testpage.

/Content/en_de/testpage.

In my case resource change listener should only trigger in locale pages so I have given locale paths

 

I am facing an issue in this scenario:

When I rollout change s from language master en page to locale pages en_usd and en_de pages at once.

 

Resource change listiner is considering it as 2 event s and triggering an email twice,each mail for each locale.

I want to trigger a single email for changes in both locales page when rolling out from language master page at once.

 

Can someone please help me here? How to achieve this

 

 

 

 

 

 

 

 

 

 

 

Er kunnen geen reacties meer worden geplaatst op dit onderwerp.
Beste antwoord door joerghoh

The root cause is that there are actually 2 ResourceChanges. If you want just one event, this approach to generate the event is not the correct one, you should probably try and catch a rollout event (I don't think that such an event exists, but you could check the Events view in the OSGI webconsole, if such an event is generated).

2 reacties

sateaswa94
Level 3
April 2, 2024

hi @nimma05 
Since you have register the resource change listener for language copy any property change in the registered resources will trigger the listener. The methods which helps to identify the property which got updated is deprecated now. 

Nimma05Auteur
Level 2
April 2, 2024

Hi @sateaswa94 ,

Thanks for responding!

 Actually I don't need which property is updated in the given path.

What I actually want is when I rollout from language master to language copies. 2 locale pages are updating and 2 event are getting triggered.

On each event I am sending an email (there is some use case)

Here for every event mail is getting triggered.But I want to know if there is a way to trigger a single email for all the events occurred at specific time.

 

 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAntwoord
Adobe Employee
April 14, 2024

The root cause is that there are actually 2 ResourceChanges. If you want just one event, this approach to generate the event is not the correct one, you should probably try and catch a rollout event (I don't think that such an event exists, but you could check the Events view in the OSGI webconsole, if such an event is generated).