AEM Workflow Email Notifications OSGI Config from code | Community
Skip to main content
Level 3
July 17, 2023
Solved

AEM Workflow Email Notifications OSGI Config from code

  • July 17, 2023
  • 3 replies
  • 768 views

Hi Team,

 

I am trying to create an xml osgi configuration for Workflow email notifications com.day.cq.workflow.impl.email.EMailNotificationService.xml, After deploying to the server, changes are not reflecting. Please help.

 

  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sudheer_Sundalam

@prashanthal 

 

1) Move/Copy the com.day.cq.workflow.impl.email.EMailNotificationService.xml file to "config.author" and "config.publish" folders under ui.config's module "osgiconfig" folder.

2) Make sure you have "/apps/<yourproject>/osgiconfig" path in the filter.xml of ui.config module.

3) Build and deploy your project.

4) Check if your updated configuration is showing up on author/publish server.

If the configuration is showing up by following the above steps, then it may be the configuration file is not under the correct runmode folder vs the author/publish server is running on.

Cross-check the runmode folder naming convention vs the author/publish server runmode by visiting http://server::4502/system/console/status-slingsettings

 

Hope this helps.

3 replies

aanchal-sikka
Community Advisor
Community Advisor
July 17, 2023

Hello @prashanthal 

 

There shouldn't be an issue in general.

Can you please check following?

 

1. If the config present in repo (via CRXDE)

- If present, is there any config displayed in OSGi?

-- If yes, please try deleting it from OSGi, and see if the current one reflects. This is just to assure that there is no other OSGi taking preference over one deployed.

 

2. If config is absent in CRXDE:

- Please check filters, the file should first become path of the local package.

 

3. Please assure that the file is placed in proper runmode specific config folders

 

 

Aanchal Sikka
milind_bachani
Adobe Employee
Adobe Employee
July 17, 2023

Hi @prashanthal ,

 

Please check if the config is part of the package which is being deployed. 

Also, make sure that you have the configs available in the relevant runmode config folder. 

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
July 17, 2023

@prashanthal 

 

1) Move/Copy the com.day.cq.workflow.impl.email.EMailNotificationService.xml file to "config.author" and "config.publish" folders under ui.config's module "osgiconfig" folder.

2) Make sure you have "/apps/<yourproject>/osgiconfig" path in the filter.xml of ui.config module.

3) Build and deploy your project.

4) Check if your updated configuration is showing up on author/publish server.

If the configuration is showing up by following the above steps, then it may be the configuration file is not under the correct runmode folder vs the author/publish server is running on.

Cross-check the runmode folder naming convention vs the author/publish server runmode by visiting http://server::4502/system/console/status-slingsettings

 

Hope this helps.