Skip to main content
NaziyaP
Level 2
November 6, 2020
Solved

@Activate method not getting invoked

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.
Anudeep_Garnepudi
Anudeep_GarnepudiAccepted 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

AG

6 replies

Manjunath_K
Level 7
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.

Translate
SureshDhulipudi
Community Advisor
Community Advisor
November 6, 2020

Please check logs for any errors and paste the code here

Translate
NaziyaP
NaziyaPAuthor
Level 2
November 9, 2020
There is no error and it is a simple @580286 method, cant paste code .
Translate
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

Translate
AG
Level 4
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

Translate
kautuk_sahni
Level 9
November 9, 2020
Wonderful reply, thanks for sharing the knowledge.
Translate
Kautuk Sahni