@Activate method not getting invoked | Community
Skip to main content
NaziyaP
November 6, 2020
Solved

@Activate method not getting invoked

  • November 6, 2020
  • 4 replies
  • 2301 views

Dear All,

We have one service class with one @580286 method  which is not getting invoked, But is working fine in other class of the same app. Is there a constraint that only one @580286 can be used in one app-core?

 

Thanks in advance

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 Anudeep_Garnepudi

Hi @naziyap 

Method with @Activate annotation will only be called once your Component(or Service) is activated. If Component has any dependencies it won't be activated hence your activate method won't be executed. Check if your Component/Service has any dependencies and try to resolve.

AG

4 replies

Manjunath_K
November 6, 2020

Hi @naziyap,

There is no constraints as such, can you please add code snippet/screenshot of class where this activate method is not getting invoked.

SureshDhulipudi
Community Advisor
Community Advisor
November 6, 2020

Please check logs for any errors and paste the code here

NaziyaP
NaziyaPAuthor
November 9, 2020
There is no error and it is a simple @580286 method, cant paste code .
Anudeep_Garnepudi
Community Advisor
Anudeep_GarnepudiCommunity AdvisorAccepted solution
Community Advisor
November 6, 2020

Hi @naziyap 

Method with @Activate annotation will only be called once your Component(or Service) is activated. If Component has any dependencies it won't be activated hence your activate method won't be executed. Check if your Component/Service has any dependencies and try to resolve.

AG

November 9, 2020

There is no such constraint

Could you please go to systsem console and inder components tab go to your service and see if it is axtive or not not some refrences are in satisfied state.

If its not active it will not work, try to resolve dependencies.

Hope this helps

kautuk_sahni
Community Manager
Community Manager
November 9, 2020
Wonderful reply, thanks for sharing the knowledge.
Kautuk Sahni